File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-RPC Web Service with Attachments" Watch "JAX-RPC Web Service with Attachments" New topic

JAX-RPC Web Service with Attachments

E Nham

Joined: Feb 27, 2008
Posts: 2

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.
I agree. Here's the link:
subject: JAX-RPC Web Service with Attachments
It's not a secret anymore!