cancel
Showing results for 
Search instead for 
Did you mean: 

Binary Attachments - MTOM vs. SOAP with Attachments

markus_schalk
Participant
0 Kudos

Hello everybody,

i am kind of stuck by implementing a soap to proxy scenario! I wanted to use MTOM to transfer the messages together with the attachments, but until now i couldn't find out if this is possible at all using the ws-adapter with backend proxy (version 701)!

I have seen this already:

http://help.sap.com/saphelp_nwpi711/helpdata/de/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm

unfortunately im not a abap coder, but i can see using attachments in proxys should work!

But how? Am i forced to used soap with attachments on sending webservice? If yes, have you got an example for me?

I would appreciate any help!

Thanks in advance,

Markus

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Markus,

were you able to solve your problem? Right now I'm at the same point as you were. I'd be thankful for any hints!

I also read about the theory of MTOM and SwA and know the theory.

In the referenced documentation of your link I read that it should be possible to read attachments with a proxy. But there isn't specified what kind of mechanism is supported by an SAP ECC 6.0 (Release 701).

Best Regards,

Patrick

markus_schalk
Participant
0 Kudos

Hi Patrick,

actually i solved it by encoding our binary attachments in base 64 and use them in special elements within the xml payload. As far as i know, you can only use MTOM while using the WS adapter in combination with an ecc webservice. As our webservice runtime on ECC is not yet fully configured, and performance with webservices is not as good as with proxies, i decided not to use it.

I think an alternative would be to use SwA and forward the attachment to the ecc proxy. Then i guess you should be able to get the attachment using the help of my link. Please give some feedback if you try it.

Kind regards,

Markus

markus_schalk
Participant
0 Kudos

Good morning everybody,

can anybody help me?

Kind regards,

Markus

Former Member
0 Kudos

Hi Markus,

Check the below link it may be useful for you.

http://blogs.oracle.com/theaquarium/entry/mtomtutorial_turbo_charged_soap_

Thanks,

Amar.

markus_schalk
Participant
0 Kudos

Hi Amar,

thanks for your reply, i know the mtom theory, but i don't know how to do it with sap pi on proxy side!

(By the way, your link throws a 404!)

Using soap adapter with enabled "keep Attachments" option, the MTOM-Attachment is getting processed, but on proxy side, using soap adapter (keeping attachments) to call proxy, it crashes on the backend side (version 701).

I tried to make a webservice out of the proxy in soamanager, but i didn't get this working, as i have never done this. Also i didn't find an option for mtom in soamanager. I am also wondering why mtom is only supported in ws-adapter 7.10 but not in 7.11, why is this? And is it possible to use soap-adapter on OB-side and WS-Adapter on IB-side, or can i only use ws-adapter for direct communication?

Lot's of questions i am facing ;-)...

Kind regards,

Markus

Former Member
0 Kudos

Hi Markus,

please check now.

http://blogs.oracle.com/theaquarium/entry/mtomtutorial_turbo_charged_soap_

Thanks,

Amar.

markus_schalk
Participant
0 Kudos

Still broken...

No other ideas?