|
|
|
สอบถามการเชื่อมต่อกับ Web Services ด้วย ksoap (url ที่เป็น https) ครับ !!!!! |
|
|
|
|
|
|
|
Code (Android-Java)
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("strUser", usr);
request.addProperty("password", pass);
request.addProperty("RFC", RFC);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE transport = new HttpTransportSE("myhttpsURL");
try {
transport.call(SOAP_ACTION, envelope);
SoapObject result = (SoapObject) envelope.getResponse();
res = result.toString();
} catch (Exception e) {
res = "Error: " + e.toString();
}
return res;
}
|
|
|
|
|
Date :
2016-12-27 13:10:25 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|