Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageA corresponding <portType> could not be found for the specified <binding> type.
CodeWSDL_V403
TypeValidation
Rule SystemSemantic
Broad CategoryBindings
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagswsdl 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 name attribute with value equal to one specified in the <binding> type attribute.
  • Ensure that the value of type attribute in <binding> is not empty.
  • Ensure that the value of type attribute 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 type attribute of the <binding> element.

For More Information