Failure in Accessing a Web Service from Internet Explorer? Can Anybody help

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top