This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
Don't get me started about those stupid light bulbs.
 
subject: JAX-RPC Web Service with Attachments