Maik Hassel wrote:
Hello everyone,
I have a given wsdl and need to generate a service for it. The WSDL
passes several validators,
What are the validators you used?
but when invoking WSDL2java on it I get the exception below.
Obviously, WSDL2Java validation checks failed. The error is clearly
highlighted in the exception. Can you try fixing that?
Samisa....
The WSDL can be downloaded here:
http://projects.simplyefficient.com:8085/cedric/service.wsdl
Grateful for any help...
~~~~~ snip ~~~~~~
C:\>axis2-1.4.1\bin\wsdl2java.bat -uri file:///C:/service.wsdl -p
com.maik.test -d adb -s -wv 1.1 -ss -sd -ssi
Using AXIS2_HOME: C:\Documents and Settings\Maik\My
Documents\Development\axis2-1.4.1
Using JAVA_HOME: C:\Sun\SDK\jdk
Retrieving document at 'file:///C:/service.wsdl'.
[INFO] A SOAP port was not found - picking a random port!
[ERROR] There are no parts for fault message :
{http://schemas.xmlsoap.org/wsdl/
}XYZFault
[ERROR] There are no parts for fault message :
{http://schemas.xmlsoap.org/wsdl/
}XYZFault
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
There are no parts for fault message :
{http://schemas.xmlsoap.org/wsdl/}XYZFau
lt
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:1230)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
ng(WSDL11ToAxisServiceBuilder.java:776)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
int(WSDL11ToAxisServiceBuilder.java:538)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
ints(WSDL11ToAxisServiceBuilder.java:489)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:363)
at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
llServices(WSDL11ToAllAxisServicesBuilder.java:107)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:153)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: There are no parts for fault
message : {h
ttp://schemas.xmlsoap.org/wsdl/}XYZFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:397)
at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
llServices(WSDL11ToAllAxisServicesBuilder.java:107)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
... 2 more
Caused by:
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessin
gException: There are no parts for fault message :
{http://schemas.xmlsoap.org/w
sdl/}XYZFault
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:1230)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
ng(WSDL11ToAxisServiceBuilder.java:776)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
int(WSDL11ToAxisServiceBuilder.java:538)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
ints(WSDL11ToAxisServiceBuilder.java:489)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:363)
... 4 more
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Samisa Abeysinghe
http://people.apache.org/~samisa/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]