Hi,
I am trying some examples of wsdl import, but getting error when trying to import multiple wsdls.
listing5wsdl
------------
<wsdl
efinitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:listing5="urn:listing5"
targetNamespace="urn:listing5">
<wsdl:types>
<xsd:schema targetNamespace="urn:listing5">
<xsd:complexType name="Phone">
<xsd:sequence>
<xsd:element name="areaCode" type="xsd:int"/>
<xsd:element name="exchange" type="xsd:int"/>
<xsd:element name="number" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
</wsdl
efinitions>
listing4wsdl
------------
<wsdl
efinitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:listing5="urn:listing5"
xmlns:listing4="urn:listing4"
targetNamespace="urn:listing4">
<wsdl:import namespace="urn:listing5" location="listing5wsdl"/>
<wsdl:types>
<xsd:schema targetNamespace="urn:listing4">
<xsd:complexType name="Address">
<xsd:sequence>
<xsd:element name="street" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
<xsd:element name="state" type="xsd:string"/>
<xsd:element name="phone" type="listing5
hone"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
</wsdl
efinitions>
now when i try to import both the wsdls i get an error
"The WSDL is not semantically valid: Impossible to compile the schemas referenced by the WSDL"
<wsdl
efinitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:listing4="urn:listing4"
xmlns:listing5="urn:listing5"
xmlns:listing6="urn:listing6"
targetNamespace="urn:listing6">
<wsdl:import namespace="urn:listing4" location="listing4wsdl"/>
<wsdl:import namespace="urn:listing5" location="listing5wsdl"/>
<wsdl:message name="GetAddressRequest">
<wsdl
art name="name" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="GetAddressResponse">
<wsdl
art name="address" type="listing4:Address"/>
</wsdl:message>
<wsdl:message name="GetPhoneRequest">
<wsdl
art name="name" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="GetPhoneResponse">
<wsdl
art name="phone" type="listing5
hone"/>
</wsdl:message>
</wsdl
efinitions>
However, if I import just either one of the wsdls(either listing4wsdl or listing5wsdl) and just use their types, it works fine.
Is it alright to import multiple wsdls?
regards
Vasim