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=261070.
Regards, Valentin
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
|