Details
Description
Still testing XFire 1.2RC1, it seems that my previously working configuration (xfire 1.1.1) no longer generates valid WSDL. The Wsdl generated throws the following error in my browser's XML Validator:
XML Parsing Error: duplicate attribute
Location: http://localhost:8081/warfile/MyService?wsdl
This is caused by the following excerpt of WSDL:
<xsd:element xmlns:xsd=" http://www.w3.org/2001/XMLSchema" name="allocateStuff" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="tns:Message"/>
<xsd:element maxOccurs="1" minOccurs="1" name="in1" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="allocateStuffResponse" xmlns:xsd=" http://www.w3.org/2001/XMLSchema">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="tns:Message"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Dan tells me if there is a problem it will be around line 133 of WSDLBuilder.java , I've looked at this code and I can't immediately see why it wouldn't work as expected, there are no case-mismatch problems for example, very strange, but also very important to fix (for me at least) as my WSDL is completely invalid! ![]()
I've reduced the problem to this small self contained tgz file. Using maven2 you should be able to issue the command
'mvn clean compile war:war' and it will generate a war file in the target directory. Tossing this into a container and trying to show the WSDL generates an error page in firefox due to the duplicate attribute.