cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP to RFC

Former Member
0 Kudos

Hi,

A design has to be proposed for the scenario with following requirements:

There is a third party system which invokes a Web Service(hosted on XI) in XI which further goes to RFC and fetches the data from SAP system, and returns the data fetched through the SOAP Response.

Can someone tell the best design approach that can be followed for this Scenario(exact approach to implement this), and if possible also what all objects needs to be created for this scenario.

Vikas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

But here we are not provided with the wsdl file.

But message interface has to be exposed as the web service. Can anyone please tell how is this step done (exposing message interface as the web service) and further export wsdl from message interface.

Vikas

Former Member
0 Kudos

Hey,

Once you are done with configurations in ID you can find the option Generate WSDL.. in Tools oprion of menu and you need to provide the following URL

http://host:port/XISoapAdapter/MessageServlet?channel=:BS_SENDER:SenderChannelName

once this is done click generate it will generate WSDL there a lot of articles on this

go to SDN library and search there you will get the detailed ones

Rajesh

former_member206760
Active Contributor
0 Kudos

simple...

just create your source data type , message type , interface etc.....so no change in the way you do your IR..

then in ID -> goto webservice create ....here u have to provide your outbound message interface name that you created in IR...

and a URL http://<host>:<j2ee-port>/XISOAPAdapter/MessageServlet?

channel=:<service>:<channel>

in host give your Xi host....port give the j2ee port of XI ..ont that you see on the uurl of home page of XI starting from 5****

in service give your sender business syetm name and channel give your sender soap channel...

after that you can save the WSDL ...

give thhis WSDL to the sender system and you are done..

also configure the sender soap channel properly

Answers (6)

Answers (6)

Former Member
0 Kudos

Thank you all for your valuable suggestions. It really proved to be helpful.

Vikas

Former Member
0 Kudos

Please correct me if I'm wrong..

So there will be :

2 Data Types (1 for SOAP Request and 1 for SOAP Response)

2 Message Types

1 Message Interface (Outbound / Synchronous) In this step what will be the output and input messages ( Will we use the above message types here or the messages that we get from WSDL??)

Vikas

Former Member
0 Kudos

Hi Vikas,

Here are the steps that are required to be done for your requirement:

*1.* *Create RFC in the R/3 system* - Create an RFC inthe R/3 system

*2*. *Design the interfaces in Integration Repository*

2.1 Import RFC - Import the RFC that we have created in the above step from the corresponding R/3 system.

2.2 Define Request and Response Data Types -Define a new data types for each Request and Response messages of imported RFC.

2.3 Define Request and Response Message Types - Create Request Message Type by encapsulating Request data type.

2.4 Create outbound synchronous Message Interface -This Outbound Message Interface is published as a Web service in Integration Directory. Once we define this interface as web service it will generate WSDL file with which we can create a SOAP request using third party tools like XML SPY or Microsoft Info path

2.5 Create Message mappings - Two message mappings are to be created.The first mapping is between Request message type and RFC Request message and the second mapping is between RFC Response message and Response message type

2.6 Create Interface mapping - As the Interface is Synchronous it will ask for the Request and Response where the request and response mappings created in the above step have to be specified.

*3.* *Configurations in the Integration Directory*

3.1 Create Business service and communication channel for SOAP sender.

3.2 Import Business system and create receiver RFC communication channel

3.3 Create Sender agreement, Receiver determination, Interface determination and Receiver agreement

3.4 Define web service -- To define the web service, select define web service from the tools menu >Define webservice>follow the steps in the wizard

Save and activate all the objects. Test your scenario with third party tools like XML Spy or Microsoft InfoPath.

Regards,

Kalpana.

Regards,

Kalpana

Former Member
Former Member
0 Kudos

Thanks for the replies.

But can someone please tell the step wise, Which all objects need to be created in this scenario.

Both IR and ID (step wise) if possible. I am still confused with the steps of IR (how wsdl is exported from message interface and during this process what will be the input and output message types in message interface)

Vikas

former_member206760
Active Contributor
0 Kudos

your exact scenario is shown here

/people/shabarish.vijayakumar/blog/2007/11/07/walkthrough--soap-xi-rfcbapi

former_member206760
Active Contributor
0 Kudos

best design would be the SOAP sync to RFC synchronous scenario.

Former Member
0 Kudos

As it is an RFC i dont think you need to think of best design if it all required may be you require only in case of mapping ,if it is simple mapping no need to think of.

Did you search SDN for the entire scenario ?

if you are stuck with some where then post the step where you stuck with?

Rajesh