Hi, I need to initiate a REST service on a PC server, after a RPG job--
There are a set of JSON requests available on the PC server.
I had a look on IBM developerworks that gives very good examples how to
initiate a REST service.
1)The first one is a Authentication call.
I managed to make the authentication call with the supplied login
credentials (I get a "SUCCESS" XML back)
Uri = <url with the user and password supplied>
Uri2= <url with the actual call ti initate the job on the PC>
tHandle_A = axiscTransportCreate(uri:AXISC_PROTOCOL_HTTP11);
if (tHandle_A = *NULL);
PRINT ('TransportCreate() failed');
propBuf = 'GET' + X'00';
2)I'm struggling to find a way to pass this Authentication handle/token
(tHandle_A) back to the next call that initiates the actual service.
In the next call, that will initiate the job on the PC server, I create
new Handle , with a new URL (Uri2) to pass the necessary info to be able to
make the call .
I tried to rather set the authentication properties on the second call by
That doesn't work.
What I need is something like this: rc =axiscTransportSetProperty(
Where I pass the original handle (tHandle_A) that I got when I
authenticated with the first call.
Or any other method to supply the authentication token with the next call.
Any advice would be appreciated.
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
To post a message email: RPG400-L@xxxxxxxxxxxx<mailto:RPG400-L@xxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxx<mailto:RPG400-L-request@xxxxxxxxxxxx>
Before posting, please take a moment to review the archives
Please contact support@xxxxxxxxxxxx<mailto:support@xxxxxxxxxxxx> for any subscription related
Help support midrange.com<http://midrange.com> by shopping at amazon.com<http://amazon.com> with our affiliate