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

Discussion in 'Java' started by rohitganda@gmail.com, Apr 7, 2005.

  1. Guest

    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
     
    , Apr 7, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?a3N0cml5aG9u?=

    Open new Internet Explorer window from web service or Web App

    =?Utf-8?B?a3N0cml5aG9u?=, Aug 3, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    6,263
    Kevin Spencer
    Aug 3, 2005
  2. cmay
    Replies:
    0
    Views:
    1,164
  3. Roedy Green

    Internet Explorer Java Failure

    Roedy Green, Apr 19, 2004, in forum: Java
    Replies:
    15
    Views:
    4,079
    Steven J Sobol
    May 1, 2004
  4. Ed Hauptman
    Replies:
    7
    Views:
    1,074
    Ed Hauptman
    Aug 7, 2009
  5. Howard Jess

    Internet Explorer insertRow/insertCell failure

    Howard Jess, Nov 4, 2005, in forum: Javascript
    Replies:
    2
    Views:
    337
    GĂ©rard Talbot
    Nov 5, 2005
Loading...

Share This Page