ksoap2

kSOAP2 communication with webservices C#

不打扰是莪最后的温柔 提交于 2019-12-25 07:39:16
问题 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 have used Asynctask but I have been getting the below error posted here. ksoap 2 communication - sending the asynctask result to UI thread and print Can some one please help where I went wrong ????? public class MainActivity extends Activity {

android send data to a .net webservice

断了今生、忘了曾经 提交于 2019-12-25 05:45:08
问题 I am trying to create a android app to send text and photos to .net webservice. I have functions in my webservice. one of them gets a dummy name(I created this to check if I can make a connection) and the other one is to insert some data into DB. I want to post my work to get help. private final String NAMESPACE = "http://methodoor.com/"; //webservice is working, you can check it online private final String URL = "http://servicing2.rotanet.com.tr/service.asmx"; private final String SOAP

Android ksoap2 parameter issues

為{幸葍}努か 提交于 2019-12-25 04:05:47
问题 I am trying to pass a parameter to my service, the code runs but the service never receives the parameters?? The call works, I simply add the variable then get it back, when getting it back I discover the webservice never received it! Thanks for your help final String SOAP_ACTION = "http://NathofGod.com/GetCategoryById"; final String METHOD_NAME = "GetCategoryById"; final String NAMESPACE = " http://NathofGod.com/"; final String URL = "http://10.0.2.2:4021/Service1.asmx"; SoapObject request =

parse ksoap 2 result of magento

拟墨画扇 提交于 2019-12-25 03:37:48
问题 am trying to parse the response of soapv2 from magento,but I am not able to parse I am getting the result as catalogCategoryTree{category_id=1; parent_id=0; name=Root; position=1; level=0; children=ArrayOfCatalogCategoryEntities{item=catalogCategoryEntity{category_id=3; parent_id=1; name=Root Catalog; is_active=1; position=3; level=1; children=ArrayOfCatalogCategoryEntities{item=catalogCategoryEntity{category_id=10; parent_id=3; name=Small Animals; is_active=1; position=10; level=2; children

Pass an array to a SOAP web service for inserting into remote database

你说的曾经没有我的故事 提交于 2019-12-25 02:28:40
问题 I want to pass an array from my Android application to my SOAP webservice using the ksoap libraries available. My array looks like this: String[] values={"abc","def"}; How to pass this as a parameter to my web service call? Can anyone please help me out ? This is my web service code : public class Service1 : System.Web.Services.WebService { [WebMethod] public String getnames(String[] values) { try { using (SqlConnection myConnection = new SqlConnection(@"Data Source=.\SQLEXPRESS;Initial

kSoap2 serialisation error

不羁岁月 提交于 2019-12-25 01:14:16
问题 I'm using kSoap2 to connect to a WCF service from an android device but I get an serialisation error: Cannot serialize: CompositeType : StringValue = Test, BoolValue = true Here is the code for the webservice call: public void call() { try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); CompositeType comp = new CompositeType(); comp.setProperty(CompositeType.STRING_VALUE, "Test"); comp.setProperty(CompositeType.BOOLEAN_VALUE, true); PropertyInfo pi = new PropertyInfo(); pi

Getting ParsingError, InvalidSoapActionHeader on SQL Server SOAP request

拈花ヽ惹草 提交于 2019-12-25 00:36:18
问题 I am attempting to send a SOAP request to SQL Server 2005, but I am getting a vague error in response. Can anyone interpret for me? Here is my request (linebreaks have been added for readability): <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/12/soap-encoding" xmlns:v="http://www.w3.org/2001/12/soap-envelope"> <v:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401

How to resolve Soap Fault in Ksoap2?

左心房为你撑大大i 提交于 2019-12-25 00:29:59
问题 I am trying to hit a web service with an android application. I am getting following exception about which I don't have any Idea. Please help: 09-01 11:21:29.873: WARN/System.err(921): SoapFault - faultcode: 'soapenv:Server' faultstring: 'com.hello.service.DataStore' faultactor: 'null' detail: org.kxml2.kdom.Node@44e9a320 09-01 11:21:29.883: WARN/System.err(921): at org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(SoapSerializationEnvelope.java:112) 09-01 11:21:29.883: WARN/System

How to create login page in Android.(use ksoap2 web service sharepoint)

天大地大妈咪最大 提交于 2019-12-24 21:56:22
问题 I'm new in Android.I tried to created login page but it's alway error. I was add ksoap2.java and permission INTERNET. this my code. 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.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button;

Set Soap Header ksoap2 android

烂漫一生 提交于 2019-12-24 19:46:24
问题 First, I apologize for asking a question that is already common here in the SOF. But I am a beginner and I'm certainly cruel. I am creating an android application that communicates with a WS. So I can make requests to the WS, I have to add a value to the header of the envelope, but I can not add. I found some answers about it here in the SOF, however, could not fully understand how it works. Perhaps, my doubts are due to the nodes of the header, which ended up confusing me even more. One of