This is a one-line fix in the cxf code to fix this(another NPE guard).
That said, the Sun RI (Metro) cannot generate code with it either.
It spits out:
[ERROR] abstract operation "submitRawBidSet" binding, part
"rawBidSet_attachment" has multiple binding.
line 50 of file:/Users/dkulp/Downloads/1f5ef31f6a0f0/
submitRawBidSet.wsdl
If you change line 87 too look like:
<soap:body use="literal" parts="" namespace="http://www.caiso.com/soa/2007-08-16/submitRawBidSet
"/>
It should work fine for both and is probably more correct.
Dan
On May 21, 2008, at 6:10 PM, Liao, Yanping (IT) wrote:
Hello,
We are trying to run wsdl2java for the submitRawBidSet.wsdl file
contained in http://www.caiso.com/1f5e/1f5ef31f6a0f0.zip, however we
kept run into errors. Please help check out to see if I am doing
anything wrong..
Thanks,
Yanping
wsdl2java -client -verbose submitRawBidSet.wsdl
*********************************************************************
Welcome to NYD, a PRODUCTION Autosys instance
Please see http://autosys for usage POLICY and documentation
This Autosys instance is strictly reserved for FID jobs
*********************************************************************
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -client -verbose submitRawBidSet.wsdl
wsdl2java - Apache CXF (incubator) 2.1-incubator-SNAPSHOT
WSDLToJava Error : java.lang.NullPointerException
org.apache.cxf.tools.common.ToolException:
java.lang.NullPointerException
at
org
.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContai
ner.java:237)
at
org
.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:
83)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
Caused by: java.lang.NullPointerException
at
org
.apache.cxf.binding.soap.SoapBindingFactory.initializeMessage(SoapBin
dingFactory.java:583)
at
org
.apache.cxf.binding.soap.SoapBindingFactory.initializeBindingOperatio
n(SoapBindingFactory.java:507)
at
org
.apache.cxf.binding.soap.SoapBindingFactory.createBindingInfo(SoapBin
dingFactory.java:482)
at
org
.apache.cxf.wsdl11.WSDLServiceBuilder.buildBinding(WSDLServiceBuilder
.java:364)
at
org
.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilde
r.java:253)
at
org
.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilde
r.java:147)
at
org
.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilde
r.java:136)
at
org
.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContai
ner.java:140)
at
org
.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContai
ner.java:229)
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender.
Sender does not intend to waive confidentiality or privilege. Use of
this email is prohibited when received in error.
---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog