Professional Documents
Culture Documents
Applies to:
SAP PI 7.x and SAP XI 3.0
Summary
This HOWTO shows how to wrap any ABAP RFC-Call into a Web Service that can even be used on a JavaMobile-Phone.
Author:
Rene Pilz
Author Bio
SAP PI Specialist at SFS Services AG, Heerbrugg, Switzerland. We wad the first productive
SAP XI Installation within Switzerland. Currently we have up to 400 Partner-Connections with
any possible format (EDIFACT, ANSI, XML, CSV, FIXED-Length,). Also responsible for Mobile
Development Team just started.
Table of Contents
Overview ............................................................................................................................................................. 3
Download RFC-Information from R/3 System .................................................................................................... 4
Create Web Service Request and Response Structure ..................................................................................... 6
Create Web Service Interface............................................................................................................................. 6
The Message Mappings (request and response) ............................................................................................... 7
The Operation Mapping ...................................................................................................................................... 7
Configurations within Integration Directory (integration builder)......................................................................... 8
WSDL? ............................................................................................................................................................. 10
Tests, Troubleshooting ..................................................................................................................................... 10
Related Content ................................................................................................................................................ 11
Disclaimer and Liability Notice .......................................................................................................................... 12
Overview
We create a Web Service with PI 7.x. This Web Service is wrapped around a RFC-Call to the ABAP-Stack.
So you can wrap any RFC-Call into a Web Service and use this for example on a mobile phone.
See also the Source-Forge Project xmlnodeparser which provides a lightweight SOAP-Client that can run on
any Java-Capable Mobile Phone (even those without JSR 172 - Web Services).
Now you can right-click on "Imported Objects" and choose "Import SAP Objects":
[]
Mode: Syncron
Category: Outbound
Add the Request and Response-Structures which you created in the step before.
You should get something like that:
Within the Mapping for the request you should use the imported RFC-Message as target.
When importing a RFC-Structure you should also get an <>.Response Message. This is the
source of you response Mapping
The <>.Exception Message could use for error handling. This is not always a must, it depends if
you RFC-Call can rise an excepton.
As soon as you save your operations mapping you'll get two tabs: Request and Response. Choose the right
one of your message mappings there:
Type: SOAP
Create a receiver communications channel for executing the RFC-Call in the ABAP stack:
Type: RFC
WSDL?
Within the sender agreement you can choose in the menu:
Sender agreement show WSDL
Please use only this WSDL because all others (there are many places within the PI where you can create
one!!) are not complete.
Tests, Troubleshooting
Now you can use the WSDL with any usable Webservice Client (i.E. Netweaver Developer Studio).
Alternative you can also go to
http://<host>:<port>/wsnavigator
where host is your PI hostname and port your Java-WAS port
Here you can enter the WSDL-URL as shown within the Sender Agreement and test the WSDL.
Normally synchronous calls which are successfully are not shown with PI Transaction SXMB_MONI, but you
can set the following parameters within Integration Engine - Administration (TA SXMB_ADM):
Related Content
Reference 1: How to publish PI webservice for wsdl
Reference 2: XI Adapter Notes Have a look at SOAP-Adapter
Reference 3: Example WSDL File
Reference 4: xmlnodeparser (Sourceforge) Lightweight Java SOAP-Client, even for Java-Mobile