Hi Expert,
I have tried to use the following SOAP request in java applet viewer. It works fine.
String url = "
http://170.65.186.162/WsNew/recordingservice.asmx";
URL HttpURL = new URL(url);
conn = (HttpURLConnection)HttpURL
.openConne
ction();
conn.setDefaultUseCaches (false);
conn.setUseCaches(false);
conn.setDoInput(true);
conn.setRequestProperty("P
OST", "/WsNew/recordingservice.a
smx HTTP/1.1");
conn.setRequestProperty("H
ost", "170.65.186.162");
conn.setRequestProperty("C
ontent-Typ
e", "text/xml; charset=\"utf-8\"");
conn.setRequestProperty("S
OAPAction"
, "
http://tempuri.org/GetRecordingID")
;
conn.setRequestMethod("POS
T");
..........................
..........
But when I try to run it in IE, it show the following error message:
java.lang.ClassCastExcepti
on: com/ms/net/wininet/http/Ht
tpURLConne
ction
at com/pls/util/HttpConnectio
nTestTT.ma
in
at com/pls/util/WsNew.GetReco
rdID
at com/pls/base/CallCenterApp
$1.run
at java/lang/Thread.run
Thanks!
Start Free Trial