0
我在android應用程序中調用soap webservice。它的工作正常,並在SOAP對象中獲得響應。之後我不知道該怎麼做。我正在尋找教程,但我沒有找到任何。我真的很厭倦。我需要解析響應。在這種情況下,任何人都可以幫助我。讓你的reponce .. 然後該宏將會作品後Android Web服務SOAP
filter.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v)
{
//sign_up.setImageResource(R.drawable.signuphover);
//Intent i = new Intent();
//i.setClassName("com.android.istock","com.android.istock.signup");
//startActivity(i);
int type=0;
int PageNo=1;
int PageSize=10;
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("pStrType", type);
request.addProperty("pIntPageNo", PageNo);
request.addProperty("pIntPageSize", PageSize);
//Log.v(LOG_TAG," value:="+name);
//Log.v(LOG_TAG," value:="+pass);
SoapSerializationEnvelope envelope =
new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL);
try
{
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapObject resultstring = (SoapObject) envelope.bodyIn;
請回復任何人..其迫切 – 2010-10-15 16:20:34
我已經創建了一個 - 證明的概念 - SOAP客戶端,請看它... :) http://wiki.javaforum.hu/display/ANDROIDSOAP/Home – 2010-10-18 07:53:00
你看過嗎? [HelloAndroid教程:using-ksoap2-android-and-parsing-output-data](http://www.helloandroid.com/tutorials/using-ksoap2-android-and-parsing-output-data) – 2010-10-15 17:48:31