You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Srinivas Reddy Raya <sr...@radiantinfo.com> on 2007/04/09 07:39:39 UTC
java.io.IOException: Type {http://lang.java}Throwable is referenced but not defined
Hi ,
I am developing a webservice using axis1.4 for that I created class
files. Then I have generated WSDL file (using Java2WSDL tool).
I tried to create Stubs from the generated WSDL file(using WSDL2Java
tool) , I am getting the following error,
java.io.IOException: Type {http://lang.java}Throwable is referenced but
not defined.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTab
le.java:665)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5
18)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
95)
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)
my WSDL is as follows
<?xml version="1.0" encoding="UTF-8" ?>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:definitions targetNamespace="http://wservice.pmh.radiant.com"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://wservice.pmh.radiant.com"
xmlns:intf="http://wservice.pmh.radiant.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="http://soap.apache.org" xmlns:tns2="http://lang.java"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<!--
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
-->
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:types>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<schema targetNamespace="http://wservice.pmh.radiant.com"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xml.apache.org/xml-soap" />
<import namespace="http://lang.java" />
<import namespace="http://soap.apache.org" />
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<complexType name="AttachmentServiceException">
<sequence />
</complexType>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<complexType name="InputValidationException">
<sequence />
</complexType>
</schema>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<schema targetNamespace="http://soap.apache.org"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xml.apache.org/xml-soap" />
<import namespace="http://wservice.pmh.radiant.com" />
<import namespace="http://lang.java" />
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<complexType name="SOAPException">
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<sequence>
<element name="faultCode" nillable="true" type="xsd:string" />
<element name="message" nillable="true" type="xsd:string" />
<element name="rootException" nillable="true" type="xsd:anyType" />
<element name="targetException" nillable="true" type="tns2:Throwable"
/>
</sequence>
</complexType>
</schema>
</wsdl:types>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:message name="InputValidationException">
<wsdl:part name="fault" type="impl:InputValidationException" />
</wsdl:message>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:message name="SOAPException">
<wsdl:part name="fault" type="tns1:SOAPException" />
</wsdl:message>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:message name="getDimeDataResponse">
<wsdl:part name="getDimeDataReturn" type="xsd:anyType" />
</wsdl:message>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:message name="getDimeDataRequest">
<wsdl:part name="in0" type="apachesoap:DataHandler" />
<wsdl:part name="in1" type="soapenc:string" />
</wsdl:message>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:message name="AttachmentServiceException">
<wsdl:part name="fault" type="impl:AttachmentServiceException" />
</wsdl:message>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:portType name="AttachmentService">
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:operation name="getDimeData" parameterOrder="in0 in1">
<wsdl:input message="impl:getDimeDataRequest"
name="getDimeDataRequest" />
<wsdl:output message="impl:getDimeDataResponse"
name="getDimeDataResponse" />
<wsdl:fault message="impl:AttachmentServiceException"
name="AttachmentServiceException" />
<wsdl:fault message="impl:InputValidationException"
name="InputValidationException" />
<wsdl:fault message="impl:SOAPException" name="SOAPException" />
</wsdl:operation>
</wsdl:portType>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:binding name="AttachmentServiceSoapBinding"
type="impl:AttachmentService">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:operation name="getDimeData">
<wsdlsoap:operation soapAction="" />
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:input name="getDimeDataRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://wservice.pmh.radiant.com" use="encoded" />
</wsdl:input>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:output name="getDimeDataResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://wservice.pmh.radiant.com" use="encoded" />
</wsdl:output>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:fault name="AttachmentServiceException">
<wsdlsoap:fault
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="AttachmentServiceException"
namespace="http://wservice.pmh.radiant.com" use="encoded" />
</wsdl:fault>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:fault name="InputValidationException">
<wsdlsoap:fault
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="InputValidationException"
namespace="http://wservice.pmh.radiant.com" use="encoded" />
</wsdl:fault>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:fault name="SOAPException">
<wsdlsoap:fault
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="SOAPException" namespace="http://wservice.pmh.radiant.com"
use="encoded" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:service name="AttachmentServiceService">
- <http://localhost:8080/Attachment/services/AttachmentService?wsdl##>
<wsdl:port binding="impl:AttachmentServiceSoapBinding"
name="AttachmentService">
<wsdlsoap:address
location="http://localhost:8080/Attachment/services/AttachmentService"
/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Can any body help me please.
Thanks
Srinivas