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

RE: Help consume Web Service



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
-----------------------------------------------------------------------
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V5R4M0

New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: miempresa.COM.CO
DNS server found: 199.9.9.9
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /WsSaludMP/services/afiliadosSaludMP HTTP/1.1
Host: midireccionIp:mipuerto
User-Agent: http-api/1.23
Expect: 100-continue
Content-Length: 519
Content-Type: text/xml
SOAPAction:  


recvresp(): entered
HTTP/1.1 100 Continue


SetError() Ñ13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:impl="http://midireccionIp:mipuerto/WsSaludMP/services/afiliadosSaludMP"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Body><consultarAfiliado soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";><tipoDoc xsi:type="xsd:string">CC</tipoDoc><id xsi:type="xsd:string">11111111</id></consultarAfiliado></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Sat, 20 Jun 2009 22:48:14 GMT


SetError() Ñ13: HTTP/1.1 200 OK
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
84d

chunk size = 2125
get_chunk_size returned 2125
calling comm_blockread
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <soapenv:Body>
  <consultarAfiliadoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
   <consultarAfiliadoReturn href="#id0"/>
  </consultarAfiliadoResponse>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xsi:type="ns1:Afiliado" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="co.com.miempresa.WsSaludMP.modelo.afiliado">
   <ciudadCorrespondencia xsi:type="xsd:long">76001</ciudadCorrespondencia>
   <ciudadResidencia xsi:type="xsd:long">76001</ciudadResidencia>
   <codRetorno xsi:type="xsd:long">1</codRetorno>
   <correoElectronico xsi:type="xsd:string">                                                            </correoElectronico>
   <descRetorno xsi:type="xsd:string">Consulta Exitosa</descRetorno>
   <dirCorrespondencia1 xsi:type="xsd:string">CRA 99 9-99                   </dirCorrespondencia1>
   <dirCorrespondencia2 xsi:type="xsd:string">                              </dirCorrespondencia2>
   <dirResidencia1 xsi:type="xsd:string">CRA mi direccion aparece                  </dirResidencia1>
   <dirResidencia2 xsi:type="xsd:string">                              </dirResidencia2>
   <nombreCompleto xsi:type="xsd:string">SALAZAR MARTINEZ ALVARO O     </nombreCompleto>
   <numDocumento xsi:type="xsd:long">11111111</numDocumento>
   <primerApellido xsi:type="xsd:string">SALAZAR             </primerApellido>
   <primerNombre xsi:type="xsd:string">ALVARO              </primerNombre>
   <segundoApellido xsi:type="xsd:string">MARTINEZ            </segundoApellido>
   <segundoNombre xsi:type="xsd:string">O                   </segundoNombre>
   <telfCorrespondencia xsi:type="xsd:string">3333333     </telfCorrespondencia>
   <telfResidencia xsi:type="xsd:string">3333333     </telfResidencia>
   <tipoDocumento xsi:type="xsd:string">CC</tipoDocumento>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>
comm_blockread returned 2125
INFO: element processing has been delegated for element: <consultarAfiliadoResponse>
INFO: element processing has been delegated for element: <consultarAfiliadoReturn>
INFO: delegation of element processing has been stopped for element: <consultarAfiliadoReturn>
INFO: delegation of element processing has been stopped for element: <consultarAfiliadoResponse>
INFO: element processing has been delegated for element: <multiRef>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------