Cannot access the WSDL, I get a 404. But the wsdl2java stack trace clearly
shows the error,

[ERROR] There are no parts for fault message : {
http://schemas.xmlsoap.org/wsdl/
}XYZFault

Can you check the message element used for XYZFault. Looks like there is a
problem with that.

Thanks,
Keith.

On Tue, Oct 7, 2008 at 3:23 AM, Maik Hassel <[EMAIL PROTECTED]>wrote:

>
> Hello everyone,
>
>
> I have a given wsdl and need to generate a service for it. The WSDL passes
> several validators, but when invoking WSDL2java on it I get the exception
> below.
>
> 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<http://schemas.xmlsoap.org/wsdl/%7DXYZFau>
> 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<http://schemas.xmlsoap.org/wsdl/%7DXYZFault>
>       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]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Reply via email to