Hey all:
I am having some trouble importing a WSDL that contains two top-level
schemas. The WSDL itself is attached.
The basic thing is that I define the first schema with a type in one
namespace, then the second schema defines another type that uses the
first type. However, I keep getting the following error:
[WARN] Type {urn:/ns2}foo missing!
Any help would be appreciated!
-Jake
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<wsdl:definitions
targetNamespace="urn:/ns1"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="urn:/ns1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<wsdl:types>
<xs:schema
elementFormDefault="qualified"
targetNamespace="urn:/ns2"
>
<xs:element name="foo" type="xs:string" />
</xs:schema>
<xs:schema
elementFormDefault="qualified"
targetNamespace="urn:/ns1"
xmlns:other="urn:/ns2"
>
<xs:import namespace="urn:/ns2" />
<xs:element name="Func">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="bar" type="other:foo" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FuncResponse">
<xs:complexType>
<xs:sequence>
<xs:any name="value" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="Func">
<wsdl:part name="parameters" element="tns:Func" />
</wsdl:message>
<wsdl:message name="FuncResponse">
<wsdl:part name="parameters" element="tns:FuncResponse" />
</wsdl:message>
<wsdl:portType name="Port">
<wsdl:operation name="Func">
<wsdl:input message="tns:Func" />
<wsdl:output message="tns:FuncResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="Binding" type="tns:Port">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Func">
<soap:operation soapAction="func" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service">
<wsdl:port name="Port" binding="tns:Binding">
<soap:address location="http://127.0.0.1/soap" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]