[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help consume Web Service
Alvaro,
I cannot see why you should not get back the web service data. The questions I have are:
What happens in impl_consultarAfiliadoReturnStart()? Is MultiRef_put() executed when 'name' equals
'consultarAfiliadoReturn'?
if (depth = 1 and
name = 'consultarAfiliadoReturn'
);
if (MultiRef_isReference(attrs));
MultiRef_put(
attrs
: http_parser_get_userdata()
: depth
: namespace
: name
: path
: http_parser_get_start_cb()
: http_parser_get_end_cb());
return;
endif;
endif;
What happens in SOAPMessage_Envelope()? Is the http_parser_switch_cb(...) statement executed?
when (name = 'multiRef' and MultiRef_isData(attrs));
http_parser_switch_cb(
*NULL
: MultiRef_getStartCallback()
: MultiRef_getEndCallback());
return;
Is it possible to send the WSDL file to me? I would like to try to set up a mock Web Service with
soapUI in order to debug the problem.
Thomas.
Alvaro Orlando Salazar Martinez schrieb:
> Thanks Thomas, realize all the steps required and to make the Debug is not satisfactory the call to Web Service and returns the following error:
>
> "-1: El puntero no hace referencia a ninguna ubicació"
>
> returns data, but not because this error comes out.
>
> copy the result of the Log. Thank you
>
> Saludos,
>
> Alvaro Orlando Salazar Martínez
> Ingeniero Sistemas de Información
> Unidad de Tecnología Informática COOMEVA
> Certificados ISO 9001 - Valorados CMMI Nivel 3
> www.coomeva.com.co
> Teléfono: (57) 2- 333 0000 Ext. 1293
> Dirección: Calle 13 No. 57 - 50
> Cali - Valle
> Colombia
>
> Unidad de Tecnología Informática Coomeva
> **************************************************
> Comprometidos con el mejoramiento de la productividad, con soluciones informáticas fiables, prácticas e innovadoras.
>
> Favor piense en el medioambiente, antes de imprimir este mensaje
>
> -----Mensaje original-----
> De: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] En nombre de thomas.raddatz@xxxxxx
> Enviado el: 2009-06-19 08:22
> Para: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Asunto: 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
> -----------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------