[ 
https://issues.apache.org/jira/browse/AXIS2-4983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrey Chernyshev updated AXIS2-4983:
-------------------------------------

    Attachment: test.wsdl

Run wsdl2java with this wsdl

> parts not found for WSRF's ResourceUnknownFault  
> -------------------------------------------------
>
>                 Key: AXIS2-4983
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4983
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.5.4
>         Environment: Linux
>            Reporter: Andrey Chernyshev
>         Attachments: test.wsdl
>
>
> WSDL2Java does not seem to be correctly handling 
> wsrf-r:ResourceUnknownFaultType. 
> It's not picking up the part from this definition:
> (from http://docs.oasis-open.org/wsrf/rw-2.wsdl):
> <!-- ================= WS-Resource faults ========================= -->
>   <wsdl:message name="ResourceUnknownFault">
>      <part name="ResourceUnknownFault"
>            element="wsrf-r:ResourceUnknownFault" />
>   </wsdl:message> 
> I was trying to run it against attached wsdl and got the following:
> wsdl2java.sh  -uri test.wsdl
> ...
> [ERROR] There are no parts for fault message : 
> {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> [ERROR] There are no parts for fault message : 
> {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
>  There are no parts for fault message : 
> {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1231)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:777)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:537)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:488)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
>       at 
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>       at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.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>(CodeGenerationEngine.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 : 
> {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
>       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:396)
>       at 
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>       at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>       ... 2 more
> Caused by: 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
>  There are no parts for fault message : 
> {http://docs.oasis-open.org/wsrf/rw-2}ResourceUnknownFault
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameReference(WSDL11ToAxisServiceBuilder.java:1231)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBinding(WSDL11ToAxisServiceBuilder.java:777)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint(WSDL11ToAxisServiceBuilder.java:537)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:488)
>       at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
>       ... 4 more
> Is this a known limitation or bug in parsing code?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to