[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Can HTTPAPI handle a response sent to a URL



Scott,
Please excuse my ignorance with all of this. I'm just an old system/32
rpg programmer from back in the day.
Part of the web service request I'm sending is for a "response URL". The
request takes a while to run (5 minutes or so) on their server then they
send the results back to the "response URL" specified in another pipe. I
guess that would make me the server role at that point. Would I need to
setup a HTTP server on the iseries?
Any guidance would be appreciated.
Kenny

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Thursday, September 27, 2012 1:11 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Can HTTPAPI handle a response sent to a URL

Hi Kenny,

It depends on what you mean, exactly.

When an HTTP transaction takes place, there's always a request and a
response.  So any tool that's able to perform HTTP can handle a 
"request/response".   And a request/response is always sent to a 
specified URL.

But, it's unclear what role you're asking HTTPAPI to play.  Are you
asking for it to act as a client or server in the transaction? HTTPAPI
is only capable of taking the client role.

And when you refer to SOAP, what sort of role do you want it to take?   
It's able to send a SOAP message (Which is, after all, just a sequence
of bytes like anything else)  and it's able to receive a SOAP 
response.   However, it cannot automatically construct a SOAP message, 
or deconstruct one.  (Though, there is an XML parser included to help
with that.)  You'd have to write the code to do that yourself, or use an
add-on like Thomas Raddatz's WSDL2RPG.

HTTPAPI does not use the IBM HTTP server...    (Though the IBM HTTP 
server may be needed to configure the SSL support in the operating
system if you're looking to use SSL)

Please let me know if this answers your questions.


On 9/20/2012 12:12 PM, Kenny Keifer wrote:
>     Can HTTPAPI handle the soap request response sent to a specified
URL?
>     I'm not running a web server on the iseries and would need the
response
>     in a RPG program.
>
>     Kenny
>
>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------- 

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------