This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes JAX-RPC Web Service with Attachments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-RPC Web Service with Attachments" Watch "JAX-RPC Web Service with Attachments" New topic
Author

JAX-RPC Web Service with Attachments

E Nham
Greenhorn

Joined: Feb 27, 2008
Posts: 2
Hi,

I just want to do a sanity check. I can use an EJB 2.1 session bean as an endpoint for a web service method that takes an attachment, can I not? I want my method to take a parameter DTO that has an attribute javax.activation.DataHandler. I am compiling the wsdl using JAX-RPC but it is not generating it correctly to take a Mime attachment. Instead I am getting:



What am I doing wrong? I want fileData to be a mime attachment...

Thanks for your help.
 
jQuery in Action, 2nd edition
 
subject: JAX-RPC Web Service with Attachments