Hi Sam, On Thu, Sep 16, 2010 at 05:37:57PM +1200, Sam Pipe wrote: > Hi, > > This is a long shot but has anyone every been able to test a simple soap > service using the httpchk option in haproxy?.. If so any examples around? > > I've tried a few over using the \r\n but had no luck.. > > eg.. > > option httpchk POST /wsdl/NAL/bp1.0 HTTP/1.1\r\nAccept-Encoding: > gzip,deflate\r\nContent-Type: text/xml;charset=UTF-8\r\nSOAPAction: > ""\r\nUser-Agent: Jakarta Commons-HttpClient/3.1\r\nHost: > 10.119.37.250\r\nContent-Length: 527\r\n\r\n<soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser=" > http://www.bla.co.nz/xsd/serviceprovisioning"><soapenv:Header/><soapenv:Body><ser:query><ser:providerCode>bla</ser:providerCode><ser:line><ser:exchangeID > exchangeProvider="TEL"><ser:exchangeID>AT2</ser:exchangeID></ser:exchangeID><ser:mpfID>L038-07-011</ser:mpfID></ser:line><ser:phoneNumber>99628030</ser:phoneNumber><ser:queryPort>true</ser:queryPort><ser:queryPhone>true</ser:queryPhone></ser:query></soapenv:Body></soapenv:Envelope>\r\n\r\n
Wow, I'm not sure anyone has ever attempted to do that yet. This is a perfect candidate for an extension of the check ! One hint is that you should escape all your spaces. Also, I strongly suggest that you try with printf+netcat first from the command line, you'll save a lot of time ! Regards, Willy