ksoap2

To use the tutorial in android 4.0.3 if had to work with AsynxTasc but i still dont work?

我只是一个虾纸丫 提交于 2019-11-27 16:32:31
I used the tutorial http://www.c-sharpcorner.com/UploadFile/88b6e5/how-to-call-web-service-in-android-using-soap/ and did some chances that it shoud work for android 4.0.3! But it still doesn't! Can someone post me a correct solution? package com.webservice; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import android.graphics.Bitmap; import android.os.AsyncTask; import android.os.Bundle; import android.view.View; import android

How to call a WCF service using ksoap2 on android?

亡梦爱人 提交于 2019-11-27 11:09:15
Here is my code import org.ksoap2.*; import org.ksoap2.serialization.*; import org.ksoap2.transport.*; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class ksop2test extends Activity { /** Called when the activity is first created. */ private static final String METHOD_NAME = "SayHello"; // private static final String METHOD_NAME = "HelloWorld"; private static final String NAMESPACE = "http://tempuri.org"; // private static final String NAMESPACE = "http://tempuri.org"; private static final String URL = "http://192.168.0.2:8080/HelloWCF/Service1

How to query a web service via POST request in Android?

谁说胖子不能爱 提交于 2019-11-27 09:38:26
I am totally new to Web Feature Service (WFS) but I want to build an Android application with ksoap2-android on top of an API publishing its data via WFS. I would like to request data from the API passing them the bounding box parameter to limit the data that will be returned. Questions: How can I put the GetFeature object into the SOAP envelope? How can I use JAXBElement on the Android client? See edit from March 15, 2012 Here are some links to the API that might help to understand their format. GetCapabilities DescribeFeature Example: WFS-1.1 GetFeature POST request, http://data.wien.gv.at

Android calling .net webservice Ksoap2

雨燕双飞 提交于 2019-11-27 08:38:57
问题 I am calling a .NET webservice using ksoap2 in android and i get a response someting like this anyType{NewDataSet=anyType{string=77777}; how can i parse this. please help! 回答1: This is a multidimensional array of properties, it goes like : anyType //property 0 { NewDataSet=anyType // property 0 [0] { string=77777; } }; you can parse it manually (this is java code): SoapObject yourResponseObject = (SoapObject) soapEnvelope.bodyIn; SoapObject array = (SoapObject) yourResponseObject .getProperty

java.net.SocketException: Address family not supported by protocol

和自甴很熟 提交于 2019-11-27 08:34:41
问题 in android I am getting the following error: NativeStart.main(String[]) line: not available [native method] my code is trying to use webservices: import java.io.IOException; import android.app.Activity; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import org

java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapSerializationEnvelope

若如初见. 提交于 2019-11-27 08:19:10
问题 Hai am Calling the webservice in my android application am using android version(r-18).but i got error in Soap serilization.am trying the ksoap2 version(2.5.4,2.4,2.6.4,2.5.8). Error Message; 05-07 02:20:26.920: W/dalvikvm(4852): threadid=1: thread exiting with uncaught exception (group=0x4001d888) 05-07 02:20:26.920: E/AndroidRuntime(4852): FATAL EXCEPTION: main 05-07 02:20:26.920: E/AndroidRuntime(4852): java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapSerializationEnvelope 05

Connection refused when calling SOAP Webservice using Android

心不动则不痛 提交于 2019-11-27 07:29:00
问题 I developed a webservice in .net and I'm trying to call it in Android. To call the webservice I'm using ksoap2. The WDSL's URL is: http://localhost/Cidadaos_Cidade/Open.asmx?WSDL Here's the WSDL <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://Cidadaos_Cidade/Open/" xmlns:s0="http://www.outsystems.com" xmlns:soap="http:/

BlackBerry simulator can connect to web service, but real device can't

陌路散爱 提交于 2019-11-27 07:22:19
问题 I am developing BlackBerry application that connects to the web service. When I developed on simulator, I used BlackBerry MDS for simulator and everything just went fine. My application (running on simulator) can connect with my web service perfectly. Please note that the simulator and the web service are on different PCs. Now, my project is done. I tried deploying my app to the real device (BB 8520). When I used the app on the device, I found it can't connect to the web service. I did a

create soap envelope with security header in android using ksoap2

随声附和 提交于 2019-11-27 06:09:19
问题 I want to create soap envelope with security header in android using ksoap2. My code of android is as... import org.ksoap2.SoapEnvelope; import org.ksoap2.SoapFault; import org.ksoap2.serialization.PropertyInfo; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import org.kxml2.kdom.Element; import org.kxml2.kdom.Node; import android.app.Activity;

passing objects to wcf soap service from android using ksoap2; it sends and receives 0

不想你离开。 提交于 2019-11-27 04:38:59
问题 I am trying to use ksoap2 to access methods in a wcf soap service from android. I was able to successfully pass simple type parameters to the method, it worked fine. But when I try to pass objects, the wcf method is receiving 0 for all the object values. I have used the same SOAP service with a WP7 app and it runs fine. I have 2 methods in my service, ksoapadd and addParam. addParam takes in two integer and returns their sum(this works). ksoapadd takes in an object of class testadd which has