ksoap

How can I send this SOAP request using KSOAP2 in Android

血红的双手。 提交于 2019-12-25 03:51:57
问题 I am very new to SOAP and Android. Can some one please help me to build an SOAP request to send the following request. SOAPAction: http://api.example.com/application Request <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://api.example.com/registration/v3.1"> <soapenv:Header> <ns0:appCredentials ns0:name="your-account-name" ns0:password="mypassword" ns0:targetAccountName="vvz" xmlns:ns0="http://services.example.com/application/types/1.0"/> </soapenv

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

android -How to pass double value to service using ksoap

雨燕双飞 提交于 2019-12-24 01:25:54
问题 In My application i want to pass the double value to the web service using ksoap but i am getting the NPE . In the code "exit_distance" is double value. can any body find the error in that and send the sample example code here //valus required for test RB_Constant.RB_Webservice_URL = ? RB_Constant.RB_Webservice_Namespace = ? public String getExitsRestaurants() throws SoapFault { String data = ""; String serviceUrl = RB_Constant.RB_Webservice_URL; String serviceNamespace = RB_Constant.RB

ksoap2 issue java.net.ConnectException

 ̄綄美尐妖づ 提交于 2019-12-21 21:42:17
问题 I am using kSoap2 for accessing soap web services. I am getting java.net.connectException while executing the below line androidHttpTransport.call(Constants.SOAP_ACTION_GET_METHOD_NAME, envelope) This is not happening always, but some of the times. Is this the problem with connection time out to the server? How to increase the connection time out in kSoap ? I googled, but can't find out the solution . Can anyone suggest me the solution to fix this error. Logcat details follows: 07-17 14:46:24

ksoap timeout behind proxy in android

我们两清 提交于 2019-12-20 07:09:31
问题 i tried the example from http://www.helloandroid.com/tutorials/using-ksoap2-android-and-parsing-output-data to get request and response from a wsdl service. its working fine when i tried in a proxyless. but when i work behind proxy,i get "The operation timed out:request time failed: java.net.SocketException" is there any way to set proxy to SoapObject or Soap Envelop? 回答1: Ksoap does not work behind a proxy. inorder to make that working.. download the HttpTransportSE.java and

HttpTransportSE requestDump gives NullPointerException

别来无恙 提交于 2019-12-20 04:37:56
问题 I'm trying to access a webservice in Android via Ksoap2 for Android. The SoapObject is created OK, the S.O.P of the bodyOut outputs the desired strings. But when I do a requestDump of the HttpTransportSE object I create to make the call, a NullPointerException happens. In other words, the transport object is null. How can this happen? Web Service is at http://srilanka.lk:9080/services/CropServiceProxy?wsdl This service works very well with SoapUI. SoapUI Request: <soap:Envelope xmlns:soap=

kSOAP2 double ID exception

落花浮王杯 提交于 2019-12-18 09:22:01
问题 I am attempting to use kSOAP 2 in my android application, and when I try to perform a particular webservice request, I end up getting thrown a "double ID" exception. I was able to find where this gets thrown in the kSOAP source code, it is in the SoapSerializationEnvelope class method public Object read() Here is an excerpt from that code showing the exception being thrown: if (id != null) { Object hlp = idMap.get(id); if (hlp instanceof FwdRef) { FwdRef f = (FwdRef) hlp; do { if (f.obj

KSOAP never timeout

回眸只為那壹抹淺笑 提交于 2019-12-17 19:29:26
问题 I'm using ksoap2 2.5.4 (on Android 2.2) which supports timeout. I'm using Apache 2.2.16 to handle my requests. Everything works fine, but when I shutdown my Apache (or disconnect remote PC on which Apache is running) the call never times out. I'm using separate thread to call my WS and this thread stop working/responding/stalls for about 2 minutes in this case. int MSG_TIMEOUT = 15000; HttpTransportSE httpTransport; SoapSerializationEnvelope envelope = new SoapSerializationEnvelope

Android kSOAP web service problem

梦想的初衷 提交于 2019-12-13 05:16:59
问题 I'm trying to invoke a public web service (w3schools.com/webservices/tempconvert.asmx) via kSOAP (downloaded and included the ".jar" directly from Google). Here's my code: // declarations private static final String NAMESPACE = "http://tempuri.org/" ; private static final String METHOD_NAME = "CelsiusToFahrenheit"; private static final String SOAP_ACTION = "http://tempuri.org/CelsiusToFahrenheit"; private static final String URL = "http://216.128.29.26/webservices/tempconvert.asmx"; // code

How to process the SOAPPRIMITIVE response

*爱你&永不变心* 提交于 2019-12-13 03:48:54
问题 I have WCF method that return String type. This is my output {"Table1" : [{"TableName" : "LoadDistributor","Description" : "Distributor ","MandatoryFlag" : "1","Status" : "","Priority" : "0"},{"TableName" : "LoadPrice","Description" : "Price ","MandatoryFlag" : "1","Status" : "","Priority" : "0"},{"TableName" : "LoadProduct","Description" : "Product ","MandatoryFlag" : "1","Status" : "","Priority" : "0"},{"TableName" : "LoadTradeSchemeDetail","Description" : "TradeSchemeDeta","MandatoryFlag"