cancel
Showing results for 
Search instead for 
Did you mean: 

Superclass for ABAP server proxy?

Former Member
0 Kudos

Hi Experts,

I generated an ABAP server proxy by using a synchronous inbound interface of XI.

Can someone tell me which superclass does the server proxy use? I am trying to send an attachment back to XI in the proxy response but am not able to write the code of it.

Please help.

Thanks,

Shobhit

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

This may help

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

This blog is for sending attachment in client proxy. (Sending data from ECC to XI using a trigger in ECC)

But my requirement is to send the attachment in server proxy (XI calling the ECC proxy program which returns the attachment back to XI synchronously)

For this purpose Im not able to use the code in https://weblogs.sdn.sap.com/pub/wlg/3509. [original link is broken] [original link is broken] [original link is broken]

The server prxoy does not recognize the statement

attachment_protocol ?= prxy->get_protocol(

if_wsprotocol=>attachments ).

as the superclass of this method is not accessable by this proxy interface.

HELP!!

Regards,

Shobhit

prateek
Active Contributor
Former Member
0 Kudos

ok problem solved by using:

Accessing Protocol Classes for Server Proxies (XI Only)

Within the implementation of a server proxy, you get the protocol class by using the CL_PROXY_ACCESS=>GET_SERVER_CONTEXT( ) method:

DATA: lo_server_context TYPE REF TO if_ws_server_context,

lo_payload_protocol TYPE REF TO if_wsprotocol_payload.

lo_server_context = cl_proxy_access=>get_server_context( ).

lo_payload_protocol =

lo_server_context->get_protocol( if_wsprotocol=>payload ).

Thanks all,

Shobhit

szymon_bolek
Participant
0 Kudos

Shobhit,

ok, so you have the payload, and how did you send attachments using it?

best regards

simon:)

Edited by: Simon P. Bolek on Feb 15, 2011 2:53 PM

Answers (0)