cancel
Showing results for 
Search instead for 
Did you mean: 

File / ABAP Proxy to SOAP WS (MTOM) - Synchronous Scenario - PI 7.11

former_member182004
Contributor
0 Kudos

Hi everyone!

I have a requirement to develope a synchronous interface where the receiver is a WS which expects a MTOM message (with an attachment) and it will response back with another one. In the sender side, there is a SAP ECC System and it's still not defined if they are going to send me a File (to be picked up with a File Adapter) or vía ABAP Proxy (I guess in this case I'd have to convert the inbound payload to an Attachment).

I saw several links about this. But I'm not sure which one would be the best in this (or both) cases.

I would like to know what your opinions are about these two approaches:

1 - Picking up a file to send it as an attachment to a WS using MTOM

2 - Receiveng an ABAP Proxy call to send it as an attachment to a WS using MTOM

Thanks in advance!

  Juan.

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

When you want to send a SOAP with attachment, you should rather think about abap proxy, as you can create main payload and attachment. If you use file adapter, you have to create main payload in Mapping, which is rather complex task. For MTOM you need Axis framework for SOAP adapter, as standard SOAP adapter does not support it.

former_member182004
Contributor
0 Kudos

Hi Stefan, thank for your answer.

I've some questions about your suggestion as I didn't work with attachments nor MTOM previously.

In the sender side (ABAP Proxy) the idea would be to send the file as an attachment? Or to enter into PI as a regular call and create the attachement vía a program mapping? Is the same to use -XI- protocol or SOAP (AAE) to get de proxy call?

And, in the receiver side, you meant to use the -HTTP (Axis)- transport protcol for SOAP Adapter?

Thank you again.

Regards,

  Juan.

stefan_grube
Active Contributor
0 Kudos

Hi Juan, the ABAP proxy should create the message in a similar way as the receiver wants it, that means, the main payload and the attachment should be provided by ABAP proxy. I have the impression that you have not investigated in the structure of the web service. This is very important that you know exactly how the web service structure of request and response look like. It could for example look like this: https://docs.oracle.com/cd/E21455_01/common/tutorials/conversion_extract_mtom.html So think about what is your main message (in XML) and what is your attachment. Regards Stefan

former_member182004
Contributor
0 Kudos

Hi again Stefan, you're right about the lack of information of the receiver WS.

I forgot to mention that we're still using a mock WS for test purposes as the req/resp it's not entirely clear.

I'll talk to them and check this information. When I get these data I'll post again.

Thanks again,

Regards,

Juan.

former_member182004
Contributor
0 Kudos

Closing thread because of lack of information.