users@glassfish.java.net

Re: <class> is not found. Have you run APT to generate them?

From: <glassfish_at_javadesktop.org>
Date: Thu, 07 Jun 2007 10:12:35 PDT

Yes, by default JAXWS use wrapper style. this means given the operation

publich String echo(String arg0, String arg1);

JAXWS will expect a wrapper bean that corresponds to schema:

<echo>
  <arg0/>
  <arg1>
<echo>

You need to run apt or wsgen ant[1] or maven[2] to generate the wrapper classes if you prefer the wrapper style. Other option you have is to switch to BARE mode by putting this annotation on your endpoint impl:

@SOAPBinding(parameterStyle=ParameterStyle.BARE)


-vivek.
[1]https://jax-ws.dev.java.net/nonav/2.1.1/docs/wsimportant.html
[2]https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/
[Message sent by forum member 'vivekp' (vivekp)]

http://forums.java.net/jive/thread.jspa?messageID=221035