Hi
I’m trying to modify an xml body to be used in a HTTP request activity, if a variable is empty it should be removed from the body.
Normally I would use the body as a string directly in the http request, but here I need to generate the body as a string first, and it seems that my normal procedure isn’t working.
Normally I would copy the body from SoapUI and turn it into a string using double qoutes
This body
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:dtor=“urn:microsoft-dynamics-schemas/page/dtorderkort”>
soapenv:Header/
soapenv:Body
dtor:ReadMultiple
dtor:filter
dtor:FieldReg_No</dtor:Field>
would be like this
“<soapenv:Envelope xmlns:soapenv=”“http://schemas.xmlsoap.org/soap/envelope/”" xmlns:dtor=““urn:microsoft-dynamics-schemas/page/dtorderkort””> soapenv:Header/ soapenv:Body> dtor:ReadMultiple dtor:filter dtor:Field>Reg_No</dtor:Field>"
with extra " where there already is ", but when I try the same in a string variable, the extra " is turned into a
like this
“<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/\” xmlns:sal="urn:microsoft-dynamics-schemas/page/salgsordre90">
I already tried changing the " with single qoutes, but that doesn’t work either.
Any good ideas?