wsdl2java - undefined element declaration 's:schema'
Recently I got a third party generated wsdl, and when I try to use wsdl2java cxf-codegen-plugin in maven eclipse it shows the below error in the wsdl:
undefined element declaration 's:schema'
After some googling it seems to be a common issue with JAXB and WSDL.
Here is the problematic part of the WSDL:
The easier solution seems to be to download the WSDL and modify the schema in order to generate the stub. Here is what I did to the WSDL as per the suggestion:
Here is the problematic part of the WSDL:
<s:element minOccurs="0" maxOccurs="1" name="GetQuoteDataSetResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
The easier solution seems to be to download the WSDL and modify the schema in order to generate the stub. Here is what I did to the WSDL as per the suggestion:
<s:element minOccurs="0" maxOccurs="1" name="GetQuoteDataSetResult">
<s:complexType>
<s:sequence>
<!-- s:element ref="s:schema" /-->
<s:any minOccurs="2" />
</s:sequence>
</s:complexType>
</s:element>
Comments
Post a Comment