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

RE: Help consume Web Service




Nelson,

Your suggestion of another FAQ document has been scheduled.

Thanks,

Thomas.

ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 19.06.2009 14:08:15:

> Thomas, This looks like the basis for another great FAQ.  It took me
> days of poking around in the dark initially to figure out how I was
> supposed to use the stub once I had it generated.  A step-by-step guide
> like this would be oh so helpful to newbies like us.
>
> Thanks for your help,
> Nelson Smith
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> thomas.raddatz@xxxxxx
> Sent: Friday, June 19, 2009 2:57 AM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: Help consume Web Service
>
>
>
>
> Alvaro (hopefully that is your first name),
>
> I attached a sample program to demonstrate how to call your web service.
> Basically you take the stub module generated by WSDL2RPG, compile it and
> then link it to a service program. Then you proceed with writing the
> application program that wants to use the web service. That module has
> to
> include the generated stub module as a copy book. Of course that does
> not
> work unless you set a compiler condition before the copy statement. In
> your
> cases that is:
>
>    /DEFINE PROTOTYPE_WSMP1_7NP
>    /COPY QWSDL2RPG,WSMP1_7NP
>    /UNDEFINE PROTOTYPE_WSMP1_7NP
>
> With that condition the compiler includes only the prototype part of the
> generated stub module.
>
> Feel free to look at the attached sample program. At the top of the
> program
> you will find the creation commands (CRTRPGMOD and CRTPGM). The syntax
> looks a bit strange but macthes the requirements of my STRPREPRC command
> that I use to create all my objects. I recommend to start the debugger
> for
> the sample program after you compiled and linked it tand set a
> breakpoint
> on the statement that calls afiliadosSaludMP_consultarAfiliado(). When
> the
> program stops at the breakpoint press F10 (single step) and then look at
> 'impl_consultarAfiliadoRpc' to see what the web service returned.
>
> In case of problems add the following line in order to enable the HTTP
> API
> debug log:
>
>    afiliadosSaludMP_setHttpDebug(*ON:
> 'path_where_you_want_to_put_the_debug_log');
>
> Hope that helps.
>
> Regards,
>
> Thomas
>
>
************************************************************************************************************************************************************************************************************

> This message originates from Lincare Holdings Inc. It contains
> information which may be confidential or privileged and is intended
> only for the individual or entity named above.
> It is prohibited for anyone else to disclose, copy, distribute or
> use the contents of this message.
> All personal messages express views solely of the sender, which are
> not to be attributed to Lincare Holdings Inc., and may not be copied
> or distributed without this disclaimer.
> If you received this message in error, please notify us immediately
> at MailAdmin@xxxxxxxxxxx or (800) 284-2006.
>
************************************************************************************************************************************************************************************************************

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


--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a criminal
offence. Please delete if obtained in error and email confirmation to the sender.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------