cancel
Showing results for 
Search instead for 
Did you mean: 

Soap adapter usage

Former Member
0 Kudos

Hi all,

My customers want me to integrate SAP system(ss) with web service(ws) using XI. Now the scenario is as follows:

ss sends a soap message with attachment to ws and waits for a respond message, that is with attachment too. The communication is synchronous.

I guess I need to use two SOAP adapters to integrate the systems. So the questions are:

1. Must I do some changes in both: ss and ws to send messages to XI, and not to each other? If not, then how will adapters catch the messages from their direct processing? I mean if the ss sends a message as usually to ws, how will XI get this message?

2. According to scenario I must use mapping. But what should I do to take the attachment from one message and include it to another?

Thank you,

Dmitriy.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Dmitriy,

1. Must I do some changes in both: ss and ws to send messages to XI, and not to each other? If not, then how will adapters catch the messages from their direct processing? I mean if the ss sends a message as usually to ws, how will XI get this message?

---> You are 100% right, Here you need to use SOAP adapter.

The Scenario is SAP(SS) --- XI -


WebService(ws)

On SAP side either you could use ABAP proxy or RFC, usasge of IDOC will increase the complexity as you need to handle Async to Sync bridge etc.

Here you need to generate the wsdl file and have to deploy it on WebService end or if the wsdl is alreday available then import the wsdl in XI and use it.

ABAP proxy will be always performance wise better than the RFC,

There are two different uses for the ABAP proxy runtime:

• You want to exchange messages with the Exchange Infrastructure Integration Server by using ABAP proxies. To send a message to the Integration Server, use a client proxy. To provide a service on the SAP Web AS that can be addressed by messages from the Integration Server, use a server proxy.

• You want to call a Web service in the Internet and have generated a client proxy for this purpose. For a description of how Web services are used, see ABAP Web Services.

ABAP Proxy configuration:

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

Refer the below links:

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

http://help.sap.com/saphelp_nw04/helpdata/en/2b/f49b21674e8c44940bb3beafd83d5c/frameset.htm

Please find here with you the

SOAP

An Overview of SOAP

/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap

2. According to scenario I must use mapping. But what should I do to take the attachment from one message and include it to another?

Work with attachements in XI

SAP Network Blog: How-to create a web service with attachments (SOAP With Attachments)

/people/baris.buyuktanir2/blog/2007/03/06/how-to-create-a-web-service-with-attachments-soap-with-attachments

SAP Network Blog: XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments

/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments

Thanks

Swarup

Former Member
0 Kudos

Guys,

As far as I understand client proxy usage, I'll have to write code in SAP system to call proxy method execute_synchronous. As it appeared, I can't make any changes in this SAP system(mean write code, etc.), I can only configure system parameters.

According to this, is proxy usage still available in my case, or should I use one more SOAP adapter to connect SAP system and XI?

Just f.y.i. - SAP system is SAP E-Recruiting.

prateek
Active Contributor
0 Kudos

should I use one more SOAP adapter to connect SAP system and XI?

SAP system cant be connected to XI using SOAP adapter.

U should use proxy in ur case.

To keep the attachment at the receiver end, check the checkbox Keep Attachment at the receiver SOAP adapter

Regards,

Prateek

Former Member
0 Kudos

Thank you guys, the problem seems to be solved.

Former Member
0 Kudos

Hi Dmitriy !

You just need one SOAP adapter.

The scenario will be as follows : SAP<->XI<->SOAP

When you define a synchronous scenarion like this, you just need one SOAP adapter receiver that will send the request to the WS, and also receive the response from this WS and send it back to XI to route it to SAP.

1) You should decide how are you sending data from SAP to XI, you could use RFC, IDOC or ABAP Proxy, depending on already existant procedures or if you need to create new ones. You should use an user exit or some event (maybe a job) that triggers the sending of data to XI. For the WS, if it is already working, you just need to configure the SOAP adapter receiver in XI to put the URL and some other parameters.

2) here are some interesting links:

RFC -> XI -> WebService - A Complete Walkthrough

/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1

/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2

/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments

/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap

/people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies

Regards,

Matias

ps: please award points if helpful.