users@jax-ws.java.net

Re: Problems with wsimport / wsgen

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Thu, 29 Mar 2007 08:19:42 -0700

Angel Todorov wrote:
> Hi,
>
> I have tried using wsimport on several WSDL files, and i encounter
> this problem :
>
> D:\Develop\jaxws\jaxws-ri\bin>wsimport.bat -extension AddNumbers.wsdl
> parsing WSDL...
>
>
> [WARNING] SOAP port "AddNumbersPort": uses a non-standard SOAP 1.2
> binding.
> line 65 of file:/D:/Develop/jaxws/jaxws-ri/bin/AddNumbers.wsdl
>
> generating code...
>
> This is from the JAX-WS 2.1 samples.
you need to do wsimport -extension for SOAP 1.2. From the spec's point
of view, WSDL SOAP 1.2 is not a standard. But RI provides a way to do
this using -extension.

Jitu
>
> Afterwards, when i try to invoke wsgen , i get the following errors:
>
> D:\Develop\jaxws\jaxws-ri\bin>wsgen -cp . org.example.duke.AddNumbers
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> com.sun.tools.ws.processor.modeler.ModelerException: [failed to
> localize] A web
> service endpoint could not be found()
> at
> com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(We
> bServiceAP.java:211)
> at
> com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel
> (WebServiceAP.java:318)
> at
> com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(We
> bServiceAP.java:252)
> at
> com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.
> process(AnnotationProcessors.java:60)
> at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
> at
> com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
> at com.sun.tools.apt.main.Main.compile(Main.java:1075)
> at com.sun.tools.apt.main.Main.compile(Main.java:938)
> at com.sun.tools.apt.Main.processing(Main.java:95)
> at com.sun.tools.apt.Main.process(Main.java:85)
> at com.sun.tools.apt.Main.process(Main.java:67)
> at
> com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:175)
> at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:102)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.sun.tools.ws.Invoker.invoke(Invoker.java:81)
> at com.sun.tools.ws.WsGen.main(WsGen.java:38)
> error: compilation failed, errors should have been reported
>
> ==================
> same thing happens if i try using the "AddNumbersService" class with
> wsgen.bat
>
> These problems also occur with third-party WSDLs which are not in the
> JAX-WS 2.1 samples.
>
> Regards,
> Angel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>