ksoap2

KSOAP never timeout

纵饮孤独 提交于 2019-11-28 10:32:45
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(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); httpTransport = new HttpTransportSE(URL, MSG_TIMEOUT)

SOAP web service on android

我的梦境 提交于 2019-11-28 09:50:10
问题 I am am trying to connect to a SOAP web service using ksoap2 library. I have read a bunch of docs about it, but i am stuck as my request is not an ordinary one. I need to specify some headers prior to sending the request. when is use a soap client to test the webservice i also need to put this in the soap enveope header section: <SOAP-ENV:Header> <mns:AuthIn xmlns:mns="http://enablon/wsdl/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <UserInfo xsi:type="wsdlns

How do I import jars in an android project?

不羁的心 提交于 2019-11-28 09:33:25
问题 I am using Eclipse. I have followed multiple tutorials for setting up ksoap on my android project. The ksoap2 jar file is included in my build path. The tutorial includes the lines below. SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope = new SoapSerializaionEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); SoapObject is underlined in red and when I hover over it I'm not prompted with an option to import it. Create class,

Ksoap2 in android cannot serialize

吃可爱长大的小学妹 提交于 2019-11-28 06:45:36
问题 I use ksoap2 in android to send list of numbers as string But it have error: java.lang.runtimeexception cannot serialize I search a solution to this error but result not change Can Help me please public String Send(ArrayList<String> contactlist) { try{ SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,OPERATION_NAME); PropertyInfo pi=new PropertyInfo(); pi.setType(String.class); pi.setName("contactlist"); pi.setValue(contactlist); request.addProperty("contactlist", pi); StrictMode

Android with WCF web service using ksoap2 - error SoapFault - faultcode: 'a:InternalServiceFault'

最后都变了- 提交于 2019-11-28 05:09:09
问题 I have done a simple project to call wcf web service using ksoap2. But when it calls envelope.getResponse(); it gives error saying Error: SoapFault - faultcode: 'a:InternalServiceFault' faultstring: 'The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the

exception while using ksoap2 library for android

痴心易碎 提交于 2019-11-28 04:25:37
问题 I'm using Ksoap2 version 2.5.4 in my maven enabled android Project. Any reference to the Ksoap specific classes is throwing this exception 04-18 20:35:15.429: ERROR/dalvikvm(626): Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method com.rare.Main.fetchSoapResponse 04-18 20:35:15.662: ERROR/AndroidRuntime(626): FATAL EXCEPTION: main 04-18 20:35:15.662: ERROR/AndroidRuntime(626): java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject 04-18 20:35:15.662

xmlpullparserexception expected: START_TAG

佐手、 提交于 2019-11-28 02:02:55
问题 I have the following: public String searchRecipes( String searchString, int pageNumber ) throws Exception { SoapObject _client = new SoapObject( "", "searchRecipes" ); _client.addProperty("searchString", searchString); _client.addProperty("pageNumber", pageNumber); SoapSerializationEnvelope _envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11 ); _envelope.bodyOut = _client; Marshal dateMarshal = new MarshalDate(); dateMarshal.register(_envelope); HttpTransportSE _ht = new

How to create SOAP request via ksoap2

て烟熏妆下的殇ゞ 提交于 2019-11-28 00:36:30
<?xml version="1.0" encoding="UTF-8"?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Header/> <S:Body> <ns2:FReadStatus xmlns:ns2="http://poweb13/"> <arg0>000D6F0000</arg0> </ns2:FReadStatus> </S:Body> </S:Envelope> i'm working in an android project which i want to consume some JAX-WS. The services are made by someone else so i can't change anything of them.I want to sent the above SOAP message with this written code but the only thing i receive when call them is java.lang.NullPointerException private static final String NAMESPACE = "http://poweb13/"; private static final

getting java.io.IOException: HTTP request failed, HTTP status: 404 in ksoap2 while passing xml data to soap1.2 android

a 夏天 提交于 2019-11-28 00:31:32
i have to pass <?xml version='1.0' encoding='utf-8' ?> <hello><username>test@test.com</username> <password>test</password></hello> to Wsdl <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"

passing objects to wcf soap service from android using ksoap2; it sends and receives 0

馋奶兔 提交于 2019-11-27 23:12:56
I am trying to use ksoap2 to access methods in a wcf soap service from android. I was able to successfully pass simple type parameters to the method, it worked fine. But when I try to pass objects, the wcf method is receiving 0 for all the object values. I have used the same SOAP service with a WP7 app and it runs fine. I have 2 methods in my service, ksoapadd and addParam. addParam takes in two integer and returns their sum(this works). ksoapadd takes in an object of class testadd which has two integer elements and ksoapadd returns their sum(this gets and sends 0). I think it has something to