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 w...@1wt.eu 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\nsoapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:ser=
http://www.bla.co.nz/xsd/serviceprovisioning
soapenv:Header/soapenv:Bodyser:queryser:providerCodebla/ser:providerCodeser:lineser:exchangeID
exchangeProvider=TELser:exchangeIDAT2/ser:exchangeID/ser:exchangeIDser:mpfIDL038-07-011/ser:mpfID/ser:lineser:phoneNumber99628030/ser:phoneNumberser:queryPorttrue/ser:queryPortser:queryPhonetrue/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