|
|
|
Re: Question Regarding Schemas in WSDL [message #77802 is a reply to message #77786] |
Wed, 03 June 2009 12:47 |
Ed Merks Messages: 33264 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 |
Ed Merks Messages: 33264 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 #604224 is a reply to message #77786] |
Wed, 03 June 2009 12:47 |
Ed Merks Messages: 33264 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/
|
|
|
Powered by
FUDForum. Page generated in 0.05992 seconds