Question Regarding Schemas in WSDL [message #77365] |
Wed, 25 February 2009 00:57  |
Eclipse User |
|
|
|
Hi
I have a WSDL which has two schemas with same namespaces, and i want to
use types from one of this schemas in another schema. I tried adding an
empty include but the editor shows validation errors that the components
could not be resolved, then i removed the include and still the errors
didnt go.
is this a restriction from WSDL that we cannot use types from schemas
having same namespace within a WSDL?
Thanks and regards,
Keshav Veerapaneni.
|
|
|
|
|
Re: Question Regarding Schemas in WSDL [message #77802 is a reply to message #77786] |
Wed, 03 June 2009 08:47  |
Eclipse User |
|
|
|
Keshav,
Comments below.
Keshavrao wrote:
> Hello Ed,
>
> Sorry for this long delay in reply.
Not a problem for me. :-P
>
> I am using WSDLResourceImpl, but this could also be seen using the
> WSDL WTP editor. Just create a WSDL with two schemas having same
> namespace and refer components from one schema to other in same WSDL
> and validate.
The schemaLocation attribute on an <include> is required so an empty one
isn't going to cut it. It's not clear what URI you'd have to give to
specify the other schema nested within the WSDL though, so I get the
sense that it's simply not expressible.
>
> You would notice that it shows validation errors.
>
> Apart from this i have one question regarding defining null namespace
> schemas in a WSDL. Is this allowed and if so how can i use components
> from such schema in my wsdl messages and in other schemas defined in
> the same WSDL.
I'm not sure if WSDL has any restrictions on this. It's purely a WSDL
question that I can't answer. You should be able to use <import>
without a schema location and it should find the schema with the given
namespace; a missing namespace should be interpreted as the null namespace.
>
>
> Thanks and regards,
> Keshav Veerpaneni.
>
|
|
|
Re: Question Regarding Schemas in WSDL [message #604105 is a reply to message #77365] |
Wed, 25 February 2009 10:21  |
Eclipse User |
|
|
|
Keshav,
I'd have to say it sounds completely pointless. :-P
Are you loading this with an XSDResourceImpl or a WSDLResourceImpl?
Keshavrao wrote:
> Hi
>
> I have a WSDL which has two schemas with same namespaces, and i want
> to use types from one of this schemas in another schema. I tried
> adding an empty include but the editor shows validation errors that
> the components could not be resolved, then i removed the include and
> still the errors didnt go.
>
> is this a restriction from WSDL that we cannot use types from schemas
> having same namespace within a WSDL?
>
>
> Thanks and regards,
> Keshav Veerapaneni.
>
|
|
|
Re: Question Regarding Schemas in WSDL [message #604220 is a reply to message #77424] |
Wed, 03 June 2009 08:19  |
Eclipse User |
|
|
|
Hello Ed,
Sorry for this long delay in reply.
I am using WSDLResourceImpl, but this could also be seen using the WSDL
WTP editor. Just create a WSDL with two schemas having same namespace and
refer components from one schema to other in same WSDL and validate.
You would notice that it shows validation errors.
Apart from this i have one question regarding defining null namespace
schemas in a WSDL. Is this allowed and if so how can i use components from
such schema in my wsdl messages and in other schemas defined in the same
WSDL.
Thanks and regards,
Keshav Veerpaneni.
|
|
|
Re: Question Regarding Schemas in WSDL [message #604224 is a reply to message #77786] |
Wed, 03 June 2009 08:47  |
Eclipse User |
|
|
|
Keshav,
Comments below.
Keshavrao wrote:
> Hello Ed,
>
> Sorry for this long delay in reply.
Not a problem for me. :-P
>
> I am using WSDLResourceImpl, but this could also be seen using the
> WSDL WTP editor. Just create a WSDL with two schemas having same
> namespace and refer components from one schema to other in same WSDL
> and validate.
The schemaLocation attribute on an <include> is required so an empty one
isn't going to cut it. It's not clear what URI you'd have to give to
specify the other schema nested within the WSDL though, so I get the
sense that it's simply not expressible.
>
> You would notice that it shows validation errors.
>
> Apart from this i have one question regarding defining null namespace
> schemas in a WSDL. Is this allowed and if so how can i use components
> from such schema in my wsdl messages and in other schemas defined in
> the same WSDL.
I'm not sure if WSDL has any restrictions on this. It's purely a WSDL
question that I can't answer. You should be able to use <import>
without a schema location and it should find the schema with the given
namespace; a missing namespace should be interpreted as the null namespace.
>
>
> Thanks and regards,
> Keshav Veerpaneni.
>
|
|
|
Powered by
FUDForum. Page generated in 0.05053 seconds