cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create Web Service Model

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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"?>

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

<wsdl:types>

<xsd:schema xmlns:xsd="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>

<xsd:appinfo source="http://sap.com/xi/TextID">

b598f031e79611d995c8e527ac121d2b

</xsd:appinfo>

</xsd:annotation>

<xsd:sequence>

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

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

fd9f6cc0e6f511d9aa5bdfdeac121d2b

</xsd:appinfo>

</xsd:annotation>

<xsd:complexType>

<xsd:sequence>

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

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

fd9f6cc1e6f511d9b0bddfdeac121d2b

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

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

<xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">

fd9f6cc2e6f511d9c314dfdeac121d2b

</xsd:appinfo>

</xsd:annotation>

</xsd:element>

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

<xsd:annotation>

<xsd:appinfo source="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>

<xsd:appinfo source="http://sap.com/xi/TextID">

15c39470e79611d9b14200096bf55f9d

</xsd:appinfo>

</xsd:annotation>

<xsd:sequence>

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

<xsd:annotation>

<xsd:appinfo source="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">

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

<wsdl:operation name="Soap_OutBound_MI">

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

<wsdl:input>

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

</wsdl:input>

<wsdl:output>

<soap:body xmlns:soap="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">

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

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

All the best.

Regards,

Sirisha.R.S

Former Member
0 Kudos

Hi Sirisha,

Thanks a ton. I could manage to create a model based on the wsdl file. well the wsdl file which u had send, helped me in creating a proper wsdl file. I just wanted to know when i m generating a wsdl file based on Message Interfaces in Integration repository(Design) of SAP XI. why is that wsdl file not creating a model in Web Dynpro.

Thanks & Regards

Ashish

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Bhavik,

Thanks for ur reply. I want to do with WSDL file only. So can u suggest how to do and what exactly is missing in that file. Your help will be appreciated.

Regards

Ashish

Former Member
0 Kudos

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