Hi.
I have a webservice where the method is defined the following way:

public String validateOrderRequest(String xmlInput)throws ValidationException, 
where ValidationException extends some other Exception that extendes 
NestableException.
NestableException has a method [] getThrowables (I'm not sure if the error is 
here, but I added this information if it could be helpful).


When I create the WSDL file using Java2WSDL I get the following:
<?xml version="1.0" encoding="UTF-8"?>

<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
 <wsdl:types>
  
   http://exception.lang.commons.apache.org"/>
   http://lang.java"/>
   http://exception.om.edb.com"/>
   http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="ArrayOf_soapenc_string">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]"/>
     </restriction>
    </complexContent>
   </complexType>
   <complexType name="ArrayOf_tns4_Throwable">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="tns4:Throwable[]"/>
     </restriction>
    </complexContent>
   </complexType>
   <complexType name="ArrayOf_xsd_anyType">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>
  
   http://lang.java"/>
   <import namespace="urn:validation"/>
   http://exception.om.edb.com"/>
   http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="NestableException">
    <sequence>
     <element name="cause" nillable="true" type="xsd:anyType"/>
     <element maxOccurs="unbounded" name="message" nillable="true" 
type="soapenc:string"/>
     <element name="messages" nillable="true" 
type="impl:ArrayOf_soapenc_string"/>
     <element maxOccurs="unbounded" name="throwable" nillable="true" 
type="tns4:Throwable"/>
     <element name="throwableCount" type="xsd:int"/>
     <element name="throwables" nillable="true" 
type="impl:ArrayOf_tns4_Throwable"/>
    </sequence>
   </complexType>
  </schema>
  
   http://exception.lang.commons.apache.org"/>
   http://lang.java"/>
   <import namespace="urn:validation"/>
   http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="AttributeMap">
    <sequence>
     <element name="empty" type="xsd:boolean"/>
    </sequence>
   </complexType>
   <complexType abstract="true" name="ApplicationException">
    <complexContent>
     <extension base="tns3:NestableException">
      <sequence>
       <element name="attributeMap" nillable="true" type="tns2:AttributeMap"/>
       <element name="id" nillable="true" type="soapenc:string"/>
       <element name="messageCode" nillable="true" type="soapenc:int"/>
       <element name="messageParams" nillable="true" 
type="impl:ArrayOf_xsd_anyType"/>
       <element name="timestamp" nillable="true" type="soapenc:long"/>
      </sequence>
     </extension>
    </complexContent>
   </complexType>
   <complexType name="ValidationException">
    <complexContent>
     <extension base="tns2:ApplicationException">
      <sequence/>
     </extension>
    </complexContent>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="ValidationException">

      <wsdl:part name="fault" type="tns2:ValidationException"/>

   </wsdl:message>

   <wsdl:message name="validateOrderRequestResponse">

      <wsdl:part name="validateOrderRequestReturn" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:message name="validateOrderRequestRequest">

      <wsdl:part name="in0" type="soapenc:string"/>

   </wsdl:message>

   <wsdl:portType name="IOrderRequestTransformer">

      <wsdl:operation name="validateOrderRequest" parameterOrder="in0">

         <wsdl:input message="impl:validateOrderRequestRequest" 
name="validateOrderRequestRequest"/>

         <wsdl:output message="impl:validateOrderRequestResponse" 
name="validateOrderRequestResponse"/>

         <wsdl:fault message="impl:ValidationException" 
name="ValidationException"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="presentSoapBinding" type="impl:IOrderRequestTransformer">

      http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="validateOrderRequest">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="validateOrderRequestRequest">

            

         </wsdl:input>

         <wsdl:output name="validateOrderRequestResponse">

            

         </wsdl:output>

         <wsdl:fault name="ValidationException">

            

         </wsdl:fault>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="IOrderRequestTransformerService">

      <wsdl:port binding="impl:presentSoapBinding" name="present">

         http://localhost:7001/webservicesfacade/services/present"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>


When I try to create stub files (and deploy files) I get the following exeption:
java.io.IOException: Type {http://lang.java}Throwable is referenced but not 
defined.
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
        at 
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Unknown Source)


Does anyone know why this happens?

Regards,
Espen



__________________________________________________
Bruker du Yahoo!?
Lei av spam?  Yahoo! Mail har den beste spambeskyttelsen 
http://no.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to