This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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 ]
 
jQuery in Action, 2nd edition
 
subject: Type mapping trouble with JAX-WS and EJB3
 
Similar Threads
Neded Help in EJB3.0 timers
EJB 3.0 Entity Bean
Exception while deploying the bean
create multiple Checkboxes with data base values in jsp
refresh canvas, designer problem?