Hi all I was reading notes on WSDL topic given on xyzws.com it gives following description about use of wsdl:import element
WSDL import element can only be used to import other WSDL files. For example:
INCORRECT:
<definitions name="StockQuote"
targetNamespace="http://example.com/stockquote/definitions"
xmlns:xsd1="http://example.com/stockquote/schemas""
...
xmlns="http://schemas.xmlsoap.org/wsdl/">
<import namespace="http://example.com/stockquote/schemas"
location="http://example.com/stockquote/stockquote.xsd"/>
<message name="GetLastTradePriceInput">
<part name="body" element="xsd1:TradePriceRequest"/>
</message>
...
</definitions>
CORRECT:
<definitions name="StockQuote"
targetNamespace="http://example.com/stockquote/definitions">
<import namespace="http://example.com/stockquote/definitions"
location="http://example.com/stockquote/stockquote.wsdl"/>
<message name="GetLastTradePriceInput">
<part name="body" element="..."/>
</message>
...
</definitions>
Does this mean if I want to write separate file for schema definition and use this schema definition in WSDL then I need to write schema definition in another wsdl file and import this file .Why can't I directly import xsd file in WSDL.
Please help
Thanks in advance
Apratim
SCJP 1.5
SCEA Part I
Mission SCDJWS