Hello,
I have a problem with wsdl and external xsd. I want to use xsd of OTA, =
if I include it in the wsdl no problem but if I want to use an objetc I =
have the error:
'Type {http://www.opentravel.org/2005B/}AlphaLength1 is referenced but =
not defined.'

My wsdl is:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>

<wsdl:definitions targetNamespace=3D"urn:test"=20

xmlns:apachesoap=3D"
http://xml.apache.org/xml-soap"=20

xmlns:impl=3D"urn:test"=20

xmlns:intf=3D"urn:test"=20

xmlns:soapenc=3D"
http://schemas.xmlsoap.org/soap/encoding/"=20

xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/"=20

xmlns:wsdlsoap=3D"http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:OTA=3D"
http://www.opentravel.org/2005B/"

xmlns:xsd=3D"
http://www.w3.org/2001/XMLSchema"=20

>

<!--WSDL created by Apache Axis version: 1.3

Built on Oct 05, 2005 (05:23:37 EDT)-->


<wsdl:types>

<schema targetNamespace=3D"urn:test" =
xmlns=3D"
http://www.w3.org/2001/XMLSchema">

<import namespace=3D"
http://schemas.xmlsoap.org/soap/encoding/"/>


<import namespace=3D"
http://www.opentravel.org/2005B/" =
schemaLocation=3D"
http://www.opentravel.org/2005B/OTA_SimpleTypes.xsd"/>


<complexType name=3D"CustomerListInformation">

<sequence>

<element name=3D"address" type=3D"OTA:AlphaLength1"/>

<element name=3D"birthday" type=3D"xsd:short"/>

</sequence>

</complexType>



After this error I have an another error:

Only 1 Url-Mapping can be specified for servlet 'testServlet'





Primary I think I must add:

<java-xml-type-mapping>

<java-type>String</java-type>

<root-type-qname =
xmlns:OTA=3D"
http://www.opentravel.org/2005B/">OTA:AlphaLength1</root-typ=
e-qname>

<qname-scope>simpleType</qname-scope>

</java-xml-type-mapping>

in my mappingfile but I have always the problem.=20

Thanks.

Reply via email to