Skip to main content

at-least-one-port-type

Overview

This rule belongs to the wsdl-validation ruleset and states that:

A WSDL document must consist of at least one <portType> definition nested as a child element directly under the root <definitions> element. A port type serves as an interface definition, specifying the available service operations and their associated input and output messages. Without the <portType>, therefore, there would be no way to define the operations that the service exposes.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageWSDL document contains no <portType> definitions.
CodeWSDL_V200
TypeValidation
Rule SystemSemantic
Broad CategoryPort Types
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagswsdl semantic validation port type

Suggested Fixes

  • Ensure that a <portType> child element exists in the root <definitions> element.

For More Information