BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 07-31-2009, 02:26 PM   #1 (permalink)
New Member
Join Date: Jul 2009
Model: 8310
Carrier: Telcel
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Problem KSoap JDE

Please Login to Remove!

I hope you can help me, I have this code and has an error:
package Encuestas;

import org.ksoap2.*;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.*;
import org.ksoap2.transport.*;

import net.rim.device.api.system.*;
import net.rim.device.api.ui.*;
import java.util.*;

final class PantallaPrincipal extends MainScreen
Encuestas encuestasapp;
EditField campologin = new EditField("Login:","",15, EditField.FILTER_DEFAULT);
PasswordEditField campopassword = new PasswordEditField("Password:","",15,EditField.FILT ER_DEFAULT);
ButtonField boton = new ButtonField("OK");
private MenuItem invocarIngresar = new MenuItem("Ingresar",0, 0)
public void run()
Manager adminlayout = new VerticalFieldManager(Manager.FIELD_HCENTER|Manager .LEAVE_BLANK_SPACE);
PopupScreen pop = new PopupScreen(adminlayout);

FieldChangeListener even = new FieldChangeListener()
public void fieldChanged(Field campo, int context)
String url="httpxx";
String namespace = "httpxx";
String soapAction = "httpxx";
String metodo = "xxx";

SoapObject llamar = new SoapObject(namespace, metodo);

llamar.addProperty("login", campologin.getText());
llamar.addProperty("password", campopassword.getText());

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);

envelope.bodyOut = llamar;
envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.ENC;

HttpTransport ht = new HttpTransport(url);
ht.debug = true;
ht.setXmlVersionTag("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
String resultado = null;
{, envelope);
resultado = envelope.getResult().toString();
catch(org.xmlpull.v1.XmlPullParserException ex2)
catch(Exception ex)
String bah = ex.toString();
What could be?
Thanks in advance
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Copyright 2004-2014
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.