You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Hariharasudhan.D Dhakshinamoorthy" <ha...@gmail.com> on 2006/05/29 14:02:06 UTC
WSDL doubt
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 ?
Re: WSDL doubt
Posted by Marcus Ludvigson <ma...@gmail.com>.
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
<ha...@gmail.com> 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 ?