none
Send business data as soap body / attach as MIME / Both RRS feed

  • Question

  • Hi,

    How to send soap message with MIME attachment(1 or more attachment) along with soap body to any web-service (Java/Microsoft/other technologies) ?

    regards,
    Prince (Elavarasan)


    Regards Prince

    Friday, April 4, 2014 5:08 AM

Answers

  • Are you specifically looking for MIME or just SOAP with Attachments (SwA)? AFIK, WCF does not provide MIME support out-of-the-box, instead it encourage to use MTOM as an alternative, The reason - MIME is not supported by multiple platform, Refer Web Service Attachments Support Matrix.

    Source-http://webservices20.blogspot.in/2010/08/mime-attachments-swa-for-wcf.html

    If you need to have MIME support, you have two options,

    Option-One: Use an extension library developed by Microsoft Austria Interoperability Council here.

    Option-Two: Create your own SOAP request with attachment as Bas64 binary as below and post that using httpWebRequest class.



    Lingaraj Mishra


    Friday, April 4, 2014 6:23 AM

All replies

  • Are you specifically looking for MIME or just SOAP with Attachments (SwA)? AFIK, WCF does not provide MIME support out-of-the-box, instead it encourage to use MTOM as an alternative, The reason - MIME is not supported by multiple platform, Refer Web Service Attachments Support Matrix.

    Source-http://webservices20.blogspot.in/2010/08/mime-attachments-swa-for-wcf.html

    If you need to have MIME support, you have two options,

    Option-One: Use an extension library developed by Microsoft Austria Interoperability Council here.

    Option-Two: Create your own SOAP request with attachment as Bas64 binary as below and post that using httpWebRequest class.



    Lingaraj Mishra


    Friday, April 4, 2014 6:23 AM
  • Thank You Very much Lingaraj

    Regards Prince


    Tuesday, April 8, 2014 12:06 PM