my dog learned polymorphism*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2921
Welcome to the JavaRanch!

Looked at SOAP attachments with JAX-RPC yet?

You may find other resources of interest on the Web Services FAQ.
I agree. Here's the link:
subject: sending binary files to web service
Similar Threads
Adding attachments to web service response
sending pdf or any attachment from a java webservice to java client using JAX-WS and SAAJ
rpc and soap attachments
How to implement attachements with SOAP apache
SOAP with attachments, 3 questions