Hi All,
When I feed the below wsdl to AXIS 1.2 RC2's WSDL2Java program I am
getting a strange error "java.io.IOException: Type
{http://www.as.com/schemas/so}SiBaseException is referenced but not
defined". This wsdl is "validated ok" by XML Spy or any other wsdl
validator. Can anyone please tell me why am I getting this exception
and how to make axis successfully generate
stubs.
<wsdl:definitions
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://www.as.com/wsdl/so"
xmlns:intf="http://www.as.com/wsdl/so"
xmlns:tns1="http://www.as.com/schemas/so"
targetNamespace="http://www.as.com/wsdl/so" >
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.as.com/schemas/so"
xmlns:tns="http://www.as.com/schemas/so" >
<element name="hash-map">
<complexType>
<sequence>
<element minOccurs="0"
maxOccurs="unbounded" name="entry">
<complexType>
<simpleContent>
<extension base="xsd:string">
<attribute name="key" type="xsd:string"/>
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
<attribute name="size" type="xsd:int"/>
</complexType>
</element>
<complexType name="SiBaseException">
<sequence>
<element name="isAlreadyLogged"
type="xsd:boolean"/>
</sequence>
</complexType>
<complexType name="SiWSSystemException">
<complexContent>
<extension base="tns1:SiBaseException">
<sequence>
<element
name="errorCode" nillable="true" type="xsd:string"/>
<element
name="errorMessage" nillable="true" type="xsd:string"/>
<element
name="errorSeverity" nillable="true" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.as.com/wsdl/so">
<import namespace="http://www.as.com/schemas/so" />
<element name="lg">
<complexType>
<sequence>
<element
name="strClientIPAddress" type="xsd:string"/>
<element name="strUserID"
type="xsd:string"/>
<element name="strPassword"
type="xsd:string"/>
<element name="strResource"
type="xsd:string"/>
<element name="strAction"
type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="lgResponse">
<complexType>
<sequence>
<element ref="tns1:hash-map"/>
</sequence>
</complexType>
</element>
<element name="fault" type="tns1:SiWSSystemException"/>
<element name="lgValidate">
<complexType>
<sequence>
<element
name="strClientIPAddress" type="xsd:string"/>
<element name="strSessionSpecs"
type="xsd:string"/>
<element name="strResource"
type="xsd:string"/>
<element name="strAction"
type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="lgValidateResponse">
<complexType>
<sequence>
<element ref="tns1:hash-map"/>
</sequence>
</complexType>
</element>
<element name="authorize">
<complexType>
<sequence>
<element
name="strClientIPAddress" type="xsd:string"/>
<element name="strSessionSpecs"
type="xsd:string"/>
<element name="strResource"
type="xsd:string"/>
<element name="strAction"
type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="authorizeResponse">
<complexType>
<sequence>
<element ref="tns1:hash-map"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="lgResponse">
<wsdl:part element="impl:lgResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="lgRequest">
<wsdl:part element="impl:lg" name="parameters"/>
</wsdl:message>
<wsdl:message name="SiWSSystemException">
<wsdl:part element="impl:fault" name="fault"/>
</wsdl:message>
<wsdl:portType name="SiServicesInterface">
<wsdl:operation name="lg">
<wsdl:input message="impl:lgRequest" name="lgRequest"/>
<wsdl:output message="impl:lgResponse"
name="lgResponse"/>
<wsdl:fault message="impl:SiWSSystemException"
name="SiWSSystemException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SiServicesBinding" type="impl:SiServicesInterface">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="lg">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="lgRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="lgResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="SiWSSystemException">
<wsdlsoap:fault name="SiWSSystemException"
use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SiServicesInterfaceService">
<wsdl:port binding="impl:SiServicesBinding"
name="SiServicesBean">
<wsdlsoap:address
location="https://localhost/so/services/SiServices"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Thanks & Regards,
Kumar.