on 07-24-2008 9:56 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
U can use the following:
http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/frameset.htm
Regards,
Prateek
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.