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

Re: WSDL2RPG and cookies



Folks,

Changing *INLR in Kjartan's program shouldn't have any impact on this. 
At least, I can't see how it would??


On 9/12/2011 11:11 AM, Mike Krebs wrote:
> Put a RETURN in the first program before you hit *INLR.
>
>    Return;
>    *inlr = *on;
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Kjartan Þór Guðmundsson
> Sent: Monday, September 12, 2011 10:10 AM
> To: HTTPAPI and FTPAPI Projects
> Subject: RE: WSDL2RPG and cookies
>
> If I remove the*INLR = *ON; then I get RNF7023 error, The Compiler
> cannot determine how the program can end when I do the CRTRPGMOD.  I
> compile the program as the WSDL2RPG generator suggest.  Is there
> another way?
>
> Kjartn
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
> Sent: 12. september 2011 14:57
> To: HTTPAPI and FTPAPI Projects
> Subject: RE: WSDL2RPG and cookies
>
> Two separate programs or one program with two procedures? One does
> the login, one does the send of data? Did you seton LR after logging
> in and then end the first program call?
>
> I've been very confused sometimes about how initialization works (so
> I could be wrong) but I think if you set on LR, the static variables
> get initialized when you call the program a second time. ILE treats
> this the same as it did for RPG in the old days. I am not sure if
> that includes the service program HTTPAPI - though it appears to be
> the case.
>
> So, don't set on LR the first time around and see if the program
> sends the cookies back.
>
> Another easy thing to do would be to persist the cookies as suggested
> earlier and see if that solves problem. Then you at least know
> HTTPAPI and WSDL2RPG are not doing anything they shouldn't.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------