Skip to main content

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).

PropertyValue
EnabledYes
Maximum SeverityError
MessagePort type <operation> does not contain any of the following elements: <input>, <output>, or <fault>.
CodeWSDL_V204
TypeValidation
Rule SystemSemantic
Broad CategoryPort Types
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagswsdl 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.

For More Information