Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 93835 invoked from network); 27 Mar 2006 18:28:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Mar 2006 18:28:33 -0000 Received: (qmail 41384 invoked by uid 500); 27 Mar 2006 18:28:23 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 41172 invoked by uid 500); 27 Mar 2006 18:28:22 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 41161 invoked by uid 99); 27 Mar 2006 18:28:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 10:28:22 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of atmanes@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO pproxy.gmail.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 10:28:21 -0800 Received: by pproxy.gmail.com with SMTP id m51so102217pye for ; Mon, 27 Mar 2006 10:28:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=N1p2Pqm7sDSBZ+7qFyZwMwhtuQFB50s6d3FVeO73EloPzYKqeMLKXgS0ilrPHJzB4irLQqVBIoTzU+Ek3D0E8EZkF3bGAqmk/Jp0XD1PQEcnXzlPjZCHiMifJG2xnxQXnPy0PtGynmNfrRkyc3ZPmbYiadErimTIQaSLbu55/CY= Received: by 10.35.99.14 with SMTP id b14mr400237pym; Mon, 27 Mar 2006 10:28:00 -0800 (PST) Received: by 10.35.96.17 with HTTP; Mon, 27 Mar 2006 10:28:00 -0800 (PST) Message-ID: Date: Mon, 27 Mar 2006 13:28:00 -0500 From: "Anne Thomas Manes" To: axis-user@ws.apache.org Subject: Re: 'Type {http://www.opentravel.org/2005B/}AlphaLength1 is referenced but not defined.' In-Reply-To: <131701c651b2$d4a37af0$6a1ea8c0@vincent> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6370_1477129.1143484080960" References: <131701c651b2$d4a37af0$6a1ea8c0@vincent> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_6370_1477129.1143484080960 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I just looked at the schema you're importing from http://www.opentravel.org/2005B/OTA_SimpleTypes.xsd Note that this schema does not have a targetNamespace, therefore the elements and types defined within this schema are in no namespace. That would explain why you're getting the "type is not defined" error. I suggest you include the schema rather than import it. You must also set your default namespace to null, and reference the OTA types by their local names only. I know that Axis 2 currently has a problem dealing with schemas with no namespace. I'm not sure how Axis 1 will deal with it. You might suggest to the OTA organization that they should use namespaces. Anne On 3/27/06, vincent wrote: > > Hello, > I have a problem with wsdl and external xsd. I want to use xsd of OTA, = =3D > if I include it in the wsdl no problem but if I want to use an objetc I = =3D > have the error: > 'Type {http://www.opentravel.org/2005B/}AlphaLength1is referenced but =3D > not defined.' > > My wsdl is: > > > > > xmlns:apachesoap=3D3D"http://xml.apache.org/xml-soap"=3D20 > > xmlns:impl=3D3D"urn:test"=3D20 > > xmlns:intf=3D3D"urn:test"=3D20 > > xmlns:soapenc=3D3D"http://schemas.xmlsoap.org/soap/encoding/"=3D20 > > xmlns:wsdl=3D3D"http://schemas.xmlsoap.org/wsdl/"=3D20 > > xmlns:wsdlsoap=3D3D"http://schemas.xmlsoap.org/wsdl/soap/" > > xmlns:OTA=3D3D"http://www.opentravel.org/2005B/" > > xmlns:xsd=3D3D"http://www.w3.org/2001/XMLSchema"=3D20 > > > > > > > > > > xmlns=3D3D"http://www.w3.org/2001/XMLSchema"> > > > > > > > schemaLocation=3D3D"http://www.opentravel.org/2005B/OTA_SimpleTypes.xsd"/= > > > > > > > > > > > > > > > > > > > After this error I have an another error: > > Only 1 Url-Mapping can be specified for servlet 'testServlet' > > > > > > Primary I think I must add: > > > > String > > xmlns:OTA=3D3D"http://www.opentravel.org/2005B/">OTA:AlphaLength1 > =3D > e-qname> > > simpleType > > > > in my mappingfile but I have always the problem.=3D20 > > Thanks. > ------=_Part_6370_1477129.1143484080960 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I just looked at the schema you're importing from
http://www.opentravel.org/2005B/OTA_SimpleTypes.xsd

Note = that this schema does not have a targetNamespace, therefore the elements an= d types defined within this schema are in no namespace. That would explain = why you're getting the "type is not defined" error.=20

I suggest you include the schema rather than import it. You must al= so set your default namespace to null, and reference the OTA types by their= local names only.

I know that Axis 2 currently has a problem dealin= g with schemas with no namespace. I'm not sure how Axis 1 will deal with it= .

You might suggest to the OTA organization that they should use name= spaces.

Anne

On 3/27= /06, vincent < vincent@thelis.fr> wrote:
Hello,
I=20 have a problem with wsdl and external xsd. I want to use xsd of OTA, =3Dif I=20 include it in the wsdl no problem but if I want to use an objetc I =3D
h= ave the=20 error:
'Type { http://xml.apache.org/xml-soap"=3D20

xmlns:impl=3D3D"urn:test"=3D20

= xmlns:intf=3D3D"urn:test"=3D20

xmlns:soapenc=3D3D" http://schemas.xmlsoap.org/soap/e= ncoding/"=3D20

xmlns:wsdl=3D3D" http://schemas.xmlsoap.org/wsdl/&= quot;=3D20

xmln= s:wsdlsoap=3D3D" http://schemas.xmlsoap.org/wsdl/s= oap/"

xmln= s:OTA=3D3D"
http://www.opentravel.org/2005B/<= /font>"

xmlns:xsd= =3D3D"
http://www.w3.org/2001/XMLSchema&= quot;=3D20

>=

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

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


<wsdl:types>

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

<= import namespace=3D3D"
http://schemas.xmlsoap.org/soap/e= ncoding/"/>

<import namespace=3D3D"
http://www.opentravel.org/2005B/<= /font>" =3D
schemaLoc= ation=3D3D"
http://www.opentravel.org/2005B/O= TA_SimpleTypes.xsd"/>


<complexType=20 name=3D3D"CustomerListInformation">

<sequence>
<element=20 name=3D3D"address" type=3D3D"OTA:AlphaLength1"/>
=
<element=20 name=3D3D"birthday"=20 type=3D3D"xsd:short"/>

</sequence>

</co= mplexType>



After=20 this error I have an another error:

Only 1 Url-Mapping can be specif= ied=20 for servlet 'testServlet'





Primary I think I must=20 add:

<java-xml-type-mapping>

<java-type>String<= ;/java-type>

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

</java-xml-= type-mapping>

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

Thanks.


------=_Part_6370_1477129.1143484080960--