Modify the body of a SOAP POST call in a web service node

I am using a service node to make a POST request in SOAP. Under the “Body” section, I can put my XML body there but I want to pass a variable in the XML, how would I do that?

For example, if a user types in “hello”, I want to capture that and be able to pass it into the body of my XML. I know in REST, I can do {{context.hello}} and put this into the URL but I am using SOAP (I have to). Right now whatever I type in the “Body” section it takes them as literal text.

1 Like

Accessing the context variables in SOAP API is same as that of REST API. There is no difference.

Ex : {{context.entities.entityname}}

Please refer below screenshot.

SOAP

Hope that helps

1 Like

we can use custom variables in a post API like
Check in the Image.

image

Hiii…

How to add conditions in body of service node this node has XML content… Please give reply on this ASAP.
Thanks in advance.

Hi @m.satish512,

We apologize for the delay.

However, we would like to know your requirement behind adding conditions in the request body.

Kindly elaborate your requirement to proceed further.

Regards,
Yoga Ramya.

It got resolved thanks for the reply.