TCP Method Debug
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."
Basic Information
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.
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.
How to Set Padding Rules
Separator Message
Supports setting a separator between each parameter value in the message.
How to Set Separator Rules
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.
Raw (Text): Supports source code editing for designing the parameter values of input parameters.
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.
Settings
You can configure the request message encoding format, request data processing function, and the return data processing function under the settings tab.