cancel
Showing results for 
Search instead for 
Did you mean: 

creating a web service model

Former Member
0 Kudos

hi,

i am new to weddynpro application.

i have successfully created an application using Adaptive RFC model.

now i want to create one using the web services model. ihave been provided an URL for the same:

" The web service definition is available at : http://172.25.8.75:8001/sap/bc/srt/rfc/sap/ZMANAGE_MAKT?sap-client=800&wsdl=1.1 "

now im not able to understand how to proceed with it.

please help me out.

THANKS..

regards,

Ankita

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Ankita,

As Sumit and Manoj has already replied that you dont need wsdl file. You just need the URL for the web service to create the web dynpro model. The steps are explained in the links provided. You may try those steps.

Regards

Mrityunjay

Former Member
0 Kudos

Hi,

You don't have to do anything with the wsdl file.

Go to your DC, right-click on model, select Create Model.

Then select the second option.

In the next screen give a meaningful model name and package.

Now in the same screen you have select the wsdl source. Click in Local Server if the web-service is deployed on your local server else click on UDDI or URL.

In the next screen, Select the 2nd option for logical destination. Give sample names as SAMPLE_WS in both the drop-downs.

In the next screen, You have to enter the URL of your wsdl which you are having.

Then click on next and then finish.

Your web-service model is created.

thanks & regards,

Manoj

Former Member
0 Kudos

hi Mritunjay,

Thanx for ur links.

actually i am not able to follow the xml file.

i m sending the file:

<?xml version="1.0" encoding="utf-8" ?>

- <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <wsdl:types>

- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified">

- <xsd:simpleType name="RfcException.Message.Number">

- <xsd:restriction base="xsd:string">

<xsd:maxLength value="3" />

<xsd:pattern value="\d*" />

</xsd:restriction>

</xsd:simpleType>

- <xsd:simpleType name="char1">

- <xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

</xsd:restriction>

</xsd:simpleType>

- <xsd:simpleType name="char18">

- <xsd:restriction base="xsd:string">

<xsd:maxLength value="18" />

</xsd:restriction>

</xsd:simpleType>

- <xsd:simpleType name="char4">

- <xsd:restriction base="xsd:string">

<xsd:maxLength value="4" />

</xsd:restriction>

</xsd:simpleType>

- <xsd:simpleType name="char40">

- <xsd:restriction base="xsd:string">

<xsd:maxLength value="40" />

</xsd:restriction>

</xsd:simpleType>

- <xsd:simpleType name="char60">

- <xsd:restriction base="xsd:string">

<xsd:maxLength value="60" />

</xsd:restriction>

</xsd:simpleType>

- <xsd:simpleType name="char9">

- <xsd:restriction base="xsd:string">

<xsd:maxLength value="9" />

</xsd:restriction>

</xsd:simpleType>

- <xsd:complexType name="ZMAKT">

- <xsd:sequence>

<xsd:element name="MATNR" type="tns:char18" />

<xsd:element name="MAKTX" type="tns:char40" />

<xsd:element name="MTART" type="tns:char4" />

<xsd:element name="MATKL" type="tns:char9" />

</xsd:sequence>

</xsd:complexType>

- <xsd:complexType name="RfcException.Message">

- <xsd:sequence>

<xsd:element name="ID" type="xsd:string" />

<xsd:element name="Number" type="tns:RfcException.Message.Number" />

</xsd:sequence>

</xsd:complexType>

- <xsd:complexType name="ZMANAGE_ZMAKT.RfcException">

- <xsd:sequence>

<xsd:element name="Name" type="tns:ZMANAGE_ZMAKT.RfcExceptions" />

<xsd:element name="Text" minOccurs="0" type="xsd:string" />

<xsd:element name="Message" minOccurs="0" type="tns:RfcException.Message" />

</xsd:sequence>

</xsd:complexType>

- <xsd:complexType name="TABLE_OF_ZMAKT">

- <xsd:sequence>

<xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:ZMAKT" />

</xsd:sequence>

</xsd:complexType>

- <xsd:simpleType name="ZMANAGE_ZMAKT.RfcExceptions">

- <xsd:restriction base="xsd:string">

<xsd:enumeration value="UNEXPECTED_ERROR" />

</xsd:restriction>

</xsd:simpleType>

<xsd:element name="ZMANAGE_ZMAKT.Exception" type="tns:ZMANAGE_ZMAKT.RfcException" />

- <xsd:element name="ZMANAGE_ZMAKT">

- <xsd:complexType>

- <xsd:sequence>

<xsd:element name="OPERATION" type="tns:char1" />

<xsd:element name="ZMAKT_INS" minOccurs="0" type="tns:ZMAKT" />

<xsd:element name="ZMAKT_SEL" type="tns:TABLE_OF_ZMAKT" />

<xsd:element name="ZMAKT_UPD" type="tns:TABLE_OF_ZMAKT" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

- <xsd:element name="ZMANAGE_ZMAKTResponse">

- <xsd:complexType>

- <xsd:sequence>

<xsd:element name="MESSAGE" type="tns:char60" />

<xsd:element name="ZMAKT_SEL" type="tns:TABLE_OF_ZMAKT" />

<xsd:element name="ZMAKT_UPD" type="tns:TABLE_OF_ZMAKT" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

- <wsdl:message name="ZMANAGE_ZMAKT">

<wsdl:part name="parameters" element="tns:ZMANAGE_ZMAKT" />

</wsdl:message>

- <wsdl:message name="ZMANAGE_ZMAKTResponse">

<wsdl:part name="parameters" element="tns:ZMANAGE_ZMAKTResponse" />

</wsdl:message>

- <wsdl:message name="exception00">

<wsdl:part name="exception00" element="tns:ZMANAGE_ZMAKT.Exception" />

</wsdl:message>

- <wsdl:portType name="ZMANAGE_MAKT">

- <wsdl:operation name="ZMANAGE_ZMAKT">

<wsdl:input message="tns:ZMANAGE_ZMAKT" />

<wsdl:output message="tns:ZMANAGE_ZMAKTResponse" />

<wsdl:fault name="exception00" message="tns:exception00" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:binding name="ZMANAGE_MAKTSoapBinding" type="tns:ZMANAGE_MAKT">

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

- <wsdl:operation name="ZMANAGE_ZMAKT">

<soap:operation soapAction="" />

- <wsdl:input>

<soap:body use="literal" />

</wsdl:input>

- <wsdl:output>

<soap:body use="literal" />

</wsdl:output>

- <wsdl:fault name="exception00">

<soap:fault name="exception00" use="literal" />

</wsdl:fault>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="ZMANAGE_MAKTService">

- <wsdl:port name="ZMANAGE_MAKTSoapBinding" binding="tns:ZMANAGE_MAKTSoapBinding">

<soap:address location="http://ec6ides.lntinfotech.com:8001/sap/bc/srt/rfc/sap/ZMANAGE_MAKT?sap-client=800" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

can u jst clear my doubt of hw this file is helpful

Former Member
0 Kudos

Hi Ankita,

While working with webdynpro ,actually u don't need the xml directly. u need mainly the webservice url, u can get it in wsnavigator

go to http://<host>:<port>/wsnavigator. there u can find the url. using that url u can create the web service model as described in the tutorial i sent u.

regards

Sumit

Former Member
0 Kudos

Hi Ankita,

Check these tutorials

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf</a>

check the sample application here

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#16">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#16</a>

regards

Sumit

Former Member
0 Kudos

Hi Ankita,

I am not able to see web service definition provided by you.

Still you can check these links. It might help..

http://help.sap.com/saphelp_nw2004s/helpdata/en/24/4e70c63574ec4284d0f47324ab2d0e/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/cb2e29578c0262e10000000a11466f/frameset.htm

Regards

Mrityunjay