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 have the same problem with release 1.2 and xmlbean 2.1.0 and 2.2.0. But works fine in xfire 1.0.2 (which has another bug causing WSDL to grow on each request with a copy of schema)