Re: SOAP service healthcheck

2018-12-07 Thread Māra Grīnberga
Thanks for the tip!

Mara

On Sat, Dec 8, 2018, 00:00 Baptiste  Hi,
>
> You can also forge a http post with the tcp-check. This would be less
> hacky.
>
> Baptiste
>
>
> Le jeu. 6 déc. 2018 à 09:11, Māra Grīnberga  a écrit :
>
>> I mean, thanks! I'll look into it!
>>
>> Mara
>>
>> On Thu, Dec 6, 2018, 10:04 Jarno Huuskonen >
>>> Hi,
>>>
>>> On Thu, Dec 06, Māra Grīnberga wrote:
>>> > I'm new to Haproxy and I've a task for which I can't seem to find a
>>> > solution online. Probably, I'm not looking in the right places.
>>> > I need to check if a SOAP service responds before sending requests to
>>> the
>>> > server. I've read about this option:
>>> >option httpchk GET /check
>>> > http-check expect string OK
>>> > I think, it's what I need. But is there a way to pass SOAP envelope to
>>> this
>>> > "/check" service?
>>>
>>> Do you mean POST to /check where post body is the SOAP envelope ?
>>>
>>> > Any suggestions and help would be appreciated!
>>>
>>> I think you can (ab)use http version to send body with option httpchk
>>> (
>>> https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#option%20httpchk
>>> )
>>>
>>> One example for sending xml post:
>>> https://discourse.haproxy.org/t/healthcheck-with-xml-post-in-body/733
>>>
>>> -Jarno
>>>
>>> --
>>> Jarno Huuskonen
>>>
>>


Re: SOAP service healthcheck

2018-12-07 Thread Christopher Cox

tcp-check is what we used for this.

On 12/7/18 3:59 PM, Baptiste wrote:

Hi,

You can also forge a http post with the tcp-check. This would be less hacky.

Baptiste


Le jeu. 6 déc. 2018 à 09:11, Māra Grīnberga > a écrit :


I mean, thanks! I'll look into it!

Mara

On Thu, Dec 6, 2018, 10:04 Jarno Huuskonen mailto:jarno.huusko...@uef.fi> wrote:

Hi,

On Thu, Dec 06, Māra Grīnberga wrote:
 > I'm new to Haproxy and I've a task for which I can't seem to
find a
 > solution online. Probably, I'm not looking in the right places.
 > I need to check if a SOAP service responds before sending
requests to the
 > server. I've read about this option:
 >        option httpchk GET /check
 >         http-check expect string OK
 > I think, it's what I need. But is there a way to pass SOAP
envelope to this
 > "/check" service?

Do you mean POST to /check where post body is the SOAP envelope ?

 > Any suggestions and help would be appreciated!

I think you can (ab)use http version to send body with option
httpchk

(https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#option%20httpchk)

One example for sending xml post:
https://discourse.haproxy.org/t/healthcheck-with-xml-post-in-body/733

-Jarno

-- 
Jarno Huuskonen






Re: SOAP service healthcheck

2018-12-07 Thread Baptiste
Hi,

You can also forge a http post with the tcp-check. This would be less hacky.

Baptiste


Le jeu. 6 déc. 2018 à 09:11, Māra Grīnberga  a écrit :

> I mean, thanks! I'll look into it!
>
> Mara
>
> On Thu, Dec 6, 2018, 10:04 Jarno Huuskonen 
>> Hi,
>>
>> On Thu, Dec 06, Māra Grīnberga wrote:
>> > I'm new to Haproxy and I've a task for which I can't seem to find a
>> > solution online. Probably, I'm not looking in the right places.
>> > I need to check if a SOAP service responds before sending requests to
>> the
>> > server. I've read about this option:
>> >option httpchk GET /check
>> > http-check expect string OK
>> > I think, it's what I need. But is there a way to pass SOAP envelope to
>> this
>> > "/check" service?
>>
>> Do you mean POST to /check where post body is the SOAP envelope ?
>>
>> > Any suggestions and help would be appreciated!
>>
>> I think you can (ab)use http version to send body with option httpchk
>> (
>> https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#option%20httpchk
>> )
>>
>> One example for sending xml post:
>> https://discourse.haproxy.org/t/healthcheck-with-xml-post-in-body/733
>>
>> -Jarno
>>
>> --
>> Jarno Huuskonen
>>
>


Re: SOAP service healthcheck

2018-12-06 Thread Māra Grīnberga
I mean, thanks! I'll look into it!

Mara

On Thu, Dec 6, 2018, 10:04 Jarno Huuskonen  Hi,
>
> On Thu, Dec 06, Māra Grīnberga wrote:
> > I'm new to Haproxy and I've a task for which I can't seem to find a
> > solution online. Probably, I'm not looking in the right places.
> > I need to check if a SOAP service responds before sending requests to the
> > server. I've read about this option:
> >option httpchk GET /check
> > http-check expect string OK
> > I think, it's what I need. But is there a way to pass SOAP envelope to
> this
> > "/check" service?
>
> Do you mean POST to /check where post body is the SOAP envelope ?
>
> > Any suggestions and help would be appreciated!
>
> I think you can (ab)use http version to send body with option httpchk
> (
> https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#option%20httpchk
> )
>
> One example for sending xml post:
> https://discourse.haproxy.org/t/healthcheck-with-xml-post-in-body/733
>
> -Jarno
>
> --
> Jarno Huuskonen
>


Re: SOAP service healthcheck

2018-12-06 Thread Māra Grīnberga
Hi,

Yes, I do.

m.


On Thu, Dec 6, 2018, 10:04 Jarno Huuskonen  Hi,
>
> On Thu, Dec 06, Māra Grīnberga wrote:
> > I'm new to Haproxy and I've a task for which I can't seem to find a
> > solution online. Probably, I'm not looking in the right places.
> > I need to check if a SOAP service responds before sending requests to the
> > server. I've read about this option:
> >option httpchk GET /check
> > http-check expect string OK
> > I think, it's what I need. But is there a way to pass SOAP envelope to
> this
> > "/check" service?
>
> Do you mean POST to /check where post body is the SOAP envelope ?
>
> > Any suggestions and help would be appreciated!
>
> I think you can (ab)use http version to send body with option httpchk
> (
> https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#option%20httpchk
> )
>
> One example for sending xml post:
> https://discourse.haproxy.org/t/healthcheck-with-xml-post-in-body/733
>
> -Jarno
>
> --
> Jarno Huuskonen
>


Re: SOAP service healthcheck

2018-12-06 Thread Jarno Huuskonen
Hi,

On Thu, Dec 06, Māra Grīnberga wrote:
> I'm new to Haproxy and I've a task for which I can't seem to find a
> solution online. Probably, I'm not looking in the right places.
> I need to check if a SOAP service responds before sending requests to the
> server. I've read about this option:
>option httpchk GET /check
> http-check expect string OK
> I think, it's what I need. But is there a way to pass SOAP envelope to this
> "/check" service?

Do you mean POST to /check where post body is the SOAP envelope ?

> Any suggestions and help would be appreciated!

I think you can (ab)use http version to send body with option httpchk
(https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#option%20httpchk)

One example for sending xml post:
https://discourse.haproxy.org/t/healthcheck-with-xml-post-in-body/733

-Jarno

-- 
Jarno Huuskonen



Re: SOAP service healthcheck

2018-12-05 Thread Bruno Henc

Hello,


One option is to implement a sidecar/watchdog service which queries the 
SOAP service directly and exposes a /check URI that HAProxy can use for 
the http-check.



I'm not sure if there's a direct way to POST data to the http check, I 
will let you know if I find one.



Hope this helps.


Best regards,


Bruno Henc


On 12/6/18 8:28 AM, Māra Grīnberga wrote:

Hi,

I'm new to Haproxy and I've a task for which I can't seem to find a 
solution online. Probably, I'm not looking in the right places.
I need to check if a SOAP service responds before sending requests to 
the server. I've read about this option:

       option httpchk GET /check
        http-check expect string OK
I think, it's what I need. But is there a way to pass SOAP envelope to 
this "/check" service?


Any suggestions and help would be appreciated!

Best regards,
Mara


SOAP service healthcheck

2018-12-05 Thread Māra Grīnberga
Hi,

I'm new to Haproxy and I've a task for which I can't seem to find a
solution online. Probably, I'm not looking in the right places.
I need to check if a SOAP service responds before sending requests to the
server. I've read about this option:
   option httpchk GET /check
http-check expect string OK
I think, it's what I need. But is there a way to pass SOAP envelope to this
"/check" service?

Any suggestions and help would be appreciated!

Best regards,
Mara