Skip to Content
avatar image
Former Member

Mail Adapter to Soap Adapter keeping the attachments - How?

Hi guys,

I am working on a scenario where I should pull emails from an Exchange server and I should forward them (with their attachments) to a separate systems via a Web Service.

So far I have been able to pull the emails using the Mail Adapter and I get to see them in the monitoring tool of PI with their attachment(s). But what I am not sure of is how I should forward these emails to the external system using a web service.

This system should expose this web service that should use something similar to SOAP with attachments (I guess) and then PI should forward these attachments using the receiver SOAP adapter with the "keep attachments" option selected.

Is this something that could work as simply as this (by configuring these two adapters to keep their attachments) OR will I need to do some more fancy stuff?

Thanks for any advice you can give me on this.

Aldo

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 19, 2010 at 07:39 PM

    When you want to call a web service, your message payload should be compliant to the target structure.

    So you have to garantuee that the mail bode is an XML document.

    Otherwise you really have to do something.

    The attachments are no problem. Set "keep attachment" in mail and SOAP adapter, that is all.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Stefan,

      thanks for your replay.

      Yes, I understand that the mail should be in an XML message. And with that part we are doing OK. We have managed to send the XML between the systems.

      However, what I don't understand is how to pass the attachments.

      How should the receiving system receive them? if they are not in the XML message itself how are these going to be passed over?

      Will the SOAP envelop have some kind of link or reference to the attachments?

      The receiving system is a SAP CE system and it's based on Java. Can they expose a service that will somehow handle these attachments?

      Could you explain this part to us? this is where we get confused.

      Thanks for your help in advance,

      Aldo

  • avatar image
    Former Member
    Nov 17, 2010 at 11:33 AM

    The answer given by Stefan was sufficient.

    Attachments are kept just by selecting the "keep attachments" option.

    Add comment
    10|10000 characters needed characters exceeded