You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Hans-Ulrich Klein (JIRA)" <ji...@apache.org> on 2007/05/02 10:40:16 UTC

[jira] Created: (AXIS2-2627) wsdl2java throws exception "WSDL writing failed!" while generating skeletons from wsdl 2.0 file

wsdl2java throws exception "WSDL writing failed!" while generating skeletons from wsdl 2.0 file
-----------------------------------------------------------------------------------------------

                 Key: AXIS2-2627
                 URL: https://issues.apache.org/jira/browse/AXIS2-2627
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.2
         Environment: Sun Java SE Runtime Environment (build 1.6.0-b105)
            Reporter: Hans-Ulrich Klein


/opt/axis2-1.2/bin/wsdl2java.sh -uri hotel.ws dl -d xmlbeans -ss -o . -wv 2

leads to the error message:
Using AXIS2_HOME:   /opt/axis2-1.2
Using JAVA_HOME:       /usr/lib/jvm/java-6-sun

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1281)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:238)
        ... 2 more
Caused by: java.lang.RuntimeException: WSDL writing failed!
        at org.apache.axis2.wsdl.codegen.writer.WSDL20Writer.writeWSDL(WSDL20Writer.java:46)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:1337)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1257)
        ... 3 more
Caused by: org.apache.axis2.AxisFault: org.apache.woden.wsdl20.extensions.soap.SOAPFaultCode cannot be cast to java.lang.String
        at org.apache.axis2.description.AxisService.getWSDL2(AxisService.java:1056)
        at org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1039)
        at org.apache.axis2.wsdl.codegen.writer.WSDL20Writer.writeWSDL(WSDL20Writer.java:41)
        ... 5 more
Caused by: java.lang.ClassCastException: org.apache.woden.wsdl20.extensions.soap.SOAPFaultCode cannot be cast to java.lang.String
        at org.apache.axis2.description.AxisBindingMessage.toWSDL20(AxisBindingMessage.java:164)
        at org.apache.axis2.description.AxisBinding.toWSDL20(AxisBinding.java:195)
        at org.apache.axis2.description.AxisService2WSDL2.toWSDL20(AxisService2WSDL2.java:168)
        at org.apache.axis2.description.AxisService.getWSDL2(AxisService.java:1051)
        ... 7 more

The wsdl-file ist the example from the wsdl-primer of the w3c:
http://www.w3.org/TR/2007/WD-wsdl20-primer-20070326/#basics-greath-scenario

The error seems to be associated with the fault-element in the soap-binding-section. Here is the complete wsdl-file:

<?xml version="1.0" encoding="utf-8" ?> 
<description 
    xmlns="http://www.w3.org/ns/wsdl"
    targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
    xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
    xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
    xmlns:wsoap= "http://www.w3.org/ns/wsdl/soap"
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    xmlns:wsdlx= "http://www.w3.org/ns/wsdl-extensions">

  <documentation>
    This document describes the GreatH Web service.  Additional 
    application-level requirements for use of this service -- 
    beyond what WSDL 2.0 is able to describe -- are available 
    at http://greath.example.com/2004/reservation-documentation.html
  </documentation>

  <types>
    <xs:schema 
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        targetNamespace="http://greath.example.com/2004/schemas/resSvc"
        xmlns="http://greath.example.com/2004/schemas/resSvc">

      <xs:element name="checkAvailability" type="tCheckAvailability"/>    
      <xs:complexType name="tCheckAvailability">     
        <xs:sequence>      
          <xs:element  name="checkInDate" type="xs:date"/>      
          <xs:element  name="checkOutDate" type="xs:date"/>      
          <xs:element  name="roomType" type="xs:string"/>      
        </xs:sequence>     
      </xs:complexType>   
            
      <xs:element name="checkAvailabilityResponse" type="xs:double"/>    
    
      <xs:element name="invalidDataError" type="xs:string"/>    

    </xs:schema>    
  </types>
  
  <interface  name = "reservationInterface" >

    <fault name = "invalidDataFault"
            element = "ghns:invalidDataError"/> 
   
    <operation name="opCheckAvailability" 
            pattern="http://www.w3.org/ns/wsdl/in-out" 
            style="http://www.w3.org/ns/wsdl/style/iri"
            wsdlx:safe = "true">
        <input messageLabel="In" 
              element="ghns:checkAvailability" />
        <output messageLabel="Out" 
              element="ghns:checkAvailabilityResponse" />
        <outfault ref="tns:invalidDataFault" messageLabel="Out"/>
    </operation>

  </interface>

  <binding name="reservationSOAPBinding" 
          interface="tns:reservationInterface"
          type="http://www.w3.org/ns/wsdl/soap"
          wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/">
 
    <fault ref="tns:invalidDataFault" 
      wsoap:code="soap:Sender"/>

    <operation ref="tns:opCheckAvailability" 
      wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"/>

  </binding>

  <service name="reservationService" 
       interface="tns:reservationInterface">

     <endpoint name="reservationEndpoint" 
               binding="tns:reservationSOAPBinding"
               address ="http://greath.example.com/2004/reservation"/>
        
  </service>

</description>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2627) wsdl2java throws exception "WSDL writing failed!" while generating skeletons from wsdl 2.0 file

Posted by "Keith Godwin Chapman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Keith Godwin Chapman resolved AXIS2-2627.
-----------------------------------------

    Resolution: Fixed

Fixed in rivision 536430.

> wsdl2java throws exception "WSDL writing failed!" while generating skeletons from wsdl 2.0 file
> -----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2627
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2627
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2
>         Environment: Sun Java SE Runtime Environment (build 1.6.0-b105)
>            Reporter: Hans-Ulrich Klein
>         Assigned To: Amila Chinthaka Suriarachchi
>
> /opt/axis2-1.2/bin/wsdl2java.sh -uri hotel.ws dl -d xmlbeans -ss -o . -wv 2
> leads to the error message:
> Using AXIS2_HOME:   /opt/axis2-1.2
> Using JAVA_HOME:       /usr/lib/jvm/java-6-sun
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1281)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:238)
>         ... 2 more
> Caused by: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.writer.WSDL20Writer.writeWSDL(WSDL20Writer.java:46)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:1337)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1257)
>         ... 3 more
> Caused by: org.apache.axis2.AxisFault: org.apache.woden.wsdl20.extensions.soap.SOAPFaultCode cannot be cast to java.lang.String
>         at org.apache.axis2.description.AxisService.getWSDL2(AxisService.java:1056)
>         at org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1039)
>         at org.apache.axis2.wsdl.codegen.writer.WSDL20Writer.writeWSDL(WSDL20Writer.java:41)
>         ... 5 more
> Caused by: java.lang.ClassCastException: org.apache.woden.wsdl20.extensions.soap.SOAPFaultCode cannot be cast to java.lang.String
>         at org.apache.axis2.description.AxisBindingMessage.toWSDL20(AxisBindingMessage.java:164)
>         at org.apache.axis2.description.AxisBinding.toWSDL20(AxisBinding.java:195)
>         at org.apache.axis2.description.AxisService2WSDL2.toWSDL20(AxisService2WSDL2.java:168)
>         at org.apache.axis2.description.AxisService.getWSDL2(AxisService.java:1051)
>         ... 7 more
> The wsdl-file ist the example from the wsdl-primer of the w3c:
> http://www.w3.org/TR/2007/WD-wsdl20-primer-20070326/#basics-greath-scenario
> The error seems to be associated with the fault-element in the soap-binding-section. Here is the complete wsdl-file:
> <?xml version="1.0" encoding="utf-8" ?> 
> <description 
>     xmlns="http://www.w3.org/ns/wsdl"
>     targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
>     xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
>     xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
>     xmlns:wsoap= "http://www.w3.org/ns/wsdl/soap"
>     xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
>     xmlns:wsdlx= "http://www.w3.org/ns/wsdl-extensions">
>   <documentation>
>     This document describes the GreatH Web service.  Additional 
>     application-level requirements for use of this service -- 
>     beyond what WSDL 2.0 is able to describe -- are available 
>     at http://greath.example.com/2004/reservation-documentation.html
>   </documentation>
>   <types>
>     <xs:schema 
>         xmlns:xs="http://www.w3.org/2001/XMLSchema"
>         targetNamespace="http://greath.example.com/2004/schemas/resSvc"
>         xmlns="http://greath.example.com/2004/schemas/resSvc">
>       <xs:element name="checkAvailability" type="tCheckAvailability"/>    
>       <xs:complexType name="tCheckAvailability">     
>         <xs:sequence>      
>           <xs:element  name="checkInDate" type="xs:date"/>      
>           <xs:element  name="checkOutDate" type="xs:date"/>      
>           <xs:element  name="roomType" type="xs:string"/>      
>         </xs:sequence>     
>       </xs:complexType>   
>             
>       <xs:element name="checkAvailabilityResponse" type="xs:double"/>    
>     
>       <xs:element name="invalidDataError" type="xs:string"/>    
>     </xs:schema>    
>   </types>
>   
>   <interface  name = "reservationInterface" >
>     <fault name = "invalidDataFault"
>             element = "ghns:invalidDataError"/> 
>    
>     <operation name="opCheckAvailability" 
>             pattern="http://www.w3.org/ns/wsdl/in-out" 
>             style="http://www.w3.org/ns/wsdl/style/iri"
>             wsdlx:safe = "true">
>         <input messageLabel="In" 
>               element="ghns:checkAvailability" />
>         <output messageLabel="Out" 
>               element="ghns:checkAvailabilityResponse" />
>         <outfault ref="tns:invalidDataFault" messageLabel="Out"/>
>     </operation>
>   </interface>
>   <binding name="reservationSOAPBinding" 
>           interface="tns:reservationInterface"
>           type="http://www.w3.org/ns/wsdl/soap"
>           wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/">
>  
>     <fault ref="tns:invalidDataFault" 
>       wsoap:code="soap:Sender"/>
>     <operation ref="tns:opCheckAvailability" 
>       wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"/>
>   </binding>
>   <service name="reservationService" 
>        interface="tns:reservationInterface">
>      <endpoint name="reservationEndpoint" 
>                binding="tns:reservationSOAPBinding"
>                address ="http://greath.example.com/2004/reservation"/>
>         
>   </service>
> </description>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2627) wsdl2java throws exception "WSDL writing failed!" while generating skeletons from wsdl 2.0 file

Posted by "Swati Sinha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494048 ] 

Swati Sinha commented on AXIS2-2627:
------------------------------------

Line 150 in AxisBindingMessage.java throws this exception. The property is of type org.apache.woden.wsdl20.extensions.soap.SoapFaultCode which is being cast to String. The property is being set at line 491 of org.apache.axis2.description. WSDL20ToAxisServiceBuilder 

Note that the method soapBindingFaultExtensions.getSoapFaultCode()at line 491 returns org.apache.woden.wsdl20.extensions.soap.SoapFaultCode


> wsdl2java throws exception "WSDL writing failed!" while generating skeletons from wsdl 2.0 file
> -----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2627
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2627
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2
>         Environment: Sun Java SE Runtime Environment (build 1.6.0-b105)
>            Reporter: Hans-Ulrich Klein
>         Assigned To: Amila Chinthaka Suriarachchi
>
> /opt/axis2-1.2/bin/wsdl2java.sh -uri hotel.ws dl -d xmlbeans -ss -o . -wv 2
> leads to the error message:
> Using AXIS2_HOME:   /opt/axis2-1.2
> Using JAVA_HOME:       /usr/lib/jvm/java-6-sun
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1281)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:238)
>         ... 2 more
> Caused by: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.writer.WSDL20Writer.writeWSDL(WSDL20Writer.java:46)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:1337)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1257)
>         ... 3 more
> Caused by: org.apache.axis2.AxisFault: org.apache.woden.wsdl20.extensions.soap.SOAPFaultCode cannot be cast to java.lang.String
>         at org.apache.axis2.description.AxisService.getWSDL2(AxisService.java:1056)
>         at org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1039)
>         at org.apache.axis2.wsdl.codegen.writer.WSDL20Writer.writeWSDL(WSDL20Writer.java:41)
>         ... 5 more
> Caused by: java.lang.ClassCastException: org.apache.woden.wsdl20.extensions.soap.SOAPFaultCode cannot be cast to java.lang.String
>         at org.apache.axis2.description.AxisBindingMessage.toWSDL20(AxisBindingMessage.java:164)
>         at org.apache.axis2.description.AxisBinding.toWSDL20(AxisBinding.java:195)
>         at org.apache.axis2.description.AxisService2WSDL2.toWSDL20(AxisService2WSDL2.java:168)
>         at org.apache.axis2.description.AxisService.getWSDL2(AxisService.java:1051)
>         ... 7 more
> The wsdl-file ist the example from the wsdl-primer of the w3c:
> http://www.w3.org/TR/2007/WD-wsdl20-primer-20070326/#basics-greath-scenario
> The error seems to be associated with the fault-element in the soap-binding-section. Here is the complete wsdl-file:
> <?xml version="1.0" encoding="utf-8" ?> 
> <description 
>     xmlns="http://www.w3.org/ns/wsdl"
>     targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
>     xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
>     xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
>     xmlns:wsoap= "http://www.w3.org/ns/wsdl/soap"
>     xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
>     xmlns:wsdlx= "http://www.w3.org/ns/wsdl-extensions">
>   <documentation>
>     This document describes the GreatH Web service.  Additional 
>     application-level requirements for use of this service -- 
>     beyond what WSDL 2.0 is able to describe -- are available 
>     at http://greath.example.com/2004/reservation-documentation.html
>   </documentation>
>   <types>
>     <xs:schema 
>         xmlns:xs="http://www.w3.org/2001/XMLSchema"
>         targetNamespace="http://greath.example.com/2004/schemas/resSvc"
>         xmlns="http://greath.example.com/2004/schemas/resSvc">
>       <xs:element name="checkAvailability" type="tCheckAvailability"/>    
>       <xs:complexType name="tCheckAvailability">     
>         <xs:sequence>      
>           <xs:element  name="checkInDate" type="xs:date"/>      
>           <xs:element  name="checkOutDate" type="xs:date"/>      
>           <xs:element  name="roomType" type="xs:string"/>      
>         </xs:sequence>     
>       </xs:complexType>   
>             
>       <xs:element name="checkAvailabilityResponse" type="xs:double"/>    
>     
>       <xs:element name="invalidDataError" type="xs:string"/>    
>     </xs:schema>    
>   </types>
>   
>   <interface  name = "reservationInterface" >
>     <fault name = "invalidDataFault"
>             element = "ghns:invalidDataError"/> 
>    
>     <operation name="opCheckAvailability" 
>             pattern="http://www.w3.org/ns/wsdl/in-out" 
>             style="http://www.w3.org/ns/wsdl/style/iri"
>             wsdlx:safe = "true">
>         <input messageLabel="In" 
>               element="ghns:checkAvailability" />
>         <output messageLabel="Out" 
>               element="ghns:checkAvailabilityResponse" />
>         <outfault ref="tns:invalidDataFault" messageLabel="Out"/>
>     </operation>
>   </interface>
>   <binding name="reservationSOAPBinding" 
>           interface="tns:reservationInterface"
>           type="http://www.w3.org/ns/wsdl/soap"
>           wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/">
>  
>     <fault ref="tns:invalidDataFault" 
>       wsoap:code="soap:Sender"/>
>     <operation ref="tns:opCheckAvailability" 
>       wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"/>
>   </binding>
>   <service name="reservationService" 
>        interface="tns:reservationInterface">
>      <endpoint name="reservationEndpoint" 
>                binding="tns:reservationSOAPBinding"
>                address ="http://greath.example.com/2004/reservation"/>
>         
>   </service>
> </description>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-2627) wsdl2java throws exception "WSDL writing failed!" while generating skeletons from wsdl 2.0 file

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-2627:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> wsdl2java throws exception "WSDL writing failed!" while generating skeletons from wsdl 2.0 file
> -----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2627
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2627
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2
>         Environment: Sun Java SE Runtime Environment (build 1.6.0-b105)
>            Reporter: Hans-Ulrich Klein
>         Assigned To: Amila Chinthaka Suriarachchi
>
> /opt/axis2-1.2/bin/wsdl2java.sh -uri hotel.ws dl -d xmlbeans -ss -o . -wv 2
> leads to the error message:
> Using AXIS2_HOME:   /opt/axis2-1.2
> Using JAVA_HOME:       /usr/lib/jvm/java-6-sun
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1281)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:238)
>         ... 2 more
> Caused by: java.lang.RuntimeException: WSDL writing failed!
>         at org.apache.axis2.wsdl.codegen.writer.WSDL20Writer.writeWSDL(WSDL20Writer.java:46)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:1337)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1257)
>         ... 3 more
> Caused by: org.apache.axis2.AxisFault: org.apache.woden.wsdl20.extensions.soap.SOAPFaultCode cannot be cast to java.lang.String
>         at org.apache.axis2.description.AxisService.getWSDL2(AxisService.java:1056)
>         at org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1039)
>         at org.apache.axis2.wsdl.codegen.writer.WSDL20Writer.writeWSDL(WSDL20Writer.java:41)
>         ... 5 more
> Caused by: java.lang.ClassCastException: org.apache.woden.wsdl20.extensions.soap.SOAPFaultCode cannot be cast to java.lang.String
>         at org.apache.axis2.description.AxisBindingMessage.toWSDL20(AxisBindingMessage.java:164)
>         at org.apache.axis2.description.AxisBinding.toWSDL20(AxisBinding.java:195)
>         at org.apache.axis2.description.AxisService2WSDL2.toWSDL20(AxisService2WSDL2.java:168)
>         at org.apache.axis2.description.AxisService.getWSDL2(AxisService.java:1051)
>         ... 7 more
> The wsdl-file ist the example from the wsdl-primer of the w3c:
> http://www.w3.org/TR/2007/WD-wsdl20-primer-20070326/#basics-greath-scenario
> The error seems to be associated with the fault-element in the soap-binding-section. Here is the complete wsdl-file:
> <?xml version="1.0" encoding="utf-8" ?> 
> <description 
>     xmlns="http://www.w3.org/ns/wsdl"
>     targetNamespace= "http://greath.example.com/2004/wsdl/resSvc" 
>     xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
>     xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
>     xmlns:wsoap= "http://www.w3.org/ns/wsdl/soap"
>     xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
>     xmlns:wsdlx= "http://www.w3.org/ns/wsdl-extensions">
>   <documentation>
>     This document describes the GreatH Web service.  Additional 
>     application-level requirements for use of this service -- 
>     beyond what WSDL 2.0 is able to describe -- are available 
>     at http://greath.example.com/2004/reservation-documentation.html
>   </documentation>
>   <types>
>     <xs:schema 
>         xmlns:xs="http://www.w3.org/2001/XMLSchema"
>         targetNamespace="http://greath.example.com/2004/schemas/resSvc"
>         xmlns="http://greath.example.com/2004/schemas/resSvc">
>       <xs:element name="checkAvailability" type="tCheckAvailability"/>    
>       <xs:complexType name="tCheckAvailability">     
>         <xs:sequence>      
>           <xs:element  name="checkInDate" type="xs:date"/>      
>           <xs:element  name="checkOutDate" type="xs:date"/>      
>           <xs:element  name="roomType" type="xs:string"/>      
>         </xs:sequence>     
>       </xs:complexType>   
>             
>       <xs:element name="checkAvailabilityResponse" type="xs:double"/>    
>     
>       <xs:element name="invalidDataError" type="xs:string"/>    
>     </xs:schema>    
>   </types>
>   
>   <interface  name = "reservationInterface" >
>     <fault name = "invalidDataFault"
>             element = "ghns:invalidDataError"/> 
>    
>     <operation name="opCheckAvailability" 
>             pattern="http://www.w3.org/ns/wsdl/in-out" 
>             style="http://www.w3.org/ns/wsdl/style/iri"
>             wsdlx:safe = "true">
>         <input messageLabel="In" 
>               element="ghns:checkAvailability" />
>         <output messageLabel="Out" 
>               element="ghns:checkAvailabilityResponse" />
>         <outfault ref="tns:invalidDataFault" messageLabel="Out"/>
>     </operation>
>   </interface>
>   <binding name="reservationSOAPBinding" 
>           interface="tns:reservationInterface"
>           type="http://www.w3.org/ns/wsdl/soap"
>           wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/">
>  
>     <fault ref="tns:invalidDataFault" 
>       wsoap:code="soap:Sender"/>
>     <operation ref="tns:opCheckAvailability" 
>       wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"/>
>   </binding>
>   <service name="reservationService" 
>        interface="tns:reservationInterface">
>      <endpoint name="reservationEndpoint" 
>                binding="tns:reservationSOAPBinding"
>                address ="http://greath.example.com/2004/reservation"/>
>         
>   </service>
> </description>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org