cancel
Showing results for 
Search instead for 
Did you mean: 

lost attachments

Former Member
0 Kudos

Hi,

I have a synchronous scenario ABAP client Proxy <> XI (7.1)<> ABAP server Proxy. The server proxy returns a SOAP response with one or more file as attachments.

I have implemented the server with attachment_prot->set_attachments method and can see from sxmb_moni that the attachments sending from the server are being sent back to the client proxy.

But, when I try to retrieve the attachments from the client proxy with attachment_protocol->get_attachments method, there is nothing in the returning attachment table.

The attachments are lost somewhere.

Can someone suggest on what went wrong?

Points will awarded to helpful hints.

Best regards,

-Michelle

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I looked into my ABAP coding where I try to get the attachment from the proxy.

  DATA lo_attachment_protocol TYPE REF TO if_wsprotocol_attachments.
  DATA lt_attachments       TYPE prx_attach.
  DATA io_proxy type ref to co_hrrcf_resumeparse_qr.
  create object io_proxy.

  TRY.

      lo_attachment_protocol ?= io_proxy->get_protocol(
                                      if_wsprotocol=>attachments ).

      lt_attachments = lo_attachment_protocol->get_attachments( ).


    CATCH cx_ai_system_fault INTO lo_ex_ai_system.
      RAISE EXCEPTION TYPE cx_hrrcf
        EXPORTING
          previous = lo_ex_ai_system.
  ENDTRY.

The protocol created from io_proxy->get_protocol has empty attachments instead of the attachments sending back by the server. I think this is where the problem is.

May be what I'm doing is wrong?

Does anyone have an example of getting/reading the attachments inside a CLIENT proxy?

Thanks,

-Michelle

Former Member
0 Kudos

I had a look at adapter attribute:<a href="http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm</a>

It says XI adapter type does not support attachment.

Is this still true, since I'm using XI adapter for my scenario?

Could it be that this is the souce of my problem with attachment?

Does anybody know?

Regards,

-Michelle

Former Member
0 Kudos

Any suggestions? Anybody?

-Michelle

Former Member
0 Kudos

Hi Michelle,

I am sending a SOAP request to ECC through server proxy and I want attachment back in the proxy response to be sent back as a SOAP response.

I notice that you had successfully written code in your server proxy program to send the attachment back. Could you please share the code as Im not able to get any help on that.

Thanks,

Shbohit