Utilice for i,v in pairs(result) do print(v) end, con el WS PHP funciona correctamente, pero con ASPX no.Lo que me despliega en consola es:~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.11 |~~~~~~~~~~~~~~~~~~~~~~~~~~(c) 2001-2010 The world wide DirectFB Open Source Community(c) 2000-2004 Convergence (integrated media) GmbH----------------------------------------------------------------(*) DirectFB/Core: Single Application Core. (2010-12-01 00:03)(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...(*) Direct/Thread: Started 'VT Flusher' (-1) [DEFAULT OTHER/OTHER 0/0] <8388608>...(*) DirectFB/FBDev: Found 'VESA VGA' (ID 0) with frame buffer at 0xd0000000, 1216k (MMIO 0x00000000, 0k)(*) Direct/Modules: suppress module 'linux_input'(*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...(*) DirectFB/Input: Keyboard 0.9 (directfb.org)(*) DirectFB/Genefx: MMX detected and enabled(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)(*) DirectFB/Core/WM: Default 0.3 (directfb.org)(*) FBDev/Mode: Setting 640x480 RGB32(*) FBDev/Mode: Switched to 640x480 (virtual 640x480) at 32 bit (RGB32), pitch 2560(#) DirectFBError [gingacc-systemio DFBDeviceScreen TestConfig error: ]: Not supported!(*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.TimeStamp: 0.702<?xml version="1.0"?><soap:Envelopexmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetData xmlns="http://tempuri.org/"><FamNro>5</FamNro></GetData></soap:Body></soap:Envelope>Conectado a 192.168.0.110 pela porta 8095--------------------Request:User-Agent: ncluasoap/MailScanner has detected a possible fraud attempt from "0.5.6.6" claiming to be MailScanner warning: numerical links are often malicious: 0.5.6.6Content-Type: text/xml; charset=utf-8SOAPAction: "http://tempuri.org/GetData"Host: 192.168.0.110Content-Length: 327<?xml version="1.0"?><soap:Envelopexmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetData xmlns="http://tempuri.org/"><FamNro>5</FamNro></GetData></soap:Body></soap:Envelope><?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetDataResponse xmlns="http://tempuri.org/"><GetDataResult><string>5,1,129</string><string>5,1,130</string><string>5,1,131</string><string>5,3,228</string><string xsi:nil="true" /></GetDataResult></GetDataResponse></soap:Body></soap:Envelope>La definicion WSDL es la siguiente:<wsdl:types>- <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">- <s:element name="GetData">- <s:complexType>- <s:sequence><s:element minOccurs="1" maxOccurs="1" name="FamNro" type="s:int" /></s:sequence></s:complexType></s:element>- <s:element name="GetDataResponse">- <s:complexType>- <s:sequence><s:element minOccurs="0" maxOccurs="1" name="GetDataResult" type="tns:ArrayOfString" /></s:sequence></s:complexType></s:element>- <s:complexType name="ArrayOfString">- <s:sequence><s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" /></s:sequence></s:complexType></s:schema></wsdl:types>El 31 de marzo de 2013 11:52, Manoel Campos da Silva Filho <manoelcampos@gmail.com> escribió:
Vc tentou fazer um for no result?
Ws aspx tem problemas até com outras implementações de soap, como o ksoap pra android. É preciso informar que o ws é aspx.Veja no terminal o código xml da resposta e envie aqui.
Obrigado. Fico feliz que o módulo esteja sendo útil.
Em 31/03/2013 11:37, "Marcos Juayek" <mjuayek@correo.um.edu.uy> escreveu:Prezado Manoel,Estoy usando el módulo NCLuaSoap para consumir el WS, el problema es que el WS me retorna un ComplexType del tipo ArrayOfString, cuando intento hacer print() del result de la función getResponse(), el LUA no me lo reconoce. Anteriormente probé con un WS en PHP, enviando un array de String y funciona correctamente, por lo que creo que el problema es el ComplexType que envía el ASPX.PD: Gracias Manoel por tu excelente trabajo con NCLuaSoap!!!Felices PascuasMarcos JuayekEl 31 de marzo de 2013 10:29, Manoel Campos da Silva Filho <manoelcampos@gmail.com> escribió:Veja meu módulo ncluasoap em ncluasoap.manoelcampos.com
Em 31/03/2013 01:37, "Marcos Juayek" <mjuayek@correo.um.edu.uy> escreveu:__________________________________________Lista de correo Ginga-argentina@lists.ourproject.orgEstimados, estoy intentando consumir un Web Service ASPX que me retorna un ComplexType ArrayOfString, no puedo hacer que el lua me lo tome, estoy usando tablas. Alguna sugerencia?
cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
Sitio web: http://comunidad.ginga.org.ar
Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo Ginga-argentina@lists.ourproject.org
cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
Sitio web: http://comunidad.ginga.org.ar
Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo Ginga-argentina@lists.ourproject.org
cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
Sitio web: http://comunidad.ginga.org.ar
Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo Ginga-argentina@lists.ourproject.org
cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
Sitio web: http://comunidad.ginga.org.ar
Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo Ginga-argentina@lists.ourproject.org
cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
Sitio web: http://comunidad.ginga.org.ar
Wiki: http://wiki.ginga.org.ar