File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes sending binary files to web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "sending binary files to web service" Watch "sending binary files to web service" New topic

sending binary files to web service

bodlapati trivedi

Joined: Dec 07, 2006
Posts: 1
I want to send binary files to web service as soap with attachments. Sending soap with attachments is ok, but how do we define the signature of web service? and how to access the attachment in the web service. My requirement was.. i need to send some data along with binary file(as attachment) to my web service: means my web service signature should look like:
public void getAttachment(String data1, Attachment binaryFile) {

Some thing like this i want todo.. but i was unable to find single example on this. i was trying this for long time, couldnt be able to find solution. Pls it would be great help if someone helps me in this.

Thanks in advance.
Peer Reynders

Joined: Aug 19, 2005
Posts: 2933
Welcome to the JavaRanch!

Looked at SOAP attachments with JAX-RPC yet?

You may find other resources of interest on the Web Services FAQ.
wood burning stoves
subject: sending binary files to web service
It's not a secret anymore!