android-developers
[Arriba] [Todas las Listas]

[android-developers] Error de ID doble cuándo enviando un valor a servi

To: android-developers@xxxxxxxxxxxxxxxx
Subject: [android-developers] Error de ID doble cuándo enviando un valor a servicio de web via KSAOP
From: Dan Cha <cubangt2@xxxxxxxxx>
Date: Wed, 17 Sep 2014 12:12:26 -0700 (PDT)
Delivery-date: Thu, 18 Sep 2014 00:20:04 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=Dbi6pL3XiYe13GP4CKaj8EmJY+yhDIYb826q2C5fTRw=; b=SdBR6r2OLuXiHXI7Cl5E/RyI+r6s0LYdPEptDlmghXMNS9pHSvGyLTgEwL611uvFh2 Mdgi/vkRdZTXF337YaUqZ2e4MirisOOCywnWh8Rrzm1b7Xc8uze/7KAxuWX7cuCeHW+Y pSDtOkisvBEn5vJMw2GEF7hPNccrGeLTqrDKyNby+oKeLhnymDX9jR8kbGUGc4HTrJFb IOC6bS2Zx8onXGoJmOse/cHRf/vzUATAzY90bh0r3OXm5GbkymZfBofBW+qSw0hcnzDu D7eCsxSgEo7VT+ANjqLeF/2QxbcfepMWZcYssyDC6KC3RwyaXz+RpN+9fvzwXpj6gXuU Cncw==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=Dbi6pL3XiYe13GP4CKaj8EmJY+yhDIYb826q2C5fTRw=; b=dqAG02qfzgUjCYjYIpm18p5eK2TS5jp0kHXL8iJSNFbLaOf+qhsmXNImyq6XkGHDCr 5hItchipCawpCwA+vtSXBCvcylwwS+5FvjPCHMdcJ4vG6181uFq+du6vVfrLMcyuebYV OLcIonGhQB/KCh0PBJ1csXRITR8JAurxMbymRUwFqHiDXobFREQO3fPp4293/qcWvJuf LwFCXZ0jPLA9zXUZ1fCGWNEmCQ11hh2yH4oGs6fpEDSLkdMz/i07v8lC7LaeEUFb6YUU Tm1XsHJxEtXI1EL4nuIlmpEauMMsrfib8wz9X98YUOvmCUMnY3RVeZCb3dzCtd3Fjxln 38hg==
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://groups.google.com/group/android-developer>
List-help: <http://groups.google.com/support/>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <http://groups.google.com/group/android-developers/post>, <mailto:android-developers@googlegroups.com>
List-subscribe: <http://groups.google.com/group/android-developers/subscribe>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <mailto:googlegroups-manage+364598216046+unsubscribe@googlegroups.com>, <http://groups.google.com/group/android-developers/subscribe>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
Si consigo el valor de mi lista selecciona elemento en la página anterior que es 
almacenada en los extras, así, consigo el valor correcto, pero apenas 
lo hace a la línea donde el .La Llamada es hecha, echa la excepción
*SoapObject pide = nuevo *SoapObject(OBJETIVO_de WSDL_*NAMESPACE,NOMBRE_de MÉTODO);
        *SoapSerializationEnvelope *envelope = nuevo 
*SoapSerializationEnvelope(*SoapEnvelope.*VER11);
        
        *PropertyInfo *reqid = nuevo *PropertyInfo();
        
        *Bundle extras = *getIntent().*getExtras();
        Si(extras != *null)
         #unknown{^*valReqid = Extras.*getString("*reqid");
         *sesCookie = Extras.*getString("*mSessionHeader");
        }
        *reqid.*setName("*id");
        *reqid.*setValue(*valReqid);
        
        Petición.*addProperty(*reqid);
                      
        *envelope.*dotNet = Cierto;
        *envelope.*setOutputSoapObject(Petición);
        
        *HttpTransportSE *httpTransport = nuevo *HttpTransportSE(URL);
 
        prueba         
         #nom<*HeaderProperty> *reqHeaders = nuevo *LinkedList<*HeaderProperty>();
         *reqHeaders.Añade(nuevo *HeaderProperty("Galleta", *sesCookie)); 
         *httpTransport.Llamada(ACCIÓN_de JABÓN, *envelope, 
(Lista<*HeaderProperty>)*reqHeaders);
 
Si cambiar el *valReqid a un *int en cambio, siempre regresa 0, pero naturalmente 
lo hace pasado el .Llamada pero entonces *cant encontrar las propiedades porque 
hay nada regresó.
Si ayuda o asuntos, el servicio de web regresa un *struct

-- 
recibiste este mensaje porque eres *subscribed al *Google
Grupos "*Android *Developers" grupo.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx
A *unsubscribe de este grupo, envía *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx

Puesto que más opciones, visita este grupo en
*http://grupos.*google.*com/Grupo/*android-*developers?*hl=*en
--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*Android *Developers" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx.
Puesto que más opciones, visita *https://grupos.*google.*com/*d/*optout.
If I get the value from my list select item on the previous page which is 
stored in the extras, like this, I DO get the correct value, but as soon as 
it makes it to the line where the .Call is made, it throws the exception
SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,METHOD_NAME);
        SoapSerializationEnvelope envelope = new 
SoapSerializationEnvelope(SoapEnvelope.VER11);
        
        PropertyInfo reqid = new PropertyInfo();
        
        Bundle extras = getIntent().getExtras();
        if(extras != null)
        {
         valReqid = extras.getString("reqid");
         sesCookie = extras.getString("mSessionHeader");
        }
        reqid.setName("id");
        reqid.setValue(valReqid);
        
        request.addProperty(reqid);
                      
        envelope.dotNet = true;
        envelope.setOutputSoapObject(request);
        
        HttpTransportSE httpTransport = new HttpTransportSE(URL);
 
        try
        {         
         List<HeaderProperty> reqHeaders = new LinkedList<HeaderProperty>();
         reqHeaders.add(new HeaderProperty("Cookie", sesCookie)); 
         httpTransport.call(SOAP_ACTION, envelope, 
(List<HeaderProperty>)reqHeaders);
 
If change the valReqid to an int instead, it always returns 0, but of 
course it makes it past the .call but then cant find the properties because 
there is nothing returned.
If it helps or matters, the web service returns a struct

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@xxxxxxxxxxxxxxxx.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>
  • [android-developers] Error de ID doble cuándo enviando un valor a servicio de web via KSAOP, Dan Cha <=