cancel
Showing results for 
Search instead for 
Did you mean: 

Problem creating .Net client proxy class from published WSDL.

Former Member
0 Kudos

Our SAP developers have created a web service to expose some SAP functionality to our .Net clients on the plant floor, and the wsdl utility is unable to create the client proxy class from the published WSDL. Also, when I try to add a .Net 2.0 web service reference I can see most of the information about the service, but not the actual web service call itself. Is there anything missing from this WSDL?

<?xml version="1.0" encoding="utf-8"?><wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:n1="urn:sap-com:document:sap:rfc:functions"><wsdl:documentation><sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl"/></wsdl:documentation><wsp:UsingPolicy wsdl:required="true"/><wsp:Policy wsu:Id="BN_BN_ZWS_PCNF"><saptrnbnd:OptimizedXMLTransfer uri="http://xml.sap.com/2006/11/esi/esp/binxml" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true"/><saptrnbnd:OptimizedXMLTransfer uri="http://www.w3.org/2004/08/soap/features/http-optimization" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true"/><wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"><wsp:All><sp:TransportBinding><wsp:Policy><sp:TransportToken><wsp:Policy><sp:HttpsToken><wsp:Policy><sp:HttpBasicAuthentication/></wsp:Policy></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy><sp:TripleDesRsa15/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy><wsp:Policy wsu:Id="IF_IF_ZWS_PCNF"><sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/"><sapsession:enableSession>false</sapsession:enableSession></sapsession:Session><sapcentraladmin:CentralAdministration xmlns:sapcentraladmin="http://www.sap.com/webas/700/soap/features/CentralAdministration/" wsp:Optional="true"/></wsp:Policy><wsp:Policy wsu:Id="OP_IF_OP_ZBapiRepmanconf1Create"><sapcomhnd:enableCommit xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit><sapblock:enableBlocking xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking><saptrhnw05:required xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required><saprmnw05:enableWSRM xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false</saprmnw05:enableWSRM></wsp:Policy><wsdl:types><xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions"><xsd:simpleType name="char1"><xsd:restriction base="xsd:string"><xsd:maxLength value="1"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char10"><xsd:restriction base="xsd:string"><xsd:maxLength value="10"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char18"><xsd:restriction base="xsd:string"><xsd:maxLength value="18"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char20"><xsd:restriction base="xsd:string"><xsd:maxLength value="20"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char220"><xsd:restriction base="xsd:string"><xsd:maxLength value="220"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char25"><xsd:restriction base="xsd:string"><xsd:maxLength value="25"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char30"><xsd:restriction base="xsd:string"><xsd:maxLength value="30"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char32"><xsd:restriction base="xsd:string"><xsd:maxLength value="32"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char4"><xsd:restriction base="xsd:string"><xsd:maxLength value="4"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char50"><xsd:restriction base="xsd:string"><xsd:maxLength value="50"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="date"><xsd:restriction base="xsd:string"><xsd:maxLength value="10"/><xsd:pattern value="\d\d\d\d-\d\d-\d\d"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="numeric10"><xsd:restriction base="xsd:string"><xsd:maxLength value="10"/><xsd:pattern value="\d"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="numeric3"><xsd:restriction base="xsd:string"><xsd:maxLength value="3"/><xsd:pattern value="\d"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="numeric6"><xsd:restriction base="xsd:string"><xsd:maxLength value="6"/><xsd:pattern value="\d*"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="quantum13.3"><xsd:restriction base="xsd:decimal"><xsd:totalDigits value="13"/><xsd:fractionDigits value="3"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="unit3"><xsd:restriction base="xsd:string"><xsd:maxLength value="3"/></xsd:restriction></xsd:simpleType></xsd:schema><xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:n0="urn:sap-com:document:sap:rfc:functions"><xsd:import namespace="urn:sap-com:document:sap:rfc:functions"/><xsd:complexType name="Werks"><xsd:sequence><xsd:element name="Werks" type="n0:char4"/></xsd:sequence></xsd:complexType><xsd:complexType name="Bapiret2"><xsd:sequence><xsd:element name="Type" type="n0:char1"/><xsd:element name="Id" type="n0:char20"/><xsd:element name="Number" type="n0:numeric3"/><xsd:element name="Message" type="n0:char220"/><xsd:element name="LogNo" type="n0:char20"/><xsd:element name="LogMsgNo" type="n0:numeric6"/><xsd:element name="MessageV1" type="n0:char50"/><xsd:element name="MessageV2" type="n0:char50"/><xsd:element name="MessageV3" type="n0:char50"/><xsd:element name="MessageV4" type="n0:char50"/><xsd:element name="Parameter" type="n0:char32"/><xsd:element name="Row" type="xsd:int"/><xsd:element name="Field" type="n0:char30"/><xsd:element name="System" type="n0:char10"/></xsd:sequence></xsd:complexType><xsd:element name="ZBapiRepmanconf1Create"><xsd:complexType><xsd:sequence><xsd:element name="IBudat" type="n0:date"/><xsd:element name="IHdrtxt" type="n0:char25"/><xsd:element name="IMatnr" type="n0:char18"/><xsd:element name="IQty" type="n0:quantum13.3"/><xsd:element name="IUom" type="n0:unit3"/><xsd:element name="IVerid" type="n0:char4"/><xsd:element name="IWerks" type="tns:Werks" minOccurs="0"/></xsd:sequence></xsd:complexType></xsd:element><xsd:element name="ZBapiRepmanconf1CreateResponse"><xsd:complexType><xsd:sequence><xsd:element name="Confirmation" type="n0:numeric10"/><xsd:element name="Return" type="tns:Bapiret2"/></xsd:sequence></xsd:complexType></xsd:element></xsd:schema></wsdl:types><wsdl:message name="ZBapiRepmanconf1Create"><wsdl:part name="parameters" element="tns:ZBapiRepmanconf1Create"/></wsdl:message><wsdl:message name="ZBapiRepmanconf1CreateResponse"><wsdl:part name="parameter" element="tns:ZBapiRepmanconf1CreateResponse"/></wsdl:message><wsdl:portType name="ZWS_PCNF"><wsp:Policy><wsp:PolicyReference URI="#IF_IF_ZWS_PCNF"/></wsp:Policy><wsdl:operation name="ZBapiRepmanconf1Create"><wsp:Policy><wsp:PolicyReference URI="#OP_IF_OP_ZBapiRepmanconf1Create"/></wsp:Policy><wsdl:input message="tns:ZBapiRepmanconf1Create"/><wsdl:output message="tns:ZBapiRepmanconf1CreateResponse"/></wsdl:operation></wsdl:portType><wsdl:binding name="ZWS_PCNF" type="tns:ZWS_PCNF"><wsp:Policy><wsp:PolicyReference URI="#BN_BN_ZWS_PCNF"/></wsp:Policy><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/><wsdl:operation name="ZBapiRepmanconf1Create"><soap:operation soapAction="" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="ZWS_PCNFService"><wsdl:port name="ZWS_PCNF" binding="tns:ZWS_PCNF"><soap:address location="http://de2.phifersap/sap/bc/srt/rfc/sap/zws_pcnf/200/zws_pcnf/zws_pcnf"/></wsdl:port></wsdl:service></wsdl:definitions>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you test this service using any SOAP testing tool (i.e. SOAP UI). Perhaps SAP developer gave you only definition of service not actual implemented service.

Investigate wsdl to see if you can see endpoint etc.

Regards,

Gourav

Former Member
0 Kudos

Used soapUI to try to generate proxy class from web service WSDL and am getting the same output:

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementation guidelines that recommend how a set of core Web services specifications should be used together to develop interoperable Web services. For the 1.1 Profile, those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema.

The wsdl contains the following definitions for the binding and service...should there be an endpoint tag as well?

<wsdl:binding name="ZWS_PCNF" type="tns:ZWS_PCNF">

<wsp:Policy><wsp:PolicyReference URI="#BN_BN_ZWS_PCNF"/></wsp:Policy>

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/><wsdl:operation name="ZBapiRepmanconf1Create"><soap:operation soapAction="" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation>

</wsdl:binding>

<wsdl:service name="ZWS_PCNFService">

<wsdl:port name="ZWS_PCNF" binding="tns:ZWS_PCNF">

<soap:address location="http://de2.phifersap/sap/bc/srt/rfc/sap/zws_pcnf/200/zws_pcnf/zws_pcnf"/>

</wsdl:port>

</wsdl:service>

Former Member
0 Kudos

Hi,

Are you in a position to indicate how (the steps used) the SAP developers produced the WSDL?

Also check if this read is relevant to you:

[;

Also, are you using a local copy of the WSDL provided by the SAP developers or was a URL supplied. If it was a URL, please post the URL here (excluding host:port details).

Best Regards, Trevor

Former Member
0 Kudos

I will try to get the steps used by our SAP developers and then post to this thread.

I have tried WSDL from two sources: 1) using the local WSDL URL provided by our SAP developers and 2) using a WSDL file provided by our SAP developers. Here is what the local URL looks like (minus http://servername): /sap/bc/srt/wsdl/sdef_ZWSBOMREAD/wsdl11/ws_policy/document?sap-client=500&sap-user=mesgroup&sap-password=rphifer1

I will check out your link as well...thanks. Here is what the WSDL file looks like:

<?xml version="1.0" encoding="utf-8"?><wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:n1="urn:sap-com:document:sap:rfc:functions"><wsdl:documentation><sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl"/></wsdl:documentation><wsp:UsingPolicy wsdl:required="true"/><wsp:Policy wsu:Id="BN_BN_ZWS_PCNF"><saptrnbnd:OptimizedXMLTransfer uri="http://xml.sap.com/2006/11/esi/esp/binxml" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true"/><saptrnbnd:OptimizedXMLTransfer uri="http://www.w3.org/2004/08/soap/features/http-optimization" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true"/><wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"><wsp:All><sp:TransportBinding><wsp:Policy><sp:TransportToken><wsp:Policy><sp:HttpsToken><wsp:Policy><sp:HttpBasicAuthentication/></wsp:Policy></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy><sp:TripleDesRsa15/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy><wsp:Policy wsu:Id="IF_IF_ZWS_PCNF"><sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/"><sapsession:enableSession>false</sapsession:enableSession></sapsession:Session><sapcentraladmin:CentralAdministration xmlns:sapcentraladmin="http://www.sap.com/webas/700/soap/features/CentralAdministration/" wsp:Optional="true"/></wsp:Policy><wsp:Policy wsu:Id="OP_IF_OP_ZBapiRepmanconf1Create"><sapcomhnd:enableCommit xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit><sapblock:enableBlocking xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking><saptrhnw05:required xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required><saprmnw05:enableWSRM xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false</saprmnw05:enableWSRM></wsp:Policy><wsdl:types><xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions"><xsd:simpleType name="char1"><xsd:restriction base="xsd:string"><xsd:maxLength value="1"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char10"><xsd:restriction base="xsd:string"><xsd:maxLength value="10"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char18"><xsd:restriction base="xsd:string"><xsd:maxLength value="18"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char20"><xsd:restriction base="xsd:string"><xsd:maxLength value="20"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char220"><xsd:restriction base="xsd:string"><xsd:maxLength value="220"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char25"><xsd:restriction base="xsd:string"><xsd:maxLength value="25"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char30"><xsd:restriction base="xsd:string"><xsd:maxLength value="30"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char32"><xsd:restriction base="xsd:string"><xsd:maxLength value="32"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char4"><xsd:restriction base="xsd:string"><xsd:maxLength value="4"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="char50"><xsd:restriction base="xsd:string"><xsd:maxLength value="50"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="date"><xsd:restriction base="xsd:string"><xsd:maxLength value="10"/><xsd:pattern value="\d\d\d\d-\d\d-\d\d"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="numeric10"><xsd:restriction base="xsd:string"><xsd:maxLength value="10"/><xsd:pattern value="\d"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="numeric3"><xsd:restriction base="xsd:string"><xsd:maxLength value="3"/><xsd:pattern value="\d"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="numeric6"><xsd:restriction base="xsd:string"><xsd:maxLength value="6"/><xsd:pattern value="\d*"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="quantum13.3"><xsd:restriction base="xsd:decimal"><xsd:totalDigits value="13"/><xsd:fractionDigits value="3"/></xsd:restriction></xsd:simpleType><xsd:simpleType name="unit3"><xsd:restriction base="xsd:string"><xsd:maxLength value="3"/></xsd:restriction></xsd:simpleType></xsd:schema><xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:n0="urn:sap-com:document:sap:rfc:functions"><xsd:import namespace="urn:sap-com:document:sap:rfc:functions"/><xsd:complexType name="Werks"><xsd:sequence><xsd:element name="Werks" type="n0:char4"/></xsd:sequence></xsd:complexType><xsd:complexType name="Bapiret2"><xsd:sequence><xsd:element name="Type" type="n0:char1"/><xsd:element name="Id" type="n0:char20"/><xsd:element name="Number" type="n0:numeric3"/><xsd:element name="Message" type="n0:char220"/><xsd:element name="LogNo" type="n0:char20"/><xsd:element name="LogMsgNo" type="n0:numeric6"/><xsd:element name="MessageV1" type="n0:char50"/><xsd:element name="MessageV2" type="n0:char50"/><xsd:element name="MessageV3" type="n0:char50"/><xsd:element name="MessageV4" type="n0:char50"/><xsd:element name="Parameter" type="n0:char32"/><xsd:element name="Row" type="xsd:int"/><xsd:element name="Field" type="n0:char30"/><xsd:element name="System" type="n0:char10"/></xsd:sequence></xsd:complexType><xsd:element name="ZBapiRepmanconf1Create"><xsd:complexType><xsd:sequence><xsd:element name="IBudat" type="n0:date"/><xsd:element name="IHdrtxt" type="n0:char25"/><xsd:element name="IMatnr" type="n0:char18"/><xsd:element name="IQty" type="n0:quantum13.3"/><xsd:element name="IUom" type="n0:unit3"/><xsd:element name="IVerid" type="n0:char4"/><xsd:element name="IWerks" type="tns:Werks" minOccurs="0"/></xsd:sequence></xsd:complexType></xsd:element><xsd:element name="ZBapiRepmanconf1CreateResponse"><xsd:complexType><xsd:sequence><xsd:element name="Confirmation" type="n0:numeric10"/><xsd:element name="Return" type="tns:Bapiret2"/></xsd:sequence></xsd:complexType></xsd:element></xsd:schema></wsdl:types><wsdl:message name="ZBapiRepmanconf1Create"><wsdl:part name="parameters" element="tns:ZBapiRepmanconf1Create"/></wsdl:message><wsdl:message name="ZBapiRepmanconf1CreateResponse"><wsdl:part name="parameter" element="tns:ZBapiRepmanconf1CreateResponse"/></wsdl:message><wsdl:portType name="ZWS_PCNF"><wsp:Policy><wsp:PolicyReference URI="#IF_IF_ZWS_PCNF"/></wsp:Policy><wsdl:operation name="ZBapiRepmanconf1Create"><wsp:Policy><wsp:PolicyReference URI="#OP_IF_OP_ZBapiRepmanconf1Create"/></wsp:Policy><wsdl:input message="tns:ZBapiRepmanconf1Create"/><wsdl:output message="tns:ZBapiRepmanconf1CreateResponse"/></wsdl:operation></wsdl:portType><wsdl:binding name="ZWS_PCNF" type="tns:ZWS_PCNF"><wsp:Policy><wsp:PolicyReference URI="#BN_BN_ZWS_PCNF"/></wsp:Policy><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/><wsdl:operation name="ZBapiRepmanconf1Create"><soap:operation soapAction="" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="ZWS_PCNFService"><wsdl:port name="ZWS_PCNF" binding="tns:ZWS_PCNF"><soap:address location="http://de2.phifersap/sap/bc/srt/rfc/sap/zws_pcnf/200/zws_pcnf/zws_pcnf"/></wsdl:port></wsdl:service></wsdl:definitions>

Former Member
0 Kudos

Trevor, your link provided our SAP developer with the information he needed. The WSDL is now complete and we are able to use the web service from our .Net client application.

Thanks so much for your help.

Steve

Answers (0)