Forum Discussion
Help with SOAP Monitor
I've never had much luck with the SOAP monitor myself, but it is easy enough to do this with a standard HTTP or HTTPS monitor. A few notes on that though.
1, you have a content-length of 251 but no content. Did they give you anything that should be in the body of the POST(the POST data)? The request as shown above is not valid and will probably throw errors at a minimum because the content-length is off, and may fail because there needs to be data in the body of the post.
2, you have Connection: Keep-Alive but for the purpose of the monitor you probably want Connection: Close
That being said, this is how I do my SOAP monitors
Send String:
POST http://qaesb.nscorp.com/EAS/CLEDRTest HTTP/1.1\r\nAccept-Encoding: gzip,deflate\r\nContent-Type: text/xml;charset=UTF-8\r\nSOAPAction: \"/CLEDRTest.serviceagent/CLEDRTestSOAP1/CLEDRTest\"\r\nHost: qaesb.nscorp.com\r\nUser-Agent: Apache-HttpClient/4.1.1 (java 1.5)\r\nConnection: Close\r\n\r\nYour 251 bytes of post body needs to go here\r\n
Receive String:
Success (or whatever you want to look for in the response indicating success)
Lastly, as for validation, it depends if it is http or https. for http you can just telnet to the server on the http port and paste in your send string. If it is https, you will need to use openssl s_client -connect : and then paste in the string. When you do it this way, you need to convert all of the \r\n to a new line, and don't forget the double \r\n\r\n is a double new line(1 new line terminate the line, and then 1 blank line between the header and the body)
- mimlo_61970Oct 06, 2014Cumulonimbusand it looks like I left the content-length header out, you just need to squeeze a Content-Length: 251\r\n where you want it.
- mimlo_61970Oct 06, 2014Cumulonimbusand my cut and paste was a little happy, the first part, the POST, should be POST /EAS/CLEDRTest HTTP/1.1\r\n The hostname should not be in the POST, only the path
Recent Discussions
Related Content
* 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