aspose file tools*
The moose likes Web Services and the fly likes Web Service client with SOAP attachment 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 "Web Service client with SOAP attachment" Watch "Web Service client with SOAP attachment" New topic
Author

Web Service client with SOAP attachment

dipayan chatterjee
Ranch Hand

Joined: Oct 03, 2007
Posts: 47
Hi,
Can anyone please post any code on Web service(with SOAP attachment) client which has the attachment type as Octet Stream(MIME Type Mapping as application/octet-stream).


SCJP1.4 , gearing up for SCWCD 5
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
You could look at Use the SAAJ APIs to create and manipulate a SOAP message, and then use application/octet-stream as the mime type (instead of ). It should work fine. Please try it out.
dipayan chatterjee
Ranch Hand

Joined: Oct 03, 2007
Posts: 47
Hi Srini

Thanks for replying and posting the link to the article . I am working on a project the involves developing a web service using apache axis . gladly i have been able to develop a small web service client and server(I am new to web services and have no previous experience about the same) I have also been able to send parameters to remote method as SOAP attachments but am unable to extract the SOAP response sent by the server on client side

Can you provide some code illustrating how to extract SOAP attachment using apache AXIS or a link to some sort of online tutorial or resource to do the same


Thanks in advance
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hi Dipayan. Please see this tutorial for Axis2.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Service client with SOAP attachment
 
Similar Threads
download attachment
Files in Web Services
Web Services Performance Problem
Sending different types of data in HTTP response
HttpServletResponse.getOutputStream() - streaming or not streaming?