ksoap

Web service recieves null parameters from application using ksoap method

亡梦爱人 提交于 2019-12-12 16:26:21
问题 I've seen topics discussing this but no one has seemed to post a solution. At the moment, I'm testing passing parameters to my .Net web service. When the parameters reach the web service it adds it with an additional string then returns it too my application; but all I'm returning is the string message, not the parameter I passed. Is there something wrong with my web service or my soap method? Soap: SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("A", "workowr

Error in authentication when subscribing to a sharepoint webservice using ksoap2-android

为君一笑 提交于 2019-12-12 09:43:52
问题 I am writing an Android application that will use the getlist() method of the lists.amx service in sharepoint 2010. I am using ksoap2-android to handle my soap messages. When I try to authenticate I get an xmlpullparser exception expected START_TAG... Why will the following code not authenticate to the sharepoint server? Here is my code: public class SharepointList extends Activity { private static final String SOAP_ACTION = "http://schemas.microsoft.com/sharepoint/soap/GetList"; private

Login Web Service Exception(716): java.lang.ArrayIndexOutOfBoundsException: length=0; index=0

跟風遠走 提交于 2019-12-11 04:37:49
问题 ****android side:** Permission is also added in Android mainfest.xml **webMethod.java**** SoapObject request = new SoapObject(SOAPNAMESPACE,SOAPLOGINMETHOD); request.addProperty("Username",Username); request.addProperty("Password",Password); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); Log.d("parameter out",""+ envelope.bodyOut.toString()); try{HttpTransportSE httpTransport = new

Getting error when using KSoap library to consume .NET web services

∥☆過路亽.° 提交于 2019-12-11 02:27:35
问题 I have been using ksoap library to consume .net web service. and I am getting this kind of error "expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG @1:7 in java.io.InputStreamReader@40d0c7d8)" I have searched every where but I couldn't find any good help. Here is the code where I try to consume the web service. public class WebInvoke { private static final String NAMESPACE = "http://tempuri.org/" ; private static final String METHOD_NAME = "login";

Hostname was not verified ANDROID

戏子无情 提交于 2019-12-04 05:19:24
问题 I am using ksoap lib to call the webservice . In some cases service run correctly but in a case it gives Host name was not verified below is my code for calling webservice . HttpTransportSE httpTransport = new HttpTransportSE(URL, MessageConstant.TIMEOUT_TIME); httpTransport.debug = true; // this is optional, use it if you don't want to use a packet sniffer to check what the sent message was (httpTransport.requestDump) httpTransport.call(SOAP_ACTION, envelope); // send request here is my log

When to use Soapobject and SoapPrimitive

丶灬走出姿态 提交于 2019-12-03 17:45:17
问题 I have been working with ksoap2 lately. I am still confused whether what is the EXACT difference between SoapObject and SoapPrimitive . And when to use them. I guess its something related to string and arrays. Is it true? I found some links but got confused. Can anyone tell me the difference and when to use which one in the simplest form of English? Thanks :) 回答1: SoapObject is used when we need to get the Response for a Class type, like Customer, Product, etc. (From the SoapObject you need

Android KSOAP2 SSL java.security.cert.CertPathValidatorException

允我心安 提交于 2019-12-03 04:07:45
I tried connect to my JAX-WS service over SSL. Without SSL all works. Method in AsyncTask: HttpsTransportSE androidHttpTransport = new HttpsTransportSE("10.0.2.2", 8181, "/Server/?wsdl", 10000); ((HttpsServiceConnectionSE) androidHttpTransport.getServiceConnection()).setSSLSocketFactory(trustAllHosts() .getSocketFactory()); //androidHttpTransport.debug=true; androidHttpTransport.call(getSoapAction(method), envelope); Get SSLContext public SSLContext allowAllSSL() { SSLContext context = null; TrustManager[] trustManagers = null; try{ TrustManagerFactory tmf = TrustManagerFactory.getInstance

ksoap timeout behind proxy in android

 ̄綄美尐妖づ 提交于 2019-12-02 08:12:59
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? Ksoap does not work behind a proxy. inorder to make that working.. download the HttpTransportSE.java and ServiceConnectionSE.java from sourceforge. Create a package with HttpTransportSE and ServiceConnectionSE. In

Parsing complex soap response

天涯浪子 提交于 2019-12-01 07:14:16
I'm building my first application in android which consumes a wcf service.I'm using ksoap2 to parse the response.The response is actually an array of objects defined in C#.I did this following this really helpful guide .Now my problem is that I need to consume a wcf service which returns again an array of objects in C# but this time some properties of these objects are other objects.So my question is how can I map the inner objects so that i can parse their properties? In case I was unclear, I need to parse an object like this: public class OutterObject { private InnerObject1 io1; private

Parsing complex soap response

孤者浪人 提交于 2019-12-01 05:01:38
问题 I'm building my first application in android which consumes a wcf service.I'm using ksoap2 to parse the response.The response is actually an array of objects defined in C#.I did this following this really helpful guide.Now my problem is that I need to consume a wcf service which returns again an array of objects in C# but this time some properties of these objects are other objects.So my question is how can I map the inner objects so that i can parse their properties? In case I was unclear, I