cancel
Showing results for 
Search instead for 
Did you mean: 

Server proxy in Synchronous Interface

Former Member
0 Kudos

Hi

I am working on a synchronous scenario with sender and receiver as a .NET application.

It needs to retrieve data from SAP R/3 with XI as the interface.

SOAP(Web Service) Server Proxy

-


>XI -


>

.Net App R/3

SOAP(Web Service) Server Proxy

<--


XI <--


I want to use only a server proxy(synchronous) that will both send the request to R/3 and

send back the response to XI.Is it possible?

I dont want to use a client proxy here.

If yes than plz elaborate the steps.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You don't have to use Client Proxy because synchronous server proxy will do the needful.

Furthermore steps will be like this...

1. Create the data type for request & response

2. Create the message type for both the data types

3. Create the Inbound & Outbound Sync message Interface, which will contain the request & response message type in it.

4. Create the message mapping

5. Create the Interface mapping

Now when you create the syschronous inbound proxy (server proxy) you will get the INPUT & OUTPUT option. Input will bring the request and output will carry the response back to XI.

Regards,

Sarvesh

Edited by: Sarvesh Singh on Oct 28, 2009 5:23 PM

Former Member
0 Kudos

Hi Sarvesh

Thnx fr ur reply...

jst wanted to knw the steps for implementing a server proxy in that case.

Never dealt with such case before.

Please help.

Former Member
0 Kudos

Apart from above steps, use transaction code SPROXY to create the proxy class and start your coding. Below is the sample code to receive & send the data from and to XI.

1. Define the data type and internal tables

2. Now start moving data from INPUT structure your internal table work area. e.g.

Move INPUT -mt_inquiry-lifnr TO wa_parameters-lifnr.

3. Now you can play with data... do whatever you want.

4. Finaly you need to send the response to XI, so use this code... in the same proxy...

It depends, but in my case suppose your response contains multiple records, so I will loop on my response internal table and then

I will Append the data from reponse work area to OUTPUT. E.g.

Loop at ITAB into wa_itab.

move wa_itab-<field1> to wa_response-<field1>

.

.

.

APPEND wa_response TO OUTPUT -mt_r3_resp-recordset.

CLEAR: wa_resonse, wa_itab.

ENDLOOP.

Former Member
0 Kudos

Hi sriparna ,

jst wanted to knw the steps for implementing a server proxy in that case.

-


> Go to SPROXY transaction at application server

-


> choose your msg interface(it will be inbound type) righyt click and generate proxy

-


> proxy classes will genarte with message structures

-


> with in proxy class you will get execute_synchronous message . you need to write teh logic there using teh message structures created .

Blogs on ABAP server Proxies :

/people/siva.maranani/blog/2005/04/03/abap-server-proxies

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

PS : At XI server you need to use receiver XI adapter . For Proxy based scenarios you need to to certain settings at R/3 side also. Hope they are in place befare jumping into development.

Regards ,

Former Member

Answers (0)