Discussions

XML & Web services: Document Transfer from Client to Server

  1. Hi Experts I have to write a web-service which can accept a document (it can be any thiny an XLS/.DOC/.JPG) from the client call along with other String inputs from the client. Kindly provide pointers on how I can go ahead designing the same. Thanks and Regards, Gopal.
  2. You would have to use SOAP with Attachments. More info about SOAP Attachments can be found <a href="http://www.w3.org/TR/SOAP-attachments"here</a> And then check the documentation of Soap API that you use, to see if it supports Attachments.
  3. MTOM[ Go to top ]

    You probably want to use MTOM (SOAP Message Transmission Optimization Mechanism) which allows you to attach arbitrary binary blobs to your message. See http://www.w3.org/TR/soap12-mtom/ MTOM is implemented by many vendors. See e.g. http://www.sun.com/smi/Press/sunflash/2006-05/sunflash.20060516.5.xml for a Microsoft/Java interoperable implementation. Gerald Beuchelt http://blog.beuchelt.com/