GeeCON Prague 2014*
The moose likes Web Services and the fly likes Type mapping trouble with JAX-WS and EJB3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Type mapping trouble with JAX-WS and EJB3" Watch "Type mapping trouble with JAX-WS and EJB3" New topic
Author

Type mapping trouble with JAX-WS and EJB3

Johannes Koch
Greenhorn

Joined: Dec 25, 2005
Posts: 11
I'm trying to write my first own webservice using EJBs (V3) in a JBoss as server. Building and deploying the webservice bean works fine, but when I try to access a web method with no parameters and no return type like this:

it throws this exception:

where the last line refers to "Service service = factory.createService(url, qname);"

My questions are:
1. I thought using JAX-WS and Annotations would take care of all the webservice-configuration-XML-SOAP stuff for me. Do I still need to manually specify a type mapping? How? Where?
2. The web method I try to access has neither parameters nor a return value. How can there be any types to map??

If you could make me friends with webservices again, they and I would really appreciate it.


From here: Server code.


[ February 20, 2008: Message edited by: Johannes Koch ]
[ February 20, 2008: Message edited by: Johannes Koch ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Type mapping trouble with JAX-WS and EJB3