Re: HAProxy option httpchk - Soap?
Cheers Willy, If I get it going I'll post it up for an example! Sam On Fri, Sep 17, 2010 at 5:18 PM, Willy Tarreau wrote: > 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 > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ser=" > > http://www.bla.co.nz/xsd/serviceprovisioning > ">bla > > exchangeProvider="TEL">AT2L038-07-01199628030truetrue\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 > >
Re: HAProxy option httpchk - Soap?
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 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ser=" > http://www.bla.co.nz/xsd/serviceprovisioning";>bla exchangeProvider="TEL">AT2L038-07-01199628030truetrue\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
HAProxy option httpchk - Soap?
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\nhttp://schemas.xmlsoap.org/soap/envelope/"; xmlns:ser=" http://www.bla.co.nz/xsd/serviceprovisioning";>blaAT2L038-07-01199628030truetrue\r\n\r\n any pointers are most appricated.. Sam