ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | celtix List | May 2006 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [celtix] how to : java2wsdl


thanks James, i 'm going to study this.

Denis

ObjectWeb Consortium

Le Vendredi 12 Mai 2006 09:46, James Mao a écrit :
> Hi Dan,
>
> To make his demo work, that's a solution, because in JAX-WS, the default
> SOAP-binding is Doc-lit, not RPC-lit
>
> If he wants to RPC/Lit style, then he has to add the annotation:
> @SOAPBinding(use = SOAPBinding.Use.LITERAL, style = SOAPBinding.Style.RPC)
> In this way, you don't need to add any wrapper classes.
>
> That's how java2wsdl works.
>
> Cheers,
> James.
>
> Daniel Kulp wrote:
> >Jim,
> >
> >Why should he have to create those two classes?   Especially if he wants
> >an RCP/Lit endpoint that would never use wrapper classes.
> >
> >This should definitely be logged as a bug and be fixed.
> >
> >Dan
> >
> >On Friday 12 May 2006 00:05, James Mao wrote:
> >>Hi Denis,
> >>
> >>Thanks for the information.
> >>
> >> From the error message, it tells me that you didn't have the
> >>
> >>demo.helloworld.types.Greet Class in your classpath.
> >>
> >>You should add this type class (even it's empty), and try again,
> >>
> >>Now you should have another error:
> >>Error : Can Not Load class demo.helloworld.types.GreetResponse.
> >>
> >>Again you should add another type class (even it's empty), and try
> >>again, Now you should pass the generation, and the HelloService.wsdl
> >>and schema1.xsd should be generated.
> >>
> >>The reason why you should add two type classes is that the java2wsdl
> >>will call JAXB which will help you to generate the schema for you.
> >>
> >>Hope this helps
> >>
> >>P.S
> >>the quickest way to learn the java2wsdl tool is to use the wsdl2java to
> >>generate all the artifects, and use the java2wsdl against the generated
> >>SEI class.
> >>
> >>Cheers,
> >>James.
> >>
> >>Denis HUTIN wrote:
> >>>Hi james.
> >>>
> >>>Thanks for you answer. In fact with this java interface :
> >>>
> >>>package demo.helloworld;
> >>>
> >>>import javax.jws.WebMethod;
> >>>import javax.jws.WebService;
> >>>
> >>>@WebService
> >>>public interface HelloService {
> >>>
> >>>       @WebMethod
> >>>       public String greet();
> >>>
> >>>}
> >>>
> >>>I ve got an error message when i use java2wsdl:
> >>>
> >>>Error : Can Not Load class demo.helloworld.types.Greet
> >>>
> >>>
> >>>thanks for helping
> >>>
> >>>
> >>>DenIs
> >>>
> >>>ObjectWeb Consortium
> >>>
> >>>
> >>>
> >>>----------------------------------------------------------------------
> >>>--
> >>>
> >>>
> >>>--
> >>>You receive this message as a subscriber of the celtix@xxxxxxxxxxxxx
> >>>mailing list. To unsubscribe: mailto:celtix-unsubscribe@xxxxxxxxxxxxx
> >>>For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
> >>>ObjectWeb mailing lists service home page:
> >>>http://www.objectweb.org/wws



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.