android-ksoap2

How can i attach ssl cert with ksoap2 android

南笙酒味 提交于 2020-06-01 05:13:18
问题 I have implemented ksoap2 (https://simpligility.github.io/ksoap2-android/getting-started) in my android project. Now i have a valid SSl certificate and now i want to make call every api with using that ssl certificate. My web service has HTTPS val envelope = SoapSerializationEnvelope(SoapEnvelope.VER11) envelope.setOutputSoapObject(soapObject) envelope.dotNet = true val httpTransportSE = HttpTransportSE(URL) try { httpTransportSE.call(SOAP_ACTION, envelope) val soapPrimitive = envelope

How can i attach ssl cert with ksoap2 android

会有一股神秘感。 提交于 2020-06-01 05:12:45
问题 I have implemented ksoap2 (https://simpligility.github.io/ksoap2-android/getting-started) in my android project. Now i have a valid SSl certificate and now i want to make call every api with using that ssl certificate. My web service has HTTPS val envelope = SoapSerializationEnvelope(SoapEnvelope.VER11) envelope.setOutputSoapObject(soapObject) envelope.dotNet = true val httpTransportSE = HttpTransportSE(URL) try { httpTransportSE.call(SOAP_ACTION, envelope) val soapPrimitive = envelope

How to Pass json array as Parameter To A Webservice Using Ksoap2 in android

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-15 19:48:18
问题 My code is given below: public void testWebServiceForJson() { TextView textView = new TextView(this); setContentView(textView); SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME); ArrayList<String> list = new ArrayList<String>(); list.add("blah"); list.add("bleh"); JSONArray jsArray = new JSONArray(list); String mStringArray[] = { "String1", "String2" }; JSONArray mJSONArray = new JSONArray(Arrays.asList(mStringArray)); request.addProperty("jsonArray", mJSONArray);

how to call https wcf soap from android with WSHttpBinding

末鹿安然 提交于 2020-01-17 03:03:29
问题 Is there any way to call HTTPS wcf ksoap from Android with WSHttpBinding? With http and basichttpbinding it is working fine but I can't get it to work with HTTPS and WSHttpBinding. 回答1: For WSHttpBinding Support KSoap will support WSHttpBinding. Use Version12 tag. SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER12); soapEnvelope.implicitTypes = true; soapEnvelope.dotNet = true; soapEnvelope.headerOut = SoapUtils.buildHeader(url, soapAction); Add the

How to get NAMESPACE, SOAP_ACTION, URL and METHOD_NAME to call SOAP request in android

假装没事ソ 提交于 2020-01-07 08:50:39
问题 I have a url for calling in code I should call it with Ksoap2 library in code. My code is in below, final String NAMESPACE =""; final String URL =""; final String METHOD_NAME = ""; final String SOAP_ACTION = ""; SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(HoldPayment.Amount, "1000"); request.addProperty(HoldPayment.CallbackURL,"http://www.yoursoteaddress.ir/verify.php"); request.addProperty(HoldPayment.Description,"pule kharide tala"); request.addProperty

Android:unable to get data from webservice using kSoap

∥☆過路亽.° 提交于 2020-01-07 02:56:07
问题 hi in my app i am trying to check the username and password in database from webservice and if its true will show success message or failed message, but unable to show the status message public class AndroidLoginExampleActivity extends Activity { private final String NAMESPACE = "http://ws.userlogin.com"; private final String URL = "http://localhost:8080/Androidlogin/services/Login?wsdl"; private final String SOAP_ACTION = "http://ws.userlogin.com/authentication"; private final String METHOD

Android org.xmlpull.v1.XmlPullParserException error

China☆狼群 提交于 2020-01-06 18:39:50
问题 Trying to do a basic web service pull and I keep getting an error: org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <html>@2:44 in java.io.InputStreamReader@21f12310) I have been stuck on this for 3 days now. I have looked at pretty much every example on StackOverflow but still no avail idk what else and I feel like I have looked at it so many times that I'm just over looking something now... Here is my code;