Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » [WSDL Validator] wsp:PolicyReference validation problems.
[WSDL Validator] wsp:PolicyReference validation problems. [message #483465] Tue, 01 September 2009 16:55 Go to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060507020800080008010700
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi everybody, I'm having trouble trying to validate a wsdl file with
wsp:PolicyReference elements.

I had some other problems regarding the order in which the elements
appeared within the document (wsp:PolicyReference elements had to appear
before any child elements), but I fixed that.
However, now the validator is reporting a:

/The 'ServiceInterface_PortType' port type specified for the
'OnePort_Binding' binding is undefined. Check the
'ServiceInterface_PortType' port type name and ensure it is defined.
/
when this port type is defined just above the binding:

<wsdl:portType name = 'ServiceInterface_PortType'>
<wsdl:operation name = 'FirstOperation'>
<wsdl:input message = 'tns:FirstOperationRequest'/>
<wsdl:output message = 'tns:FirstOperationResponse'/>
</wsdl:operation>
<wsdl:operation name = 'SecondOperation'>
<wsp:PolicyReference URI =
'http://examples.com/PolicyDocument.xmi#Policy3'/>
<wsdl:input message = 'tns:SecondOperationRequest'/>
<wsdl:output message = 'tns:SecondOperationResponse'/>
</wsdl:operation>
</wsdl:portType>

If I delete the policy reference, the whole wsdl document validates
correctly.
However, if I'm not mistaken, according to
http://www.w3.org/Submission/WS-PolicyAttachment/#AttachingP olicyUsingWSDL1.1
this is a valid place for a policy reference, isn't it?.
Which could be the cause of this behavior?.
I thank you all in advance for your help.
Best regards,
Juan Pedro

--------------060507020800080008010700
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, I'm having trouble trying to validate a wsdl file with
wsp:PolicyReference elements.<br>
<br>
I had some other problems regarding the order in which the elements
appeared within the document (wsp:PolicyReference elements had to
appear before any child elements), but I fixed that.<br>
However, now the validator is reporting a:<br>
<br>
<i>The 'ServiceInterface_PortType' port type specified for the
'OnePort_Binding' binding is undefined. Check the
'ServiceInterface_PortType' port type name and ensure it is defined. <br>
</i><br>
when this port type is defined just above the binding:<br>
<font face="Courier New, Courier, monospace"><br>
&lt;wsdl:portType name = 'ServiceInterface_PortType'&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;wsdl:operation name = 'FirstOperation'&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:input message = 'tns:FirstOperationRequest'/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:output message = 'tns:FirstOperationResponse'/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/wsdl:operation&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;wsdl:operation name = 'SecondOperation'&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsp:PolicyReference URI =
'<a class="moz-txt-link-freetext" href="http://examples.com/PolicyDocument.xmi#Policy3'/">http://examples.com/PolicyDocument.xmi#Policy3'/</a>&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:input message = 'tns:SecondOperationRequest'/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:output message = 'tns:SecondOperationResponse'/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/wsdl:operation&gt;<br>
&lt;/wsdl:portType&gt;<br>
<br>
</font>If I delete the policy reference, the whole wsdl document
validates correctly. <br>
However, if I'm not mistaken, according to
<a class="moz-txt-link-freetext" href=" http://www.w3.org/Submission/WS-PolicyAttachment/#AttachingP olicyUsingWSDL1.1"> http://www.w3.org/Submission/WS-PolicyAttachment/#AttachingP olicyUsingWSDL1.1</a>
this is a valid place for a policy reference, isn't it?.<br>
Which could be the cause of this behavior?. <br>
I thank you all in advance for your help.<br>
Best regards,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Juan Pedro<br>
</body>
</html>

--------------060507020800080008010700--
Re: [WSDL Validator] wsp:PolicyReference validation problems. [message #483488 is a reply to message #483465] Tue, 01 September 2009 17:46 Go to previous messageGo to next message
Valentin is currently offline ValentinFriend
Messages: 36
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_000A_01CA2B0A.8D134C80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Juan, can you please specify what WTP version you are using? I =
suspect it's a 3.0.4 or older, because in 3.0.5 and newer we've made the =
required changes to allow extensibility elements for all WSDL elements. =
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D261070.

Regards, Valentin
"Juan Pedro Silva" <jpsilvagallino@gmail.com> wrote in message =
news:h7jjlh$4lg$1@build.eclipse.org...
Hi everybody, I'm having trouble trying to validate a wsdl file with =
wsp:PolicyReference elements.

I had some other problems regarding the order in which the elements =
appeared within the document (wsp:PolicyReference elements had to appear =
before any child elements), but I fixed that.
However, now the validator is reporting a:

The 'ServiceInterface_PortType' port type specified for the =
'OnePort_Binding' binding is undefined. Check the =
'ServiceInterface_PortType' port type name and ensure it is defined.=20

when this port type is defined just above the binding:

<wsdl:portType name =3D 'ServiceInterface_PortType'>
<wsdl:operation name =3D 'FirstOperation'>
<wsdl:input message =3D 'tns:FirstOperationRequest'/>
<wsdl:output message =3D 'tns:FirstOperationResponse'/>
</wsdl:operation>
<wsdl:operation name =3D 'SecondOperation'>
<wsp:PolicyReference URI =3D =
'http://examples.com/PolicyDocument.xmi#Policy3'/>
<wsdl:input message =3D 'tns:SecondOperationRequest'/>
<wsdl:output message =3D 'tns:SecondOperationResponse'/>
</wsdl:operation>
</wsdl:portType>

If I delete the policy reference, the whole wsdl document validates =
correctly.=20
However, if I'm not mistaken, according to =
http://www.w3.org/Submission/WS-PolicyAttachment/#AttachingP olicyUsingWSD=
L1.1 this is a valid place for a policy reference, isn't it?.
Which could be the cause of this behavior?.=20
I thank you all in advance for your help.
Best regards,
Juan Pedro

------=_NextPart_000_000A_01CA2B0A.8D134C80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18812">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff text=3D#000000>
<DIV><FONT size=3D2 face=3DArial>Hi Juan, c</FONT><FONT size=3D2 =
face=3DArial>an you=20
please specify what WTP version you are using? I suspect it's a 3.0.4 or =
older,=20
because in 3.0.5 and newer we've made the required changes to allow=20
extensibility elements for all WSDL elements. See <A=20
href=3D"https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D261070">https://b=
ugs.eclipse.org/bugs/show_bug.cgi?id=3D261070</A>.</FONT> </DIV>
<DIV><FONT size=3D2 face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2 face=3DArial>Regards, Valentin</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; =
PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV>"Juan Pedro Silva" &lt;<A=20
=
href=3D"mailto:jpsilvagallino@gmail.com">jpsilvagallino@gmail.com</A>&gt;=
wrote=20
in message <A=20
=
href=3D"news:h7jjlh$4lg$1@build.eclipse.org">news:h7jjlh$4lg$1@build.ecli=
pse.org</A>...</DIV>Hi=20
everybody, I'm having trouble trying to validate a wsdl file with=20
wsp:PolicyReference elements.<BR><BR>I had some other problems =
regarding the=20
order in which the elements appeared within the document =
(wsp:PolicyReference=20
elements had to appear before any child elements), but I fixed=20
that.<BR>However, now the validator is reporting a:<BR><BR><I>The=20
'ServiceInterface_PortType' port type specified for the =
'OnePort_Binding'=20
binding is undefined. Check the 'ServiceInterface_PortType' port type =
name and=20
ensure it is defined. <BR></I><BR>when this port type is defined just =
above=20
the binding:<BR><FONT=20
face=3D"Courier New, Courier, monospace"><BR>&lt;wsdl:portType name =
=3D=20
'ServiceInterface_PortType'&gt;<BR>&nbsp;&nbsp;&nbsp; =
&lt;wsdl:operation name=20
=3D 'FirstOperation'&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;wsdl:input=20
message =3D =
'tns:FirstOperationRequest'/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;wsdl:output message =3D=20
'tns:FirstOperationResponse'/&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;/wsdl:operation&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;wsdl:operation name =
=3D=20
'SecondOperation'&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;wsp:PolicyReference URI =3D '<A class=3Dmoz-txt-link-freetext=20
=
href=3D"http://examples.com/PolicyDocument.xmi#Policy3'/">http://examples=
..com/PolicyDocument.xmi#Policy3'/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
&lt;wsdl:input message =3D=20
'tns:SecondOperationRequest'/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;wsdl:output message =3D=20
'tns:SecondOperationResponse'/&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;/wsdl:operation&gt;<BR>&lt;/wsdl:portType&gt; <BR><BR></FONT>If I =
delete=20
the policy reference, the whole wsdl document validates correctly.=20
<BR>However, if I'm not mistaken, according to <A =
class=3Dmoz-txt-link-freetext=20
=
href=3D" http://www.w3.org/Submission/WS-PolicyAttachment/#AttachingP olicy=
UsingWSDL1.1"> http://www.w3.org/Submission/WS-PolicyAttachment/#Attaching=
PolicyUsingWSDL1.1</A>=20
this is a valid place for a policy reference, isn't it?.<BR>Which =
could be the=20
cause of this behavior?. <BR>I thank you all in advance for your =
help.<BR>Best=20
=
regards,<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;=20
Juan Pedro<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000A_01CA2B0A.8D134C80--
Re: [WSDL Validator] wsp:PolicyReference validation problems. [message #483614 is a reply to message #483488] Wed, 02 September 2009 10:52 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020609010507020306080006
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Thanks Valentin for your answer.
I was using 3.0.4 in Eclipse Ganymede.
I'll update that.
Thanks again.

Valentin escribi
Previous Topic:Dynamic Web Porject wb-resource...
Next Topic:How to open URL contents in editor.
Goto Forum:
  


Current Time: Fri Dec 19 21:52:54 GMT 2014

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

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