ksoap2

Consuming WCF Soap Service running on Mono from Android KSoap2

ぐ巨炮叔叔 提交于 2019-12-12 13:19:18
问题 I am working on a Android/C# project. What I need to be able to do is have a WCF soap service which can either run on Windows or Linux (Mono). It's working fine on Windows and I can access the WCF Service on Mono from the WCF Test Client provided in Visual Studio and it works fine but when accessing android using KSOAP2 I get the error HTTP Request Failed, HTTP status: 415 Below is how the soap service is started string methodInfo = classDetails + MethodInfo.GetCurrentMethod().Name; try { if

Parsing Complex Soap Response with diffgram

谁都会走 提交于 2019-12-12 05:51:37
问题 I am not able to parse below soap response from a .net webservice,i am getting two type of response one is of anytype format which i have parsed it,but now i need to parse the below xml <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetReminderResponse xmlns="http://tempuri.org/"> <GetReminderResult> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3

Android webservice access error

扶醉桌前 提交于 2019-12-12 03:38:42
问题 I have a simple java web service deployed on Tomcat7 server. I have used Axis2 as soap engine.(Web service & WSDL is OK) Here is the code I have used for the web service public class TestWs { public String sayHello(){ return "Hello Grant"; } } I have accessed this web service from Android 2.2.It is perfectly OK.But this program not works for Android 4.0.3 Code of my Android program import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization

Blackberry - Consume .Net Soap Service

北慕城南 提交于 2019-12-12 02:29:59
问题 I am new to blackberry app development and was wondering if someone could point me in the right direction(and may be a sample application) of how to consume web service in native apps. I'm using Blackberry JDE plugin for Eclipse. I am able to consume a restful webservice, but now I want to consume a SOAP service. I am new to eclipse , so I would require in detail information. Thanks, 回答1: I followed this none-ksoap2 route and it worked well for me: http://www.johnwargo.com/index.php

getting parameter error in ksoap 2 android

心已入冬 提交于 2019-12-12 02:22:29
问题 I am using calling webservice using ksoap2 in android I am getting this error SoapFault - faultcode: 'soap:Server' faultstring: 'Server was unable to process request. ---> The parameterized query java.lang.ClassCastException: org.ksoap2.SoapFault cannot be cast to org.ksoap2.serialization.SoapObject I am adding parameter using propertyInfo PropertyInfo fromProp =new PropertyInfo(); fromProp.setName("uname"); fromProp.setValue("test"); fromProp.setType(String.class); request.addProperty

How to insert and get .NET web-service data Object to My Android App

淺唱寂寞╮ 提交于 2019-12-12 00:15:44
问题 I have a web-service in .NET it's inserting and retrieving data's from database as object's.. I'll copy some part of web-service here.. [WebMethod(Description = "This is used to insert details into sql server")] public string InsertDetails(DataTable myDetails, string STR1) { try { foreach (DataRow row in myDetails.Rows) { SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "dbo.InsertQry"; cmd.Parameters.Add(new SqlParameter("@P_no", row["POD

org.ksoap2.serialization.SoapObject cannot be cast to org.ksoap2.serialization.SoapPrimitive

坚强是说给别人听的谎言 提交于 2019-12-11 22:27:25
问题 I'm trying to display a Listview by getting date from SOAP Web Service but every time i get an exception : org.ksoap2.serialization.SoapObject cannot be cast to org.ksoap2.serialization.SoapPrimitive code :- public class ClientsReclamations extends Activity { public final String NAMESPACE = "http://tempuri.org/"; public final String SOAP_ACTION = "http://tempuri.org/GetReclamations"; public final String METHOD_NAME = "GetReclamations"; ListView lv; @Override protected void onCreate(Bundle

ksoap2 - request parameters is set null

半世苍凉 提交于 2019-12-11 19:23:29
问题 I have a problem setting the params when I call my webservice function from Android, however in web it works fine. private static String URL="http://1.2.3.4:8080/Servidor/servicioTraducir?wsdl"; private static final String METHOD_NAME = "obtenerURL"; private static final String NAMESPACE = "http://servicioTraducir/"; private static final String SOAP_ACTION ="servicioTraducirService"; . . . request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("descripcion","hola."); //I tried

Ksoap webservices returning false instead of string

元气小坏坏 提交于 2019-12-11 19:02:42
问题 I can not work out why Ksoap is not returning the string and only returning false, here is the code for webservice: private static final String SOAP_ACTION = ""; private static final String METHOD_NAME = "serverImpService"; private static final String NAMESPACE = "http://server/"; private static final String URL = "http://localhost:9841/server/"; TextView tv; String results = ""; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R

How to Build ArrayAdapter from result received from webservice?

半世苍凉 提交于 2019-12-11 18:23:10
问题 I am using web service which developed in asp.net that return data type List (List(of String)) , I am using Ksoap2 api to call the above Web Service and to get the result from it which is something like the following: The result Received from Web Service: anyType{string=username1; string=username2; string=username3; string=username4; } anyType{string=Text_news1; string=Text_News2; string=Text_News3; string=Text_News4; } anyType{string=01-Apr-2013; string=01-Apr-2013; string=02-Apr-2013;