pre-defined-port-binding
Overview
This rule belongs to the wsdl-validation ruleset and states that:
A <port> element must specify the name of the <binding> it specifies an address for, using the binding attribute. The value of this attribute must match exactly with the name of a pre-defined <binding> element defined directly under the root <definitions> element.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | A corresponding <binding> could not be found for the specified <port> binding. |
| Code | WSDL_V601 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Ports |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | wsdl semantic validation binding attribute port |
Suggested Fixes
- Ensure that a <binding> element exists which is directly nested under the root <definitions> element and has the
nameattribute with value equal to one specified in the <port>bindingattribute. - Ensure that the value of
bindingattribute in <port> is not empty. - Ensure that the value of
bindingattribute has no typos. - Names are compared in a case-sensitive manner.
- Ensure that if the <binding> exists in a different namespace, the correct prefix for it is used when referencing it in the qualified name used in the
bindingattribute of the <port> element.