R
rohitganda
Hi All,
I am trying to access a web service from Internet Explorer6.0 That has
been deployed using Apache Axis-1.2. The code to access the web
service is pasted as Below:
<HTML>
<HEAD>
<TITLE>Web Service Test</TITLE>
<SCRIPT LANGUAGE="JavaScript">
var iCallerID = 0;
function init()
{
alert("Calling Service");
//Establsih the friendly name for the service
service.useService("http://192.168.0.13:8080/axis/HelloServer.jws","myService");
alert("Servcie 192");
var str = new String("Anshu");
iCallerID = service.myService.callService("sayHelloTo", "rohit");
alert("Calling One" + iCallerID);
}
function onWSresult()
{
// if there is an error, and the call came from the call() in init()
if((event.result.error)&&(iCallerID==event.result.id))
{
alert("Error Generated = " + event);
// Pull the error information from the event.result.errorDetail
properties
var xfaultcode = event.result.errorDetail.code;
var xfaultstring = event.result.errorDetail.string;
var xfaultsoap = event.result.errorDetail.raw;
alert("The error string is " + event.result.errorDetail.string);
alert("Fault soap " + xfaultsoap);
alert("The server said " + event.result.value);
// Code to handle the specific errors can be placed here
}
// if there was no error, and the call came from the call() in
init()
else if((!event.result.error) && (iCallerID == event.result.id))
{
// Show the Results
alert("The server said " + event.result.value);
}
else
{
alert("Something else fired the event!");
}
}
</SCRIPT>
</HEAD>
<BODY onLoad = "init()">
<DIV id = "service" style = "behavior:url(webservice.htc)"
onresult="onWSresult()">
</DIV>
</BODY>
</HTML>
This client script tries to access a Web Service, The java class is
named HelloServer and the method which Iam trying to call is named as
sayHelloTo, (this method accepts a string and returns a string).
When I load this page the error shown on the page is SOAPNull error.
Can anybody help me with this?
Also guide me if there is any other mehtod of Accessing the WebService
deployed on Tomact+AXIS using InterNetExplorer.
Thanks & regards,
Rohit Ganda
I am trying to access a web service from Internet Explorer6.0 That has
been deployed using Apache Axis-1.2. The code to access the web
service is pasted as Below:
<HTML>
<HEAD>
<TITLE>Web Service Test</TITLE>
<SCRIPT LANGUAGE="JavaScript">
var iCallerID = 0;
function init()
{
alert("Calling Service");
//Establsih the friendly name for the service
service.useService("http://192.168.0.13:8080/axis/HelloServer.jws","myService");
alert("Servcie 192");
var str = new String("Anshu");
iCallerID = service.myService.callService("sayHelloTo", "rohit");
alert("Calling One" + iCallerID);
}
function onWSresult()
{
// if there is an error, and the call came from the call() in init()
if((event.result.error)&&(iCallerID==event.result.id))
{
alert("Error Generated = " + event);
// Pull the error information from the event.result.errorDetail
properties
var xfaultcode = event.result.errorDetail.code;
var xfaultstring = event.result.errorDetail.string;
var xfaultsoap = event.result.errorDetail.raw;
alert("The error string is " + event.result.errorDetail.string);
alert("Fault soap " + xfaultsoap);
alert("The server said " + event.result.value);
// Code to handle the specific errors can be placed here
}
// if there was no error, and the call came from the call() in
init()
else if((!event.result.error) && (iCallerID == event.result.id))
{
// Show the Results
alert("The server said " + event.result.value);
}
else
{
alert("Something else fired the event!");
}
}
</SCRIPT>
</HEAD>
<BODY onLoad = "init()">
<DIV id = "service" style = "behavior:url(webservice.htc)"
onresult="onWSresult()">
</DIV>
</BODY>
</HTML>
This client script tries to access a Web Service, The java class is
named HelloServer and the method which Iam trying to call is named as
sayHelloTo, (this method accepts a string and returns a string).
When I load this page the error shown on the page is SOAPNull error.
Can anybody help me with this?
Also guide me if there is any other mehtod of Accessing the WebService
deployed on Tomact+AXIS using InterNetExplorer.
Thanks & regards,
Rohit Ganda