ksoap2

java.lang.noclassdeffounderror: org.ksoap2.serialization.SoapObject

风格不统一 提交于 2019-11-26 09:59:20
问题 I got this no class def error: org.ksoap2.serialization.SoapObject error ever since I have updated Eclipse ADT Plug in and SDK Manager. I was using ksoap2-android-assembly-2.4-jar-with-dependencies.jar as external library for KSOAP. I thought that may be deprecated so i also added 2.6.2 version from here:http://code.google.com/p/ksoap2-android/source/browse/m2-repo/com/google/code/ksoap2-android/ksoap2-android-assembly/2.6.2/ksoap2-android-assembly-2.6.2-jar-with-dependencies.jar I still get

KSOAP 2 Android with HTTPS

百般思念 提交于 2019-11-26 09:35:34
问题 I am using KSOAP2 to manage SOAP in Android but it use https for the SOAP url and I am getting this error: javax.net.ssl.SSLException: Not trusted server certificate A normal error because the certificate is untrusted, but anyone knows how to workaround with this error? I can not manage the certificate because is from a other company and I don\'t have access to change it. Thanks 回答1: I can't comment yet so i post my comments to rallat answer here. His solution works but it needs further

how to set soap Header using ksoap2 - android

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 07:37:30
问题 I need to set the soap header information as part of authentication of a web method. I\'m using ksoap2 API to call .NET web service. Here is the soap header with request. <soap:Header> <DTHeader xmlns=\"http://myServer.com/webservices/\"> <Username> string </Username> <Password> string </Password> </DTHeader> </soap:Header> <soap:Body> <MyTestMethod xmlns=\"http://myServer.com/webservices/\"> <ID> string </ID> <TransID> guid </TransID> </MyTestMethod> </soap:Body> Can you please provide the

How to call a .NET Webservice from Android using KSOAP2?

久未见 提交于 2019-11-26 06:16:59
I have a problem while calling a webservice. I have a .NET web service on the server, and I am using KSOAP2 (ksoap2-j2se-full-2.1.2) in Android. While running the program I got an runtime exception like "org.ksoap2.serialization.SoapPrimitive". What should I do? Here is my code. package projects.ksoap2sample; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.*; import android.os.*; import android.widget.TextView; public class ksoap2sample extends

ksoap2 org.xmlpull.v1.xmlpullparserexception expected start_tag error

一笑奈何 提交于 2019-11-26 05:30:00
问题 Below is my code, which I have written to validate user log in credentials. The web service written using .net private static final String SOAP_ACTION = \"http://tempuri.org/getCredentials\"; private static final String OPERATION_NAME = \"getCredentials\"; private static final String WSDL_TARGET_NAMESPACE = \"http://tempuri.org/\"; private static final String SOAP_ADDRESS = \"http://myStaticIP:portNo/WebSiteName/CommunicationInterface.asmx\"; SoapObject request = new SoapObject(WSDL_TARGET

How to call a .NET Webservice from Android using KSOAP2?

狂风中的少年 提交于 2019-11-26 01:57:00
问题 I have a problem while calling a webservice. I have a .NET web service on the server, and I am using KSOAP2 (ksoap2-j2se-full-2.1.2) in Android. While running the program I got an runtime exception like \"org.ksoap2.serialization.SoapPrimitive\". What should I do? Here is my code. package projects.ksoap2sample; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE;