Im getting the following error when trying to use wsdl.exe
I cannot see any problems in the xml.
Error: Unable to import binding 'OTA_HotelSearch_Binding' from namespace 'http:/ /www.venere.com/XHI'. - Unable to import operation 'OTA_HotelSearch_Request'. - Missing message part 'OTA_HotelSearch_Auth' for message 'OTA_Authentication' from namespace 'http://www.venere.com/XHI'.
Parameter name: partName
the following is part of the wsdl in question
<wsdl:types>
<xs:schema>
<xs:import namespace="http://www.venere.com/XHI"
schemaLocation="Venere_Extensions.xsd"/>
</xs:schema>
</wsdl:types>
<!-- Define request and response messages-->
<wsdl:message name="OTA_Authentication">
<wsdl:part name="OTA_HotelSearch_Auth" element="venere:Authentication"/>
</wsdl:message>
<!-- Define SOAP binding-->
<wsdl:binding name="OTA_HotelSearch_Binding" type="venere:OTA_HotelSearch_PortType">
<!-- Use document style and not rpc-->
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="OTA_HotelSearch_Request">
<!-- Use 'literal' to include OTA XML as-is-->
<soap:operation soapAction="OTA_HotelSearch" style="document"/>
<wsdl:input>
<soap:header part="OTA_HotelSearch_Auth" message="venere:OTA_Authentication" use="literal"/>
<soap:header part="OTA_HotelSearch_MgmDetails" message="venere:OTA_ManagementDetails" use="literal"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:header part="OTA_HotelSearch_TransData" message="venere:OTA_TransactionData" use="literal"/>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
Could you post the entire wsdl and Venere_Extensions.xsd files? so that I can reproduce your scenario on my computer. Here are two similar articles related to this issue.
accubook
Member
2 Points
5 Posts
error using wsdl.exe
Feb 01, 2012 12:28 PM|LINK
Im getting the following error when trying to use wsdl.exe
I cannot see any problems in the xml.
Error: Unable to import binding 'OTA_HotelSearch_Binding' from namespace 'http:/ /www.venere.com/XHI'. - Unable to import operation 'OTA_HotelSearch_Request'. - Missing message part 'OTA_HotelSearch_Auth' for message 'OTA_Authentication' from namespace 'http://www.venere.com/XHI'. Parameter name: partName
the following is part of the wsdl in question
<wsdl:types> <xs:schema> <xs:import namespace="http://www.venere.com/XHI" schemaLocation="Venere_Extensions.xsd"/> </xs:schema> </wsdl:types> <!-- Define request and response messages--> <wsdl:message name="OTA_Authentication"> <wsdl:part name="OTA_HotelSearch_Auth" element="venere:Authentication"/> </wsdl:message> <!-- Define SOAP binding--> <wsdl:binding name="OTA_HotelSearch_Binding" type="venere:OTA_HotelSearch_PortType"> <!-- Use document style and not rpc--> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="OTA_HotelSearch_Request"> <!-- Use 'literal' to include OTA XML as-is--> <soap:operation soapAction="OTA_HotelSearch" style="document"/> <wsdl:input> <soap:header part="OTA_HotelSearch_Auth" message="venere:OTA_Authentication" use="literal"/> <soap:header part="OTA_HotelSearch_MgmDetails" message="venere:OTA_ManagementDetails" use="literal"/> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:header part="OTA_HotelSearch_TransData" message="venere:OTA_TransactionData" use="literal"/> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding>Peter pi - M...
Star
12871 Points
1786 Posts
Re: error using wsdl.exe
Feb 03, 2012 01:05 AM|LINK
Hi,
Could you post the entire wsdl and Venere_Extensions.xsd files? so that I can reproduce your scenario on my computer. Here are two similar articles related to this issue.
http://social.msdn.microsoft.com/forums/en-US/asmxandxml/thread/6e94fe32-bd36-4341-9501-e02bd1cffe84
http://support.microsoft.com/kb/820122
Regards,
Peter
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework