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.
- Posted by: Gopalakrishna Narayana Moni
- Posted on: June 05 2006 04:58 EDT
You would have to use SOAP with Attachments. More info about SOAP Attachments can be found And then check the documentation of Soap API that you use, to see if it supports Attachments.
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/