on 09-09-2007 6:06 PM
Hello experts,
I have a problem while sending an attachment from a client to a server ( ABAP proxy <--> XI -<-> ABAP proxy ). I did the following:
Client (set attachment):
DATA: interface TYPE REF TO co_hrrcf_resumeparse_qr,
attachment_protocol TYPE REF TO if_wsprotocol_attachments,
attachment TYPE REF TO if_ai_attachment,
attachments TYPE prx_attach.
CREATE OBJECT interface.
attachment_protocol ?= interface->get_protocol( if_wsprotocol=>attachments ).
attachment = attachment_protocol->get_attachment_from_text(
data = 'Hello World'
type = if_ai_attachment=>c_mimetype_text_plain
name = 'TEXT_ATTACH' ).
APPEND attachment TO attachments.
attachment_protocol->set_attachments( attachments ).
CALL METHOD interface->execute_synchronous
EXPORTING
output = ls_proxy_data_out
IMPORTING
input = ls_proxy_data_in.
Server (get attachment sent by the client):
DATA server_context TYPE REF TO if_ws_server_context.
DATA attachment_prot TYPE REF TO if_wsprotocol_attachments.
data attachments TYPE prx_attach.
server_context = cl_proxy_access=>get_server_context( ).
attachment_prot ?= server_context->get_protocol( if_wsprotocol=>attachments ).
attachments = attachment_prot->get_attachments( ).
The problem is the server did not get the attachments sent by the client.
Any suggestions on what might cause the problem?
The coding above I copied from CL_SXIVERIATTACH_SYNC_IN and CO_SXIVERIATTACH_SYNC_OUT delivered by SAP.
Thank you and regards,
-Michelle
Hi Michelle,
before you post to SDN, you have to think about:
- 7.1 is not available for customers,
- XIVERY is SAP internal and not shipped to customers,
Therefore you might not get responses for this issues on SDN.
Why you do not ask the author of the CL_SXIVERIATTACH_SYNC_IN, if he/she could help you?
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Stefan,
I posted because I doubt that it is a just a simple problem with get and set and hence I did not ask the author of CL_SXIVERIATTACH_SYNC_IN. But, it should be something more technical that most of the SDNer are experts of.
Thank you very much for your suggestion. I will take my post off SDN.
Best regards,
-Michelle
http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/content.htm
/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.