Consumption Of vbl_01.pdf

Description
Consuming the External Web Service in SAP Environment Applies to: SAP EHP 1 for SAP NetWeaver 7.0. For more information, visit the ABAP homepage. Summary This document focuses on the steps for the consumption of external web service (a freely available web service from internet) into SAP environment. It will also focus on the basic troubleshooting while consuming the external web service. Author: Animesh Sundriyal Company: ITC Infotech Limited. Created on: 3 December 2010 Author Bi

Please download to get full document.

View again

of 31
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information
Category:

Documents

Publish on:

Views: 0 | Pages: 31

Extension: PDF | Download: 0

Share
Transcript
    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX -  bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 1 Consuming the External Web Service in SAP Environment Applies to: SAP EHP 1 for SAP NetWeaver 7.0. For more information, visit the  ABAP homepage.  Summary This document focuses on the steps for the consumption of external web service (a freely available web service from internet) into SAP environment. It will also focus on the basic troubleshooting while consuming the external web service. Author:  Animesh Sundriyal Company:  ITC Infotech Limited. Created on:  3 December 2010 Author Bio I am SAP ABAP and Webdynpro consultant with 3 years and 10 months of experience currently working in the integration of ABAP Webdnpro and MDM.   Consuming the External Web Service in SAP Environment SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX -  bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 2 Table of Contents Overview ............................................................................................................................................................. 3   Illustration ........................................................................................................................................................ 3   PROGRAM ................................................................................................................................................................ 27   Troubleshooting ................................................................................................................................................ 29   Related Content ................................................................................................................................................ 30   Disclaimer and Liability Notice .......................................................................................................................... 31     Consuming the External Web Service in SAP Environment SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX -  bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 3 Overview Lets try using an external webservice into the SAP platform. By external webservice I mean the webservice which are hosted from the foreign system other than the system in which we are trying to consume the webservice. Let me take the example from the internet by using a freely available Illustration Lets open the website http://www.webservicex.net/ws/default.aspx from where we take the wsdl specification of a freely available webservice currency convertor.   Consuming the External Web Service in SAP Environment SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX -  bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 4 Now lets see the XML specification of the Currency Convertor Webservice and we can easily make out that multiple bindings are present with the multiple ports. Lets keep the operation <wsdl:operation name= ConversionRate > and the respective binding <wsdl:binding name= CurrencyConvertorSoap  type= tns:CurrencyConvertorSoap > and the   respective port <wsdl:port name= CurrencyConvertorSoap  binding= tns:CurrencyConvertorSoap > I mean copy the WSDL file and edit it in a notepad. keep the parts which are mentioned above and remove the following. Finally save it with the extention “.wsdl”.   <?xml version= 1.0 encoding= utf-8 ?>  -  <wsdl:definitions xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/  xmlns:tm= http://microsoft.com/wsdl/mime/textMatching/  xmlns:soapenc= http://schemas.xmlsoap.org/soap/encoding/  xmlns:mime= http://schemas.xmlsoap.org/wsdl/mime/  xmlns:tns= http://www.webserviceX.NET/  xmlns:s= http://www.w3.org/2001/XMLSchema  xmlns:soap12= http://schemas.xmlsoap.org/wsdl/soap12/  xmlns:http= http://schemas.xmlsoap.org/wsdl/http/  targetNamespace= http://www.webserviceX.NET/  xmlns:wsdl= http://schemas.xmlsoap.org/wsdl/ >  -  <wsdl:types>  -  <s:schema elementFormDefault= qualified  targetNamespace= http://www.webserviceX.NET/ >  -  <s:element name= ConversionRate >  -  <s:complexType>  -  <s:sequence>  <s:element minOccurs= 1  maxOccurs= 1  name= FromCurrency  type= tns:Currency /> <s:element minOccurs= 1  maxOccurs= 1  name= ToCurrency  type= tns:Currency /> </s:sequence>  </s:complexType>  </s:element>  -  <s:simpleType name= Currency >  -  <s:restriction base= s:string > <s:enumeration value= AFA /> <s:enumeration value= ALL /> <s:enumeration value= DZD /> <s:enumeration value= ARS /> <s:enumeration value= AWG /> <s:enumeration value= AUD /> <s:enumeration value= BSD /> <s:enumeration value= BHD /> 
Related Search
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks