John_Ogle_45372
Apr 19, 2010Nimbostratus
HTTP:Respond issue - how to escape characters??
Hello,
I am having trouble adding some html data in my HTTP::Respond command. I basically used the example in the wiki, which does work by itself. I then just swapped out the txt in the "body" but it's not taking it. I'm wondering if certain characters need to be escaped, etc. Any ideas on how to get this working with the desired XML response show below? It definitely doesn't like the first XML header line. It looks like it is trying to interpret it and not just display the XML error message.
Not working:
HTTP::respond 200 content \
"
Apology Page
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
200
Back end systems failed to Respond
WebService deployed on Back end systems failed to Respond
"
Sample from wiki:
Apology Page
We are sorry, but the site you are looking for is temporarily out of service
If you feel you have reached this page in error, please try again.