android - retrieving information from web service calls -


I am trying to get information from a web service call that is what I have not yet done. In my text view, this is showing

  map {item = anyType {key = TestKey; Value = 2;}; Item = anytype {key = TestField; Value = adsfasd; };}  

When I went to that debugger, then I can see the above information variable, Tempper. But the question is how do I get the information (i.e. the actual value of "key" and "value" in each keyboard positions)? Yes, I know there is a lot going on in Crete and I'll fix it later.

Thank you in advance, Monte

My codes are as follows,

  Import java.util.Vector; Import android App Importroid.os.Bundle; Import android.widget.TextView; Import org.ksoap2.SoapEnvelope; Import org.ksoap2.serialization.SoapObject; Import org.ksoap2.serialization.SoapSerializationEnvelope; Import org.ksoap2.transport.AndroidHttpTransport; See public class: increases the hijack activity activity {personal fixed final string SOAP_ACTION = "test_function"; Private static final string METHOD_NAME = "test_function"; Personal Static Last String NAMESPACE = "http://www.monteandjanicechan.com/"; Private Static Ultimate String URL = "http://www.monteandjanicechan.com/ws/test_ws.cfc?wsdl"; // Private Object resultRequestSOAP = null; Private Text Viv TV; /** Called when the activity is first created. * / @ Override Crate on Public Zero (Bundle Saved Instantstate) {Super. Contents (Saved Instantstate); SetContentView (R.layout.main); SOAP object request = new SOAP object (NAMESPACE, METHOD_NAME); Tv = (TextView) findViewById (R.id.people_view); // SOAP object request.addProperty ("test_item", "1"); SoapSerializationEnvelope Envelope = New Soap Enhancement Anaph (Envelope.setOutputSoapObject (Requests); AndroidHttpTransport androidHttpTransport = New AndroidHttpTransport; Try {androidHttpTransport.call (SOAP_ACTION, Envelope); / * ResultRequestSOAP = EnvelopeGetresons (); Vector tempResult = (vector) resultRequestSOAP ( "test_functionReturn"); * / sOAP-object Prinamreks sOAP = (Sopobjekt) envelope. vector TempResult = (vector) Prinamvikalp Soapikjetproprti ( "test_functionReturn"); Int testize = tempResult.size (); // Soapbag Test = (SoobAb C) tempResult.get (0); // String [] results = (String []) resultRequestSOAP; object tempvar = tempResult.elementAt (1); tv.setText (tempvar.toString ());} catch (Exception AE) {AE.printStackTrace (); Tv.setText (aE.getClass (). GetName () + ":" + aE.getMessage ());}}}}  

is running you should see the documentation Ksoap2 to understand fully. However, I'm guessing that your object tempvar can be a java.util.Map , which keys are ways of reading and remove every key values.


Comments