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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | WSDL document contains no <portType> definitions. |
Code | WSDL_V200 |
Type | Validation |
Rule System | Semantic |
Broad Category | Port Types |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | wsdl semantic validation port type |
Suggested Fixes
- Ensure that a <portType> child element exists in the root <definitions> element.