Yes,

You can import and reference types or element in the schema.

Below shown an example of how to import a schema under the namespace
"http://corp.net/configuration"; and how to reference a element in that
schema.

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:tns="http://corp.net/ConfigManager";
xmlns:conf="http://corp.net/configuration"; name="ConfigManager"

<!--snip -->

<wsdl:types>
<xs:schema targetNamespace="http://corp.net/ConfigManager/getConfigurations";
elementFormDefault="qualified">

 <xs:import namespace="http://corp.net/configuration";
schemaLocation="../schemas/config.xsd" />
<xs:element name="getConfigurationsResponse">
<xs:complexType>
<xs:sequence>
 <xs:element ref="conf:config" minOccurs="1" maxOccurs="1" />
 </xs:sequence>
 </xs:complexType>
 </xs:element>
 </xs:schema>
</wsdl:types>

Regards,
Marcus Ludvigson

On 5/29/06, Hariharasudhan.D Dhakshinamoorthy
<[EMAIL PROTECTED]> wrote:

Is there a way in axis where i can create my xsd seperately in a seperate file 
instead of having it in the WSDL itself ?

Reply via email to