Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package com.google.android.test_ws_array; import java.io.IOException; import java.util.Vector; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.PostMethod; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.AndroidHttpTransport; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.EditText; import android.widget.TextView; public class test_ws_array extends Activity { private static final String SOAP_ACTION = "getMessage"; private static final String METHOD_NAME = "getMessage"; private static final String NAMESPACE = "http://rpc.xml.coldfusion"; // !!!!! IMPORTANT!!!!! THE URL OF THE CoLDFUSION WEBSERVER NOT LOCALHOST BECAUSE LOCALHOST IS THE ANDROID EMULATOR !!!!! private static final String URL = "http://192.168.1.7:8500/DA/ws_functions/test6.cfc?wsdl"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); //CALL the web service method with the two parameters vname and nname SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("vname", "Christian"); request.addProperty("nname", "Braun"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport (URL); try { androidHttpTransport.call(SOAP_ACTION, envelope); // Get the SAOP Envelope back and the extract the body SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn; Vector XXXX = (Vector) resultsRequestSOAP.getProperty("getMessageReturn"); //Count of the arrays beneath starting from 0 //You can see the buildup with the php site with nusoap http://localhost/DA/nusoapclient_test2.php int testat = XXXX.size(); // It depends on how many arrays we have we can get to the attributs of one of them with get(0), get(1) .... SoapObject test = (SoapObject) XXXX.get(0); //Get the attributes in the array String tem = (String) test.getProperty("vname"); tem = tem + " " + (String) test.getProperty("nname"); //Just show it in a text area field called lblStatus ((TextView)findViewById(R.id.lblStatus)).setText(tem.toString()); // with androidhttptransport you need a catch block } catch(Exception E) { ((TextView)findViewById(R.id.lblStatus)).setText("ERROR:" + E.getClass().getName() + ": " + E.getMessage()); } } }