Forum Discussion
John_Ogle_45372
Nimbostratus
Apr 19, 2010HTTP: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.
- hoolio
Cirrostratus
Hi John, - John_Ogle_45372
Nimbostratus
The curly braces helped somewhat but it looks like plain text:xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"200Back end systems failed to RespondWebService deployed on Back end systems failed to Respond - John_Ogle_45372
Nimbostratus
I just realized that the forum is also intrepreting the XML output I posted. I have attached a jpeg instead so that you can see exactly how I need the output to be displayed. I attached an additional jpeg as well to show the raw code snippet I have been experimenting with. Any help is very much appreciated. - hoolio
Cirrostratus
I don't see the attachment you've uploaded. I think you need to upload it and insert it in the post.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects