RE: Importing external schema in WSDL

2006-06-13 Thread Carlos A. Perez
Hi,

I am attaching you the services.xml and the WSDL with the reference to the
external schemas.

I removed the external references and made a copy of all referenced schemas
in the .aar file, and now Axis is not generating any exception at all, and
the service appears in the service listing, but when I go the WSDL for the
service and then I got to the referenced schemas, these schemas are
modified. I am referencing some schemas from Dublin core, and they define
some types using extension and restriction mechanisms and they define some
elements to be substitution groups of another elements, Axis is removing
this definitions, for example, in one of the schemas that I am referencing:

http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd

They define an element with name title, like this:



I made a copy of this xsd in the aar file, and when Axis serves this schema
the element definition now looks like:



The worst case if the for the following schema:
http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcmitype.xsd

There, they define a simpleType like this:






















But Axis now serves it as:





Is this the expected behavior of Axis? 

I workaround for this is the serve all the schemas and WSDL and schemas
outside of Axis, because I don't want Axis to modified them, so I think that
is the best choice, but it would be nice if Axis could serve them as well. 

Thank you for your help.

Cheers,

Carlos


 
-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 2:57 AM
To: axis-user@ws.apache.org
Subject: Re: Importing external schema in WSDL

Hi Carlos;
Once you put your wsdl file into META-INF directory of the service
archive file , then if there are xsd:imports in your wsdl Axis2 tries to
read them. If the schema imports are relative then they should be there
in the META-INF directory, if the schema is absolute URL then it should
work w.o having  any problem.

Any way it is very helpful that if you could attached your wsdl or
service archive file for us to regenerate the issue.

Carlos A. Perez wrote:

>Hi, 
>
>I have been trying to reference an external schema in a WSDL file using
>xs:import inside the types section, and using as a schema locator an http
>URL. 
>
>It worked with version 0.95, but now with version 1.0 it's giving me an
>error saying that it was unable to locate the schema with the http locator
>that I provided (Unable to locate with a locator the schema referenced at
>'http://...'). Now, I don't know if in general I am not supposed to use
http
>URLs as schema locators or if it's a bug introduced in the new version of
>Axis when fixing the bug in the version 0.95 that didn't allow me to import
>schemas that were inside the .aar file.
>
>Could someone help me with this issue?
>
>Bye and thank you very much for your help.
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Web service that allows access to resources in a CMap Server.

us.ihmc.ws.services.CMapWebService






















CMapWebService.wsdl
Description: application/xml
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Importing external schema in WSDL

2006-06-12 Thread Carlos A. Perez
Hi, 

I have been trying to reference an external schema in a WSDL file using
xs:import inside the types section, and using as a schema locator an http
URL. 

It worked with version 0.95, but now with version 1.0 it's giving me an
error saying that it was unable to locate the schema with the http locator
that I provided (Unable to locate with a locator the schema referenced at
'http://...'). Now, I don't know if in general I am not supposed to use http
URLs as schema locators or if it's a bug introduced in the new version of
Axis when fixing the bug in the version 0.95 that didn't allow me to import
schemas that were inside the .aar file.

Could someone help me with this issue?

Bye and thank you very much for your help.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]