android-ksoap2

Getting a nullreference when passing a complex object from KSOAP2 to WCF

荒凉一梦 提交于 2019-12-13 03:58:06
问题 So guys I know that there exist a lot of similar question in here, but none of them have been able to resolve my issue. I’m trying to send a custom Object User from an Android device to a WCF service, but no matter what I do the webservice receive a null. Here's the code for the object im trying to send: public class User implements KvmSerializable { private int id; private String userName; private String mac; private int proppertyCount = 3; public User(int _id, String _userName, String _mac)

Parse.com to communicate with WSDL

心已入冬 提交于 2019-12-12 23:16:59
问题 Is there any possibility to call "WSDL" method in cloud code ? for example, there is a "WSDL" web service and i want to check if there is an new data in it and if there is i want to send push notification to user. I got the logic, but i could not find any information about "WSDL" in parse.com documentation. this didn't help: Parse.Cloud.httpRequest({ url: 'https://services.rs.ge/WayBillService/WayBillService.asmx', params: { su : 'test1' }, success: function(httpResponse) { console.log

kSoap and .Net webservice that returns a DataSet

。_饼干妹妹 提交于 2019-12-12 19:00:05
问题 I know that using DataSets are a big evil, but as the service is not under my control and the prospect of creating a proxy service is a no go.... What i'm trying to see is if anyone has created class structure that can be deserialized using the kSoap serializer, or am i smoking the wrong stuff. Going to start it in the mean time and see if it is possible. Below is the resulting data as expected (Schema and Diffgram): <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http:/

KSOAP2 java.lang.RuntimeException: Cannot serialize

好久不见. 提交于 2019-12-12 15:34:16
问题 I am trying to use a method from a .net web service. The code behind for the web service has a '/' at the end of the namespace [WebService(Namespace = "http://www.mynamespace.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] Here is the .net method call POST /TelematicsWebService/Service.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.mynamespace.com/GetDevicesByBranch" <?xml version="1.0" encoding="utf-8"?

Error in authentication when subscribing to a sharepoint webservice using ksoap2-android

为君一笑 提交于 2019-12-12 09:43:52
问题 I am writing an Android application that will use the getlist() method of the lists.amx service in sharepoint 2010. I am using ksoap2-android to handle my soap messages. When I try to authenticate I get an xmlpullparser exception expected START_TAG... Why will the following code not authenticate to the sharepoint server? Here is my code: public class SharepointList extends Activity { private static final String SOAP_ACTION = "http://schemas.microsoft.com/sharepoint/soap/GetList"; private

ksoap 2 communication - sending the asynctask result to UI thread and print

偶尔善良 提交于 2019-12-12 06:32:09
问题 I am trying to send the login credentials from android user to a C# web service running in my local host through visual studio. I have used KSOAP2 for the SOAP communication and wanted to send the login info to the web service and print it in the UI. I am using AsyncTask to do it but was unable to get the information from the web service and print it to android UI. Can some one please help where I went wrong ????? public class MainActivity extends Activity { EditText un,pw; TextView tv;

How to consume SAP SOAP Webservices, with ksoap2, in android

感情迁移 提交于 2019-12-12 04:14:37
问题 I want to consume SAP webservices in my android app. The webservices are working as intended in SOAPUI (generated requests from the sap wsdl). I have tried using ksoap2 . When using ksoap2 I get "Webservice processing error" as response. I have exhausted all results from google/stackoverflow/sap community network. I have tried the request sent from ksoap2 in SOAPUI, but I am unable to pin down the crucial difference between it and the working (SOAPUI generated) request. Please guide me.

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

casting a soap object to a own object

老子叫甜甜 提交于 2019-12-12 01:51:56
问题 Can I cast a SoapObject to a predefined java object?. I use ksoap2 I am trying to do it inside an AsncTask class and this is my code segment. I have created a class called Citizen . SoapObject result = (SoapObject)envelope.getResponse(); citizen = (Citizen)result; the error I get is cannot cast SoapObject to Citizen I have my AsynType Declaration like this. private class AsyncTaskRunner extends AsyncTask<String, String, Citizen> How do I solve this? 回答1: No experience with this but when I

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