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