| [news.eclipse.webtools] [WSDL Validator] wsp:PolicyReference validation problems. |
|
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/#AttachingPolicyUsingWSDL1.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 |