non-empty-port-type-operation
Overview
This rule belongs to the wsdl-validation ruleset and states that:
Each <operation>, within a port type, should define at least one of the following child elements: <input>, <output>, or <fault>. These elements describe the messages associated with the operation, such as the input data, output data, or any potential error messages (faults).
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Port type <operation> does not contain any of the following elements: <input>, <output>, or <fault>. |
| Code | WSDL_V204 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Port Types |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | wsdl semantic validation input output fault operation port type |
Suggested Fixes
- For a one-way operation, ensure that the port type <operation> element contains the <input> child element.
- For request-response or solicit-response operations, ensure that the port type <operation> element contains the <input> as well as the <output> child elements and optionally the <fault> child element as well.
- For a notification operation, ensure that the port type <operation> element contains the <output> child element.