Skip to Content
author's profile photo Former Member
Former Member

Unable to create Web Service Model

Hi All,

I generated one wsdl file from Message Interfaces in Integration Repository of SAP XI.

I am unable to create the model by using this wsdl file in Web Dynpro.

I followed this approach

In the NWDS > model > createModel > Import WebService Model > LocalFile System or URL > Here I am selecting wsdl file from local system.

But the model is not created. Even it is not giving any message or error.

Please suggest how to proceed.

Regards

Ashish.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2005 at 07:33 AM

    Hi Ashish,

    I think you missed something when u r creating the wsdl only.

    So do one thing check it again else create the wsdl again and try importing it. It should not be the problem else.I'm giving my wsdl file here..just check it with this. This takes the associate id as input and will give 3 outputs like email id and others as output. I dont think u can use this wsdl. You can simply compare this with ur wsdl and find out wat is the mistake..

    <?xml version="1.0" encoding="ISO-8859-1"?>

    http://schemas.xmlsoap.org/wsdl/" xmlns:p1=" http://esaTwoRfcWebservice.satyam.com" name="Soap_OutBound_MI" targetNamespace=" http://esaTwoRfcWebservice.satyam.com">

    <wsdl:types>

    http://www.w3.org/2001/XMLSchema" xmlns=" http://esaTwoRfcWebservice.satyam.com" targetNamespace=" http://esaTwoRfcWebservice.satyam.com">

    <xsd:element name="Soap_In_MT" type="File_In_DT" />

    <xsd:element name="Soap_Out_FromRFC_MT" type="FileFromRFC1_DT" />

    <xsd:complexType name="FileFromRFC1_DT">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    b598f031e79611d995c8e527ac121d2b

    </xsd:appinfo>

    </xsd:annotation>

    <xsd:sequence>

    <xsd:element name="Details" minOccurs="0" maxOccurs="unbounded">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    fd9f6cc0e6f511d9aa5bdfdeac121d2b

    </xsd:appinfo>

    </xsd:annotation>

    <xsd:complexType>

    <xsd:sequence>

    <xsd:element name="Associate_Name" type="xsd:string">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    fd9f6cc1e6f511d9b0bddfdeac121d2b

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    <xsd:element name="Associate_Mail_ID" type="xsd:string">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    fd9f6cc2e6f511d9c314dfdeac121d2b

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    <xsd:element name="From_SecondRFC_Name" type="xsd:string">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    b598f030e79611d9a6abe527ac121d2b

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    </xsd:sequence>

    </xsd:complexType>

    </xsd:element>

    </xsd:sequence>

    </xsd:complexType>

    <xsd:complexType name="File_In_DT">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    15c39470e79611d9b14200096bf55f9d

    </xsd:appinfo>

    </xsd:annotation>

    <xsd:sequence>

    <xsd:element name="Associate_Id" type="xsd:string">

    <xsd:annotation>

    http://sap.com/xi/TextID">

    b09aa0c0e6f511d9912fdfdeac121d2b

    </xsd:appinfo>

    </xsd:annotation>

    </xsd:element>

    </xsd:sequence>

    </xsd:complexType>

    </xsd:schema>

    </wsdl:types>

    <wsdl:message name="Soap_In_MT">

    <wsdl:part name="Soap_In_MT" element="p1:Soap_In_MT" />

    </wsdl:message>

    <wsdl:message name="Soap_Out_FromRFC_MT">

    <wsdl:part name="Soap_Out_FromRFC_MT" element="p1:Soap_Out_FromRFC_MT" />

    </wsdl:message>

    <wsdl:portType name="Soap_OutBound_MI">

    <wsdl:operation name="Soap_OutBound_MI">

    <wsdl:input message="p1:Soap_In_MT" />

    <wsdl:output message="p1:Soap_Out_FromRFC_MT" />

    </wsdl:operation>

    </wsdl:portType>

    <wsdl:binding name="Soap_OutBound_MIBinding" type="p1:Soap_OutBound_MI">

    http://schemas.xmlsoap.org/wsdl/soap/" style="document" transport=" http://schemas.xmlsoap.org/soap/http" />

    <wsdl:operation name="Soap_OutBound_MI">

    http://schemas.xmlsoap.org/wsdl/soap/" soapAction=" http://sap.com/xi/WebService/soap1.1" />

    <wsdl:input>

    http://schemas.xmlsoap.org/wsdl/soap/" use="literal" />

    </wsdl:input>

    <wsdl:output>

    http://schemas.xmlsoap.org/wsdl/soap/" use="literal" />

    </wsdl:output>

    </wsdl:operation>

    </wsdl:binding>

    <wsdl:service name="Soap_OutBound_MIService">

    <wsdl:port name="Soap_OutBound_MIPort" binding="p1:Soap_OutBound_MIBinding">

    http://schemas.xmlsoap.org/wsdl/soap/" location="http://cgnsap12:8000/sap/xi/engine?type=entry&version=3.0&Sender.Service=ESA_SOAP_SERVICE&Interface=http%3A%2F% 2FesaTwoRfcWebservice.satyam.com%5ESoap_OutBound_MI" />

    </wsdl:port>

    </wsdl:service>

    </wsdl:definitions>

    All the best.

    Regards,

    Sirisha.R.S

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ashish,

      U should create it in Integraiton Directory.. May be u mispelled it in the previous reply,

      <b>I just wanted to know when i m generating a wsdl file based on Message Interfaces in Integration repository(Design)</b>

      Its ok, it will create a model in webdynpro definitely else You went wrong some where in creating the webservice itself. Please check it again.

      all the best,

      Regards,

      Sirisha.R.S

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2005 at 04:29 AM

    Hi Ashish,

    I guess, the WSDL file you are using doesnot contain Soap end point. So, you can't make model from this wsdl file.

    But, there is another way to achieve this.

    http://<host>:8000/sap/xi/adapter_plain?namespace=<name space of your scenario>&interface=<interface name>&service=<service name>&party=<party>&agency=<agency>&scheme=<scheme>&QOS=<QOS>&sap-user=<user id>&sap-password=<password>&sap-client=<Client id>&sap-language=<language>

    Using this link you can call your scenario from webdynpro application. Then, pass required data to this scenario in XML form as post data using opening HTTP connection to this url.

    Regards,

    Bhavik

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ashish,

      You can't use that WSDL file becuase this wsdl file is not complete. You can only import wsdl files which includes soap end point.

      Do one thing. Take any web service wsdl file which you can import successfully and then compare it with yours wsdl and try to modify as per your requirement. I guess you have to add soap endpoint as url i have given above but not sure. 😉

      Regards,

      Bhavik