[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ftpapi Digest, Vol 32, Issue 23
Your Webservices being up is something you'd probably handle on the
Iseries with an app like MPLUS or write your own system job or
activity and appropriate response monitoring.
Mike Anfinson Iseries-Tech-Admin
FCStone 515/223-3796
Cell 515/537-6409
MANFINSON@xxxxxxxxxxx
ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
02/25/2009 12:00 PM
Please respond to
ftpapi@xxxxxxxxxxxxxxxxxxxxxx
To
ftpapi@xxxxxxxxxxxxxxxxxxxxxx
cc
Subject
Ftpapi Digest, Vol 32, Issue 23
Send Ftpapi mailing list submissions to
ftpapi@xxxxxxxxxxxxxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
http://www.scottklement.com/mailman/listinfo/ftpapi
or, via email, send a message with subject or body 'help' to
ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
You can reach the person managing the list at
ftpapi-owner@xxxxxxxxxxxxxxxxxxxxxx
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ftpapi digest..."
Today's Topics:
1. RE: Time Out Parm on HTTP_POST_XML() (Peter Connell)
2. Re: Time Out Parm on HTTP_POST_XML() (Scott Klement)
3. RE: Time Out Parm on HTTP_POST_XML() (Mike Krebs)
4. RE: Time Out Parm on HTTP_POST_XML() (Behzad Hosseinzadeh)
----------------------------------------------------------------------
Message: 1
Date: Wed, 25 Feb 2009 06:15:11 +1100
From: "Peter Connell" <Peter.Connell@xxxxxxxxxxxxxxxxx>
Subject: RE: Time Out Parm on HTTP_POST_XML()
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
<C435E8FD373B4643BA2F68BA9939A74703D01E@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
See examples in LIBHTTP, e.g. EXAMPLE17,18,19 and 20
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Behzad
Hosseinzadeh
Sent: Wednesday, 25 February 2009 6:05 a.m.
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Time Out Parm on HTTP_POST_XML()
I am using the http_post_xml() to communicate to a web server. I
would
like to use the http_timeout. Could anyone who has used the timeout
parm
before or has the knowledge of it, tell me the following please:
1- how it can be used (if there is any example)
2- what is the default value
3- where I can set a different value as default timeout
threshold.
These are the conditions that I would like to check for in my program
upon using http_post_xml():
* If the Web Server is down that I am trying to
communicate
* If the server is up but the webservice program is
not
communicating
* If they are both up but I am not getting any
response back
(timeout)
Any assistance is greatly appreciated.
Thanks
Behzad
######################################################################
###############
This correspondence is for the named person's use only. It may contain
confidential or legally privileged information, or both. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this correspondence in error, please immediately delete
it from your system and notify the sender. You must not disclose, copy
or rely on any part of this correspondence if you are not the intended
recipient. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with
authority, states them to be the views of Veda Advantage. If you need
assistance, please contact Veda Advantage on either :- Australia
133124 or New Zealand +64 9 367 6200
------------------------------
Message: 2
Date: Tue, 24 Feb 2009 13:45:48 -0600
From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
Subject: Re: Time Out Parm on HTTP_POST_XML()
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <49A44E6C.7020401@xxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
Behzad Hosseinzadeh wrote:
> 1- how it can be used (if there is any example)
>
It's a parameter containing a number of seconds that HTTPAPI should
sit
and wait before giving up. You just pass the number of seconds, and
if
HTTPAPI can't connect, or is connected but receives no bytes in that
many seconds, it will give up.
> 2- what is the default value
>
Normally, 60 seconds. It's controlled by the HTTP_TIMEOUT constant in
the CONFIG_H source member.
> 3- where I can set a different value as default timeout
> threshold.
You can change the default by editing the CONFIG_H source member and
recompiling everything that uses it (including HTTPAPI itself, just
call
the INSTALL program.)
However, I don't really see the value in changing the default... If
you
have a particular app that needs a different timeout, just pass a
different number of seconds in that application.
> These are the conditions that I would like to check for in my
program
> upon using http_post_xml():
> * If the Web Server is down that I am trying to communicate
That's tricky... HTTPAPI doesn't really know whether the web server
is
down. All it knows is whether it can or can't communicate with it.
For
example, someone could come and pull out the network cable to the
system
running HTTPAPI. The Web server might still be up -- but HTTPAPI
can't
communicate with it -- it has know way of knowing whether it's up or
not.
> * If the server is up but the webservice program is not
> communicating
Typically, a web service will send you back an error if the server is
up
but the application isn't responding. However, that's not something
HTTPAPI has any control over -- it's on the server side.
> * If they are both up but I am not getting any response back
> (timeout)
If HTTPAPI can't get a response, how can it possibly know whether the
server is up?!
------------------------------
Message: 3
Date: Tue, 24 Feb 2009 13:56:27 -0600
From: "Mike Krebs" <mkrebs@xxxxxxxxxxxxxxxxxx>
Subject: RE: Time Out Parm on HTTP_POST_XML()
To: "'HTTPAPI and FTPAPI Projects'" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <002001c996b9$fdfd4580$f9f7d080$@com>
Content-Type: text/plain; charset="us-ascii"
The default is defined in CONFIG_H. It is defined to be a constant 60.
>From the archives (reply from Scott)...
******************
HTTP_TIMEOUT is the name of a named constant that contains the
*default*
timeout value.
However, you can change the timeout value on a per-request basis by
passing a number of seconds in the peTimeout parameter to any of the
HTTP_url_xxxx() APIs in HTTPAPI.
With that in mind, it should be a trivial matter to create a record in
a
file containing a number of seconds, read that file, and pass the
value
to http_url_xxxx() to control the time out.
******************
I think Scott has written a couple times about the problems of
checking if
the servers are up. When it comes down to it, either your web service
request completes or not. That is available via the return codes in
HTTPAPI
and from parsing your output.
If you want a "complete" trouble shooter...write a ping checker (paid
subscription
required==>http://systeminetwork.com/article/monitor-tcpip-connections
-chkho
st ), then use HTTPAPI to connect and see if you get a good result or
you
timeout. The only way to check if a web service is working is to see
if it
is working!
Mike Krebs
> I am using the http_post_xml() to communicate to a web server. I
> would
> like to use the http_timeout. Could anyone who has used the timeout
> parm
> before or has the knowledge of it, tell me the following please:
>
> 1- how it can be used (if there is any example)
>
> 2- what is the default value
>
> 3- where I can set a different value as default timeout
threshold.
>
------------------------------
Message: 4
Date: Tue, 24 Feb 2009 14:10:08 -0600
From: "Behzad Hosseinzadeh" <BHosseinzadeh@xxxxxxxxx>
Subject: RE: Time Out Parm on HTTP_POST_XML()
To: <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID:
<E7372DC3031EC24F839892992E8BC3C40230F6FD@xxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
I thank everyone for prompt response. I am good to go. Thanks again
Behzad
-------------- next part --------------
I thank everyone for prompt response. I am good to go. Thanks again
Behzad
------------------------------
----------------------------------------------------------------------
-
This is the FTPAPI mailing list digest. To unsubscribe, go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------
-
End of Ftpapi Digest, Vol 32, Issue 23
**************************************
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------