- This topic has 3 replies, 3 voices, and was last updated 17 years, 8 months ago by tomeksz.
-
AuthorPosts
-
Ronald NikelMemberHi,
I’m trying to generate a webservice from a given WSDL facing the following issue.
!ENTRY com.genuitec.eclipse.ws.xfire 4 0 2007-03-06 14:26:16.015
!MESSAGE Error generating services
!STACK 0
java.lang.NullPointerException
at org.codehaus.xfire.wsdl11.parser.SoapBindingAnnotator.visit(SoapBindingAnnotator.java:174)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.visit(WSDLServiceConfigurator.java:240)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.configure(WSDLServiceConfigurator.java:198)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java:218)
at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:130)
at com.genuitec.eclipse.ws.xfire.generator.WSGenJob.run(WSGenJob.java:209)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
The myeclipse-version is 5.5M1.
We are useing literal/document binding style and XSD-Includes.The wsdl/xsd are quite long, so I only will post them on request. Here are the first lines
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:pwns="http://panel.autobrennero.it/iface/" xmlns:cns="http://common.autobrennero.it/data/" xmlns:pns="http://panel.autobrennero.it/data/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Panel" targetNamespace="http://panel.autobrennero.it/iface/"> <wsdl:types> <xsd:schema targetNamespace="http://panel.autobrennero.it/iface/"> <xsd:import namespace="http://common.autobrennero.it/data/" schemaLocation="Common.xsd" /> <xsd:import namespace="http://panel.autobrennero.it/data/" schemaLocation="Panel.xsd" /> </xsd:schema> </wsdl:types>
Thx for help
JayBee
RussMemberI guess you could turn on your WSDL validation capability to ensure you have a valid WSDL.
Next, I would start by using one segment in each of the specific areas within the WSDL (types, imports, message, port types, binding and service) Once you get one complete part (one type, import, message, port type/operation, binding) working, keep building on it until you discover your issue…..
Ronald NikelMemberHello russry,
I followed your proposed proceeding and found the problem. We have specified a port operation that has an input and an output message but the corresponding binding operation only has an input. This passes the WSDL validation but leads to the NullPointerException mentioned above.
It would be perferct if this could lead to a bugfix in xfire’s wsgen.
Regards
JayBee
tomekszMemberCan you create issue in XFire’s jira with this wsdl attached ?
-
AuthorPosts