Skip to main content

TCP Method Debug

tip

To create a TCP protocol, start by creating a new TCP client. Once you've successfully saved it, you can then add a new TCP method under this client. If the development is already complete and you only need to debug and verify the functionality, you can go directly to the Debug tab to test the interface.

Create a New TCP Method

In the directory sidebar, select "More Operations" and then "Create New TCP Method."

image.png

Basic Information

caution

The TCP method’s service address is inherited from the parent client and cannot be modified directly. Changes must be made at the client level.

The Debug page also supports adding detailed descriptions of the interface.

image.png

Request Message

Supports fixed-length message, separator message, and raw (xml/json/text/) format request messages.

Fixed-Length Message

If the length is insufficient, you can set padding rules.

image.png

How to Set Padding Rules

image.png

Separator Message

Supports setting a separator between each parameter value in the message.

image.png

How to Set Separator Rules

image.png

Raw

When sending JSON, XML, or text formats, switch to the corresponding raw type.

Raw (json/xml): Supports visual editing for designing request messages with hierarchical JSON or XML structures.

image.png

image.png

Raw (Text): Supports source code editing for designing the parameter values of input parameters.

image.png

Post-response Operations

You can add assertions in post-response operations to verify the TCP response message with assertions. Click to learn about the use of assertions.

image.png

Settings

You can configure the request message encoding format, request data processing function, and the return data processing function under the settings tab.

image.png

Response Area

image.png