File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

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,
Abhishek
Peer Reynders
Bartender

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to invoke webservice with an attachmnet
 
Similar Threads
webservices swings
How to invoke a webservice running on https
Converting a java file to a web service
invoking service()
How to invoke WebService