Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Question Regarding Schemas in WSDL
Question Regarding Schemas in WSDL [message #77365] Wed, 25 February 2009 05:57 Go to next message
Keshavrao  is currently offline Keshavrao Friend
Messages: 34
Registered: July 2009
Member
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 #77424 is a reply to message #77365] Wed, 25 February 2009 15:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
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.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Question Regarding Schemas in WSDL [message #77786 is a reply to message #77424] Wed, 03 June 2009 12:19 Go to previous messageGo to next message
Keshavrao  is currently offline Keshavrao Friend
Messages: 34
Registered: July 2009
Member
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 #77802 is a reply to message #77786] Wed, 03 June 2009 12:47 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
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.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Question Regarding Schemas in WSDL [message #604105 is a reply to message #77365] Wed, 25 February 2009 15:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
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.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Question Regarding Schemas in WSDL [message #604220 is a reply to message #77424] Wed, 03 June 2009 12:19 Go to previous message
Keshavrao  is currently offline Keshavrao Friend
Messages: 34
Registered: July 2009
Member
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 12:47 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
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.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Is xsd validator cannot validate an xpath with character [ or ] ?
Next Topic:Problem with EMF generation from 2 XSDs
Goto Forum:
  


Current Time: Thu Apr 18 23:09:05 GMT 2024

Powered by FUDForum. Page generated in 0.02464 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top