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 12:55 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro Silva
Messages: 247
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--
 
Read Message
Read Message
Read Message
Previous Topic:Dynamic Web Porject wb-resource...
Next Topic:How to open URL contents in editor.
Goto Forum:
  


Current Time: Wed May 22 09:22:42 EDT 2013

Powered by FUDForum. Page generated in 0.04725 seconds