problem with wscompile: xsd:choice not recognized and NullPointerException

J

jmc

I am having trouble with wscompile (running jwsdp 1.5).

I have validated that I can create the client-side classes by generating
from the Google wsdl as a test. When I point at the wsdl I am really
interested in for my app, though, I get a number (13) of such warnings:

-----------------------------------------------------------------
warning: unsupported XML Schema feature: "xsd:choice" in component {http://Sandl
ot/XmlWebServices/}note_edit_response, mapping it to javax.xml.soap.SOAPElement
------------------------------------------------------------------

After these warnings, I get a NullPointerException (see stack trace at end
of this posting).

I'D BE VERY THANKFUL TO ANYBODY WHO COULD TELL ME HOW TO SOLVE THESE PROBLEMS
(unsupported xsd:choice and the NullPointerException).

BACKGROUND INFO:
I don't get any generated code. I can generate the client-side stubs
successfully with a much earlier version of the jwsdp from summer of 2002,
I *think* it is version 1.0.01. However, I am not happy with these generated
client-side classes and want to try the new jwsdp.

Also, I am not the only person seeing this NullPointerException. I found
a message from someone who ran into it with jwsdp 1.4, but did not post
a solution. I don't know anything about the wsdl the person was using.
Here is the posting I saw, in case it is of interest:
http://www.newsarch.com/archive/mailinglist/axis/devel/msg03728.html

Thanks in advance for any help you can afford.

Here is the stack trace I am getting:

java.lang.NullPointerException
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processSOAPOpe
rationDocumentLiteralStyle(WSDLModelerBase.java:3580)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processSOAPOpe
ration(WSDLModelerBase.java:909)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processPort(WS
DLModelerBase.java:763)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processService
(WSDLModelerBase.java:519)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.internalBuildM
odel(WSDLModelerBase.java:354)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.buildModel(WSD
LModelerBase.java:238)
at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:
88)
at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:63)
at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:714)

at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
at com.sun.xml.rpc.tools.wscompile.Main.main(Main.java:22)
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:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
error: java.lang.NullPointerException
C:\Sun\jwsdp-1.5\jaxrpc\bin>wscompile -gen -Xprintstacktrace enFromWsdl.xml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top