users@jax-rpc.java.net

Re: wsdl schema definition part : how to import schema?

From: Anne Thomas Manes <anne_at_MANES.NET>
Date: Fri, 28 Mar 2003 08:52:00 -0500

Imports are tricky. You should be able to perform a schema import in the
<schema> element. But the success of such a move varies from implementation
to implementation.

You can put the schema file wherever you like, but schemaLocation has to
point to it (you must provide the full URL).

Anne

> -----Original Message-----
> From: Public discussion on JAX-RPC
> [mailto:JAXRPC-INTEREST_at_JAVA.SUN.COM]On Behalf Of Pedro Salazar
> Sent: Friday, March 28, 2003 5:30 AM
> To: JAXRPC-INTEREST_at_JAVA.SUN.COM
> Subject: wsdl schema definition part : how to import schema?
>
>
> Greetings,
>
> I would like to know if it's possible to import a schema in my schema
> declaration part of wsdl, and if possible, where should I put my schema
> file to use schemaLocation attribute? In the same place as wsdl?
>
> <xs:schema
> xmlns:pos="http://locawa.eurescom/position"
> xmlns:lf="http://locawa.eurescom/locationfinder"
> targetNamespace="http://locawa.eurescom/locationfinder"
> elementFormDefault="qualified"
> xmlns="http://www.w3.org/2001/XMLSchema"
> >
>
> <xs:import namespace="http://locawa.eurescom/position"
> schemaLocation="position.xsd"/>
>
> Where should I put the file "position.xsd"?
>
> thanks,
> Pedro Salazar
> --
> PS
> pedro-b-salazar_at_ptinovacao.pt
> PGP:0E129E31D803BC61
>