Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Help with WSDL Validation please, any rules listing?
Help with WSDL Validation please, any rules listing? [message #204710] Mon, 19 November 2007 15:36 Go to next message
Juan Pedro Silva is currently offline Juan Pedro Silva
Messages: 258
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060103090102040007080002
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everybody.<br>
I'm working on some WSDL generation from UML files. I've already
developed every generation step, among which y generate an schema on
the UML model with XSDExporter, and I'm now using the WSDL validator to
check that my generated WSDL are ok. <br>
<br>
I'm running the validator on a very silly simple wsdl file, and got two
error messages:<br>
<ul>
<li>WS-I: (BP2102) An XML schema import element references something
other than an XML schema definition: the referenced element does not
have "schema" from XML namespace <a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a> as
root element. <br>
</li>
<li>WS-I: (BP2122) A wsdl:types element contained a data type
definition that is not an XML schema definition. &nbsp;&nbsp;</li>
</ul>
I wasn't able to find any rules listing to get a more detailed
explanation of the errors and try to fix them, is there one?. I
referred to the WS-I profile and found a R2102&nbsp; but no R2122.<br>
Anyhow, I don't completely understand why I get these errors on my WSDL.<br>
<br>
As you may see in the attached WSDL and schema, the referred schema
root element has the reference to <a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>. May
it have something to do with the "&lt;?xml version..." line?.<br>
Please forgive me if I'm asking something silly, as I'm a newcomer to
WSDL and XML schemas altogether.<br>
Thank you all in advance,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; Juan Pedro<br>
<br>
<br>
P.S.: Just in case, I'm running eclipse 3.2.2 with
wtp-wst-sdk-R-1.5.5-200708291442 out of RSA compatibility.<br>
</body>
</html>

--------------060103090102040007080002
Content-Type: text/xml;
name="MyClassPortType.wsdl"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="MyClassPortType.wsdl"

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjx3c2Rs OmRlZmluaXRp
b25zIG5hbWU9Ik15Q2xhc3NQb3J0VHlwZSINCgl0YXJnZXROYW1lc3BhY2U9 Imh0dHA6Ly9w
YXBhcGFwYS9hYnN0cmFjdC9NeUNsYXNzUG9ydFR5cGUiDQoJeG1sbnM6dG5z PSJodHRwOi8v
ZGl0LnVwbS5lcy9lamVtcGxvcy9kZWZpbml0aW9ucy9hYnN0cmFjdCINCgl4 bWxuczp3c2Rs
PSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93c2RsLyIgICAgICAgICAg CQkNCiAgICB4
bWxuczpzb2FwPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93c2RsL3Nv YXAvIg0KICAg
IHhtbG5zOmh0dHA9Imh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzZGwv aHR0cC8iICAg
IA0KCXhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8xMC9YTUxT Y2hlbWEiICAg
ICAgICAgIAkJDQogICAgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAu b3JnL3dzZGwv
Ij4NCg0KICA8d3NkbDp0eXBlcz4gICAgICAgICAgCQkJDQogICAgPHhzZDpz Y2hlbWEgdGFy
Z2V0TmFtZXNwYWNlPSJodHRwOi8vZGl0LnVwbS5lcy9lamVtcGxvcy9kZWZp bml0aW9ucy9t
ZXNzYWdlcyIgDQogICAJCXhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcv MjAwMS9YTUxT
Y2hlbWEiDQogICAJCXhtbG5zOnhzZDE9Imh0dHA6Ly8vQmxhbmtNb2RlbC5l Y29yZSI+DQog
ICAgICAgICAgICAgICAgICAgCQkJDQogICAJPHhzZDppbXBvcnQgbmFtZXNw YWNlPSJodHRw
Oi8vL0JsYW5rTW9kZWwuZWNvcmUiIHNjaGVtYUxvY2F0aW9uPSIuLi9zY2hl bWFzL0JsYW5r
TW9kZWwueHNkIi8+DQogICAJPHhzZDppbXBvcnQgbmFtZXNwYWNlPSJodHRw Oi8vd3d3Lncz
Lm9yZy8yMDAxL1hNTFNjaGVtYSIvPiAgICAgIAkJCQkJCQ0KICAgPC94c2Q6 c2NoZW1hPgkN
CiAgPC93c2RsOnR5cGVzPg0KDQoNCg0KCQ0KCTx3c2RsOnBvcnRUeXBlIG5h bWU9Ik15Q2xh
c3NQb3J0VHlwZSI+DQogICAgPC93c2RsOnBvcnRUeXBlPiANCiAgCQkNCjwv d3NkbDpkZWZp
bml0aW9ucz4NCiAgICAgICAgICAgICAgICAgICAgICAgIA0KDQoNCiAgICA=
--------------060103090102040007080002
Content-Type: text/xml;
name="BlankModel.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="BlankModel.xsd"

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns:BlankModel="http:///BlankModel.ecore" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ecore:nsPrefix="BlankModel" ecore:package="BlankModel" targetNamespace="http:///BlankModel.ecore">
<xsd:element ecore:ignore="true" name="MyClass" type="BlankModel:MyClass"/>
<xsd:complexType name="MyClass"/>
</xsd:schema>

--------------060103090102040007080002--
Re: Help with WSDL Validation please, any rules listing? [message #204732 is a reply to message #204710] Mon, 19 November 2007 22:12 Go to previous messageGo to next message
Lawrence Mandel is currently offline Lawrence Mandel
Messages: 486
Registered: July 2009
Senior Member
Hi Juan,

The errors you're seeing are Web Service Interoperability (WS-I)
compliance errors. Your WSDL document is valid. You can disable WS-I
validation under Window->Preferences->Web Services->Profile Compliance and
Validation. Set both WS-I AP and WS-I SSBP to Ignore compliance.

If you do want to get rid of the errors try removing the import for the
schema for schema.

<xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>

This line is unncessary as the schema types are implicitly imported and
I've seen this cause problems with tools before.

Lawrence
Re: Help with WSDL Validation please, any rules listing? [message #204744 is a reply to message #204732] Tue, 20 November 2007 10:51 Go to previous messageGo to next message
Juan Pedro Silva is currently offline Juan Pedro Silva
Messages: 258
Registered: July 2009
Senior Member
Thank you Lawrence, you nailed it!!.
I had been through the WS-I profile but haven't noticed that rule. I'm
interested in following it, so I'll keep using the validation option
(thanks for it, it's great).

Just out of curiosity, was I right about the numbering of the rules?,
does it follow the WS-I numbering?.
I'm asking this because, although I wasn't able to find a rule 2122, the
BP2102 matches WS-I's rule 2102.

Thank you again.


lmandel@ca.ibm.com escribió:
> Hi Juan,
>
> The errors you're seeing are Web Service Interoperability (WS-I)
> compliance errors. Your WSDL document is valid. You can disable WS-I
> validation under Window->Preferences->Web Services->Profile Compliance and
> Validation. Set both WS-I AP and WS-I SSBP to Ignore compliance.
>
> If you do want to get rid of the errors try removing the import for the
> schema for schema.
>
> <xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
>
> This line is unncessary as the schema types are implicitly imported and
> I've seen this cause problems with tools before.
>
> Lawrence
>
Re: Help with WSDL Validation please, any rules listing? [message #204778 is a reply to message #204744] Wed, 21 November 2007 03:46 Go to previous message
Lawrence Mandel is currently offline Lawrence Mandel
Messages: 486
Registered: July 2009
Senior Member
>Just out of curiosity, was I right about the numbering of the rules?,
>does it follow the WS-I numbering?.
>I'm asking this because, although I wasn't able to find a rule 2122, the
>BP2102 matches WS-I's rule 2102.

It's possible that this rule is out of date. The WS-I test tools were
originally written for the WS-I Basic Profile 1.0. The Basic Profile is
now at version 1.2 (looks like v2.0 is on the way) and was refactored
splitting out a number of assertions into the Simple SOAP Binding Profile
(SSBP).

Lawrence
Previous Topic:Programmatically do XML Catalog contributions in WST
Next Topic:Line delimiters
Goto Forum:
  


Current Time: Sat Oct 25 03:35:28 GMT 2014

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

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