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 Saaj in JAXWS(jdk1.6) 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 "Saaj in JAXWS(jdk1.6)" Watch "Saaj in JAXWS(jdk1.6)" New topic
Author

Saaj in JAXWS(jdk1.6)

DTR Prasad
Greenhorn

Joined: Aug 07, 2008
Posts: 3
Can any one tell how attachments can be sent through JAXWS
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Have you looked at "Java Web Services in a Nutshell" Sample: Chapter 3 SAAJ (PDF) starting at "SOAP Messages and MIME Headers" (p.128) yet?

SAAJ is independent of JAX-WS. JAX-WS uses parts of SAAJ.

SAAJ handles attachments through the older "SOAP with Attachments" (SwA) standard.
In JAX-WS attachments are handled through the more recent "SOAP Message Transmission Optimization Mechanism (MTOM)" standard. JAX-WS: Binary Attachments (MTOM)
[ December 11, 2008: Message edited by: Peer Reynders ]

"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: Saaj in JAXWS(jdk1.6)
 
Similar Threads
writing jaxws 2.0 client
Web Method Faults for JAX-WS
how can i create java classes from given wsdl
Web services security � guidance
Remote method/argumet data structure