ksoap2

How to remove i:type=“d:string” from PropertyInfo of SOAP in KSOAP2 Android

前提是你 提交于 2019-12-11 05:38:45
问题 I am using ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar I am working on a project where i need the following soap request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mod="http://www.tmforum.org/xml/tip/model" xmlns:cust="http://www.tmforum.org/xml/tip/customer/cust"> <soapenv:Header/> <soapenv:Body> <mod:listProblemsRequest> <!--Optional:--> <mod:customer> <cust:iD >1100000677</cust:iD> </mod:customer> </mod:listProblemsRequest> </soapenv:Body

Ksoap2 Android IllegalStateException

眉间皱痕 提交于 2019-12-11 05:20:07
问题 I am using Ksoap2 to consume my webservices, on some devices i am getting this exception, java.lang.IllegalStateException: Cannot set request property after connection is made. I am trying to resolve it from two days but without any key to resolve it. java.lang.IllegalStateException: Cannot set request property after connection is made at com.android.okhttp.internal.http.HttpURLConnectionImpl.setRequestProperty(HttpURLConnectionImpl.java:496) at com.android.okhttp.internal.http

“org.xmlpull.v1.XmlPullParserException: expected: START_TAG” Error

余生长醉 提交于 2019-12-11 04:27:41
问题 In my application i am accessing some web services that are in my local system. When i am invoking this services from my PC, these all working abs fine but when these services called from another system. on the call i am receiving the error "org.xmlpull.v1.XmlPullParserException: expected: START_TAG". Here is my code: public String getAccountsNames(int billId){ String value = new String(); System.out.println("Inside getAccountsDetails method..........."); SoapObject request = new SoapObject

Android ksoap2 nullable type

不想你离开。 提交于 2019-12-11 04:00:57
问题 I am trying to connect to a WCF .Net Web Service from an Android device using the Ksoap2 library. Everything works fine, I've been able to send and receive complex objects so far (after a LOT of troubleshooting). However, I'm now running into the problem of nullable types. On the server-side, a lot of the attributes I'll be sending will be nullable. When I try to send these as null from the Android side I get a deserialization error because ksoap puts null=true instead of nil=true. Here is

kSoap2 multipart/related response

社会主义新天地 提交于 2019-12-11 00:13:42
问题 We have problems with getting a response from a webservice when we want to call it. We are using the KSOAP2 Library and when we want to get normal SOAPObjects with Content-Type text/xml it all goes well but now we need to get a response from a action who gives back a content-type: multipart/related. So the standard code doesn't work. public SoapObject getDocuments(String id, String type) { SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME_GETDOCUMENTS); Request.addProperty("humres",

Handling timeout while using Ksoap2 in android

耗尽温柔 提交于 2019-12-10 23:57:08
问题 I am calling a method of another class from my activity that calls a webservice using ksoap2. I want to handle timeout for this. If the method takes more than 10 seconds to execute, then I need to show an alert dialog indicating that the process was not successful. I tried using the timeout value as follows: HttpsTransportSE transport = new HttpsTransportSE(URL,TIMEOUT); but ksoap2 is ignoring the timeout for some reason. I'm using ksoap2 2.6.5. Is there any way where in I can execute the

cookie header missing

回眸只為那壹抹淺笑 提交于 2019-12-10 22:44:49
问题 im calling a web service with ksoap,and i want to maintain the session within the web service, im trying to set the session cookie, but from the service response i dont get the session cookie with the session ID, im doing this: URLConnection connection = new URL(url).openConnection(); String cookies = connection.getHeaderFields().toString(); and in the output there is no Cookie header, there are only these headers: cache-contro=[private], content-type=[.....], server=[Microsoft-IIS/7.5], x

KSOAP2 Library…Error sending data to asmx webservice

陌路散爱 提交于 2019-12-10 19:06:45
问题 I have an ASMX webservice setup on Microsoft Azure and I'm trying to send data to the webservice and receive output using an android application. For this purpose, I am using the KSOAP library. On the webservice, I'm checking if the strings are null. If they are, I return an error code "2405" [WebMethod] public string LoginUser(string auth_token, string username) { // All these tests performed, so someone from outside of out application // scope does not attempt to abuse our webservice.

How to parse Complex response with use of ksoap2 library in android

余生颓废 提交于 2019-12-10 17:23:05
问题 Hi all i am parsing following type of response with use of Ksoap2 library but not getting success to get result my request is like this: <soapenv:Header/> <soapenv:Body> <tem:Register> <tem:user> <jir:Area>testArea</jir:Area> <jir:AvailableBalance>0</jir:AvailableBalance> <jir:CityId>1</jir:CityId> <jir:Email>test@test.com</jir:Email> <jir:FullName></jir:FullName> <jir:Gender>M</jir:Gender> <jir:Mobile>111111111</jir:Mobile> <jir:Password>acxcsgsdvs</jir:Password> <jir:Phone>111111111</jir

KSOAP2: How to use HttpsTransportSE?

浪子不回头ぞ 提交于 2019-12-10 17:13:21
问题 I am developing a android app to communicate with an web service that requires an SSL connection. To do that, I want to use HttpsTransportSE, but I can't find tutorials about how to use that class. I am trying to build a new instance, but I don't know exactly the info I must pass to the constructor. A line of my code: HttpsTransportSE httpsTransport = new HttpsTransportSE("address", port, ????, timeout); What string should be at ???? place? If I replace ???? by "" or null, an IOException