Consume Websocket endpoint in webMethods

A websocket does not work that way. Refer to How to configure WebSockets on Integration Server for a guide in setting up a websocket client on IS (I’m assuming that’s what you want given the brief info you’ve shared.)

WIth websockets, the interactions are asynchronous. Client sends a message and gets an ack. Later, the server will send a message to your callback. There is where you’ll handle a “response”.