---
title: "WS Port"
id: "ws-port"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/ws-port"
updated: 2026-12-01T00:43:38Z
---

# WS Port

## Object Functions

addOperation(operation)
Description

This script function will add an operation to the web service port.
 
Syntax

**addOperation(operation)**

* Parameters

[WSOperation](/articles/user-manual/WS-Operation) operation - The operation to be added.

* Returns

Nothing

* Scope

All

getDefinition()
Description

Returns the WS definition for this port.
 
Syntax

**getDefinition()**

* Parameters

None

* Returns

WSDefinition definition - The definition corresponding to this WS port.

* Scope

All

getName()
Description

Gets the name of this WS operation.
 
Syntax

**getName()**

* Parameters

None

* Returns

[String](/articles/user-manual/Data-Types-and-Formats) name - The name of this operation.

* Scope

All

getOperation(name)
Description

Returns the operation specified by the name parameter.
 
Syntax

**getOperation(name)**

* Parameters

[String](/articles/user-manual/Data-Types-and-Formats) name - The name of the operation to return for.

* Returns

[WSOperation](/articles/user-manual/WS-Operation) operation - The web service operation with the specified name.

* Scope

All

getOperationNames()
Description

Returns a list of operation names.
 
Syntax

**getOperationNames()**

* Parameters

None

* Returns

List&lt;[String](/articles/user-manual/Data-Types-and-Formats)&gt; operationNames - A list of the names of operations associated with this WS port.

* Scope

All

getOperations()
Description

Gets all the operations associated with this WS port.
 
Syntax

**getOperations()**

* Parameters

None

* Returns

[WSOperation](/articles/user-manual/WS-Operation) operations - A list of operations for this web service port.

* Scope

All

setDefinition(definition)
Description

Sets the definition for this WS port.
 
Syntax

**setDefinition(definition)**

* Parameters

WSDefinition definition - The web service definition to set for.

* Returns

Nothing

* Scope

All

setName(name)
Description

Sets a name to this ws operation.
 
Syntax

**setName(name)**

* Parameters

[String](/articles/user-manual/Data-Types-and-Formats) name - The name to set the ws operation for.

* Returns

Nothing

* Scope

All

setOperations(operations)
Description

Set the operations for this WS operation.
 
Syntax

**setOperations(operations)**

* Parameters

[WSOperation](/articles/user-manual/WS-Operation) operations - A list of operations for this web service port.

* Returns

Nothing

* Scope

All

 © Sepasoft. All rights reserved. 
 [Send feedback](mailto:support@clickhelp.com) on this topic to Sepasoft.