android-ksoap2

KSoap2 SoapObject Object Reference not set to an instance

扶醉桌前 提交于 2019-12-18 08:45:23
问题 I think this is a simple problem that others may be able to provide the missing link to. I have a Workflow wcf service that my .NET clients can communicate with properly. I have turned on tracing under the appfabric and can watch service calls execute properly so I feel comfortable the service is not the problem. My Android calls never hit the first trace point. In Android using ksoap2 (2.6.5) when I call this line I get an Object reference not set error: SoapObject response = (SoapObject

KSoap2 SoapObject Object Reference not set to an instance

北城以北 提交于 2019-12-18 08:45:01
问题 I think this is a simple problem that others may be able to provide the missing link to. I have a Workflow wcf service that my .NET clients can communicate with properly. I have turned on tracing under the appfabric and can watch service calls execute properly so I feel comfortable the service is not the problem. My Android calls never hit the first trace point. In Android using ksoap2 (2.6.5) when I call this line I get an Object reference not set error: SoapObject response = (SoapObject

Android Ksoap2 Setting the namespace for nested (children) types

被刻印的时光 ゝ 提交于 2019-12-18 07:23:10
问题 I want to send an object, SBNInloggBegar , to a WCF web service. SBNInloggBegar contains the objects SBPBegar and SBPInloggning , which in turn contain a number of strings. SBPInloggning also contain SBPSubjekt , containing a number of strings. I have serialized those classes using the KvmSerializable interface. I have a function that looks like this: private String soap() { String returnString = ""; String NAMESPACE = "Sambruk"; String METHOD_NAME = "SBAInloggning"; String SOAP_ACTION =

How to retriving base64 strings(large image) from server to android

久未见 提交于 2019-12-18 07:09:40
问题 i have to retrieve image of all size from server to android mobile with reference to id ,so that i tried with this below coding and successfully got the base 64 string and retrieved image for equivalent base64string it works fine for small size images but when i go for big size image it remains black screen not able to get large size images on screen through this method. thanks in advance. how to retrieve large size base64 string through soap object from a server package com.imageload; import

How to create proper soap envelope (request xml) in code while using KSoap2?

穿精又带淫゛_ 提交于 2019-12-18 06:51:36
问题 This is the soap request as obtained from SoapUi by feeding the wsdl. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://wsclient.xyz.com/types/"> <soapenv:Header/> <soapenv:Body> <typ:loginserviceElement> <typ:username>test.test</typ:username> <typ:password>test123</typ:password> </typ:loginserviceElement> </soapenv:Body> </soapenv:Envelope> But the android code dumped (from logcat) the request as: <?xml version="1.0" encoding= "UTF-8" ?> <v

Android AsyncTask don't return correct Result

拈花ヽ惹草 提交于 2019-12-17 20:30:00
问题 for one of projects i want to use Ksoap with AsyncTask . now in this below code AsyncTask can work correctly but after return result to WSDLHeper i get wronge value. for example Result for this.result in doInBackground method is : [1, 4674070, {item=3000738; item=TSMS; item=30007227; item=30004444440000; item=30007227001401; item=50004066569100; item=50001717; item=500017171; item=5000171717; item=50001717007227; }] after return value i'm in tmp = String.valueOf(p.execute()) have : ir.tsms

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

Not trusted certificate using ksoap2-android

人盡茶涼 提交于 2019-12-17 16:22:39
问题 I'm using ksoap2-android to make a call to wcf service over SSL. I can get it to work without SSL, but now I want to make the call over SSL, but I've run in to some problems. I'm using the HttpsTransportSE instead of HttpTransportSE, but I'm getting the error: javax.net.ssl.SSLException: Not trusted server certificate How can I fix this? Can I add the server certificate to the Keystore in Android to solve the problem? private static final String SOAP_ACTION = "http://example.com/Service

HttpTransportSE.call method returns NullPointerException frequently

让人想犯罪 __ 提交于 2019-12-14 03:21:43
问题 I connect to a webservice to download master data for my app. So, in a single download the app will need to call the webservice a no of times with different indexes. During this, HttpTransportSE.call method returns NullPointerException for some indexes sometimes, otherwise it works fine. My calling function is : public String SoapAction(String[] values){ String[] data = new String[] { "CompanyID", "Username", "Password", "indexNo", "DataString","lDate" }; SoapObject request = new SoapObject

invoke wcf web service using ksoap2 on android app failed with the following error java.net.SocketTimeoutException: Connection timeout

倖福魔咒の 提交于 2019-12-13 05:17:22
问题 I'm new to android and I wanted to call wcf web service. I have found ksoap2 library and stated to apply the examples I found.The app failed with the following error message: java.net.SocketTimeoutException: Connection timeout. I had set user permission on the manafist file like that: <uses-permission android:name="android.permission.INTERNET"></uses-permission> I have also add the proxy, port, username and password from the emulator setting app-> wireless and network->mobile networks->Access