I have a wsdl file like this:
<message name="IntegrationQuery4ThirdRequest"> <part name="SessionMessage" element="tns:SessionEntity"/> <part name="IntegrationQuery4ThirdRequestMessage" element="tns:IntegrationQueryRequest4Third"/> </message> The elements SessionEntity and IntegrationQueryRequest4Third are defined in the xsd file
But my auto generated stub file (created using WSDL2Java) has the order of parameters as
<cvas:IntegrationQuery4Third> <cvas:IntegrationQueryRequest4Third></cvas:IntegrationQueryRequest4Third> <cvas:SessionEntity> </cvas:SessionEntity> </cvas:IntegrationQuery4Third> But the parameter order required is
<cvas:IntegrationQuery4Third> <cvas:SessionEntity> </cvas:SessionEntity> <cvas:IntegrationQueryRequest4Third> </cvas:IntegrationQueryRequest4Third> </cvas:IntegrationQuery4Third> Due to the wrong parameter order, Iam getting an exception like this:
The interface parameter is wrong: There has 2 XML Validation Errors 1:[Expected element 'SessionEntity' instead of 'IntegrationQueryRequest4Third' here in element IntegrationQuery4Third]. 2:[Expected element 'IntegrationQueryRequest4Third' before the end of the content in element IntegrationQuery4Third].
What can I do to change the order of parameters??
No comments:
Post a Comment