You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by yulinxp <yu...@gmail.com> on 2007/12/26 22:35:46 UTC

java2wsdl question

Here is the SEI. I use cxf 2.0.3 when I run java2wsdl, why it always asks for
RequestWrapper & ResponseWrapper. Do I need to provide RequestWrapper and
ResponseWrapper?


package demo.spring;

import javax.jws.WebService;

@WebService
public interface HelloWorld {

	public void sayHi(
        java.lang.String text
    );
}


bin>java2wsdl demo.spring.HelloWorld
Dec 26, 2007 3:30:23 PM
org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.Wrapper
getWrapperClass
WARNING: Can not load wrapper class demo.spring.jaxws.SayHi, please check
the @RequestWrapper or @ResponseWrapper and also check the class is in your
classpath
Dec 26, 2007 3:30:23 PM
org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.Wrapper
getWrapperClass
WARNING: Can not load wrapper class demo.spring.jaxws.SayHiResponse, please
check the @RequestWrapper or @ResponseWrapper and also check the class is in
your classpath
-- 
View this message in context: http://www.nabble.com/java2wsdl-question-tp14506727p14506727.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: java2wsdl question

Posted by Jim Ma <em...@iona.com>.
It is warning message not error . You do not need to provide them .  
Java2wsdl can generate wsdl  and the wrapper bean
for this class.

Regards
Jim

yulinxp wrote:
> Here is the SEI. I use cxf 2.0.3 when I run java2wsdl, why it always asks for
> RequestWrapper & ResponseWrapper. Do I need to provide RequestWrapper and
> ResponseWrapper?
>
>
> package demo.spring;
>
> import javax.jws.WebService;
>
> @WebService
> public interface HelloWorld {
>
> 	public void sayHi(
>         java.lang.String text
>     );
> }
>
>
> bin>java2wsdl demo.spring.HelloWorld
> Dec 26, 2007 3:30:23 PM
> org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.Wrapper
> getWrapperClass
> WARNING: Can not load wrapper class demo.spring.jaxws.SayHi, please check
> the @RequestWrapper or @ResponseWrapper and also check the class is in your
> classpath
> Dec 26, 2007 3:30:23 PM
> org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.Wrapper
> getWrapperClass
> WARNING: Can not load wrapper class demo.spring.jaxws.SayHiResponse, please
> check the @RequestWrapper or @ResponseWrapper and also check the class is in
> your classpath
>