ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> soapbuilders
soapbuilders
Re: [soapbuilders] Re: Inlined Schemas in WSDLs Question
by Pete Hendry other posts by this author
Oct 11 2004 7:42PM messages near this date
[soapbuilders] Re: Inlined Schemas in WSDLs Question | [soapbuilders] Re: Inlined Schemas in WSDLs Question
SERVICES 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> 
  <title> </title>
</head> 
<body bgcolor="#ffffff" text="#000000"> 


This issue is being discussed on the WS-I list and has been raised on
the WSDL 2.0 working group list.<br> 
<br> 
My take on it is that it is that the WSDL document may be valid (i.e.
it will not produce a validation failure), but the behaviour of schema
parsers may differ. The schema specification does not deal with this
kind of situation because the specification is not written for embedded
schemas within another type of document (such as wsdl). This is an
embedding issue I believe.<br> 
<br> 
Consider a scenario where the schemas are not embedded. Imagine I have
2 files a1.xsd and a2.xsd in a directory on disk. If I want to load
them I can ask a parser to load one and have that one contain an
include to the other. If I tell a parser to load one (using
schemaLocation) would I expect it to also load the other if the one it
was told to load did not contain an include? No, I don't think so.<br> 
<br> 
Also, looking at the specification, a parser is free to locate a schema
document in any way it chooses, with the schemaLocation being only a
hint. When a parser is asked to load a schema with namespace="a" it can
locate this schema on disk, by resolving the namespace as a URL, by
reading it from the current WSDL file, from a cache, or any other way.
Once it finds and loads the document it is done. Why would it then
continue this search and try to find another document with this
namespace that is not referenced from the first? It wouldn't.<br> 
<br> 
Merging the schemas is an option but it is fraught with danger. What
happens if 2 components are identical (including their name)? Should
this be an error or should the second be ignored because it is the same
as the first? Attributes on the xsd:schema element are also a problem
if they don't match.<br> 
<br> 
Finally, what possible reason is there for doing this? Why not just
have one schema with all the components? Some people just seem to make
life difficult for no good reason!<br> 
<br> 
We are not supporting this currently and I would not like to see it
become commonplace.<br> 
<br> 
Can you tell us which vendor is producing such WSDL?<br> 
<br> 
Pete<br> 
<br> 
<br> 
boruvek wrote:
<blockquote cite="midcke8h2+t70k@eGroups.com" type="cite"> 
  <pre wrap=""> 
Hi!

In my opinion this kind of WSDL is perfectly legal. But it is 
uncommon and it is not good practice. 

Look into WSDL 1.1 specification and/or WS-I Basic Profile 1.1. They 
do not prevent you from doing that. 

Merging of that two schemas could be solution. Problem arise when e.g 
one schema different elementFromDefault to the second one... But I 
hope this is only a theory ;)

Milan Boruvka

--- In <a class="moz-txt-link-abbreviated" href="mailto:soapbuilders@yahoogroups.com"> soapbu
ilders@[...].com</a> , "jeehongmin2003" 
<a class="moz-txt-link-rfc2396E" href="mailto:jeehongmin2003@y..."> &lt;jeehongmin2003@y...&g
t;</a>  wrote:
  </pre> 
  <blockquote type="cite"> 
    <pre wrap=""> Recently, I have been seeing multiple inlined schemas with the same
namespace in our customers' WSDLs.  For example (ignoring 
    </pre> 
  </blockquote> 
  <pre wrap=""> <!---->namespaces):
  </pre> 
  <blockquote type="cite"> 
    <pre wrap=""> &lt;wsdl:definition&gt;
&lt;wsdl:types&gt;
&lt;xs:schema targetNamespace="a"&gt;
types and elements
&lt;/xs:schema&gt;
&lt;xs:schema targetNamespace="a"&gt;
different types and elements
&lt;/xs:schema&gt;
&lt;xs:schema targetNamespace="b"&gt;
whatever
&lt;/xs:schema&gt;
&lt;/wsdl:types&gt;
...
&lt;wsdl:definition&gt;

My understanding is that each inlined schema should have a unique
namespace.  So what I've done is merge the two schemas with
targetNamespace="a".  

Am I correct in concluding that the above WSDL is incorrect?  If so,
why are various WSDL generators allowing that?

Thanks,

Jeehong Min
    </pre> 
  </blockquote> 
  <pre wrap=""> <!---->




------------------------ Yahoo! Groups Sponsor --------------------~--&gt; 
$9.95 domain names from Yahoo!. Register anything.
<a class="moz-txt-link-freetext" href="http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/W6uqlB
/TM"> http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/W6uqlB/TM</a>
--------------------------------------------------------------------~-&gt; 

-----------------------------------------------------------------
This group is a forum for builders of SOAP implementations to discuss implementation and int
eroperability issues.  Please stay on-topic. 
Yahoo! Groups Links

&lt;*&gt; To visit your group on the web, go to:
    <a class="moz-txt-link-freetext" href="http://groups.yahoo.com/group/soapbuilders/"> http
://groups.yahoo.com/group/soapbuilders/</a> 

&lt;*&gt; To unsubscribe from this group, send an email to:
    <a class="moz-txt-link-abbreviated" href="mailto:soapbuilders-unsubscribe@yahoogroups.co
m"> soapbuilders-unsubscribe@[...].com</a>

&lt;*&gt; Your use of Yahoo! Groups is subject to:
    <a class="moz-txt-link-freetext" href="http://docs.yahoo.com/info/terms/"> http://docs.ya
hoo.com/info/terms/</a> 
 



  </pre> 
</blockquote> 

<br> <br>
<tt> 
-----------------------------------------------------------------<BR> 
This group is a forum for builders of SOAP implementations to discuss implementation and int
eroperability issues.&nbsp; Please stay on-topic.</tt> 
<br> <br>

<br> 

<!-- |**|begin egp html banner|**| --> 

<table border=0 cellspacing=0 cellpadding=2> 
<tr bgcolor=#FFFFCC> 
<td align=center> <font size="-1" color=#003399><b>Yahoo! Groups Sponsor</b></font></td>
</tr> 
<tr bgcolor=#FFFFFF> 
<td align=center width=470> <table border=0 cellpadding=0 cellspacing=0> <tr> <td align=cente
r> <font face=arial size=-2>ADVERTISEMENT</font><br><a href="http://us.ard.yahoo.com/SIG=129b
rrii6/M=294855.5468653.6549235.3001176/D=groups/S=1705701014:HM/EXP=1097635347/A=2376776/R=0
/SIG=11ldm1jvc/*http://promotions.yahoo.com/ydomains2004/index.html" target="_blank"> <img sr
c="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_domain/lrec_scuba_082004.jpg" alt="click her
e" width="300" height="250" border="0"> </a></td></tr></table> </td>
</tr> 
<tr> <td><img alt="" width=1 height=1 src="http://us.adserver.yahoo.com/l?M=294855.5468653.65
49235.3001176/D=groups/S=:HM/A=2376776/rand=520296568"> </td></tr>
</table> 

<!-- |**|end egp html banner|**| --> 



<!-- |**|begin egp html banner|**| --> 

<br> 
<tt> <hr width="500">
<b> Yahoo! Groups Links</b><br>
<ul> 
<li> To visit your group on the web, go to:<br><a href="http://groups.yahoo.com/group/soapbui
lders/"> http://groups.yahoo.com/group/soapbuilders/</a><br>&nbsp;
<li> To unsubscribe from this group, send an email to:<br><a href="mailto:soapbuilders-unsubs
cribe@yahoogroups.com?subject=Unsubscribe"> soapbuilders-unsubscribe@[...].com</a><br>&nbsp;
<li> Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/">
Yahoo! Terms of Service</a> .
</ul> 
</tt> 
</br> 

<!-- |**|end egp html banner|**| --> 


</body> 
</html> 
Thread:
Jeehongmin2003
Boruvek
Pete Hendry
Milan Boruvka
Jeehong Min

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved