This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to invoke webservice with an attachmnet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to invoke webservice with an attachmnet" Watch "How to invoke webservice with an attachmnet" New topic

How to invoke webservice with an attachmnet

Abhishek Sharma
Ranch Hand

Joined: Jan 09, 2006
Posts: 68
Dear Ranchers,

I am trying to create a web service that have invoke existing web service and apart from that it is also passing a file as an attachment.
Please suggest some options how to implement this.

Thanks in advance,
Peer Reynders

Joined: Aug 19, 2005
Posts: 2906
What web service API and web service toolkit are you using?
More importantly - what is the existing web service using to handle the attachment (there a a few options).

In general:
Handling attachments in SOAP
SOAP attachments with JAX-RPC
Process attachments using JAX-RPC handlers
Send binary data without using attachments
Fear of Attachments (pdf)
Web Services, Opaque Data, and the Attachments Problem

Using Web Service to Send Image File (JAX-WS/MTOM)
JAX-WS MTOM and Swaref

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to invoke webservice with an attachmnet
Similar Threads
invoking service()
Converting a java file to a web service
How to invoke a webservice running on https
How to invoke WebService
webservices swings