Skip to main content

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.

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

For More Information