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 18:59:27 PDT

Hi Vivek,

Thanks very much for your help. I am still confused though.

> Yes, by default JAXWS use wrapper style. this means
> given the operation
>
> publich String echo(String arg0, String arg1);

I am using a document / literal style WSDL interface as my source and have never used an rpc style web service. Would it be possible to help me based on WSDL-first doc/literal example? I do not believe JAXWS RI comes with such an example. IMHO, This is unfortunate as many people use WSDL-first doc/literal for implementing web services today.

>
> 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:

Can you please point me to where WRAPPER vs. BARE mode is described.
At this point I don't even know what they mean and how they are different and which one fits my needs best.

I have found no document that tells me what I need to do for a WSDL-first doc/literal use case. wsgen according to docs is only relevant if I am starting with an impl Java class for my service (I am starting from WSDL). Am I wrong here? Also, I am not quite getting what apt does exactly.

I know your time is tight so I would be happy if you can just point me in the right direction based upon WSDL-first, doc/literal use case. Thanks very much.

>
> @SOAPBinding(parameterStyle=ParameterStyle.BARE)
>
>
> -vivek.
> [1]https://jax-ws.dev.java.net/nonav/2.1.1/docs/wsimpo
> rtant.html
> [2]https://jax-ws-commons.dev.java.net/jaxws-maven-plu
> gin/
[Message sent by forum member 'najmi' (najmi)]

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