🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.windows.inetexplorer.ie5.programming.dhtml
Article #1

Access Webservice from IE5 Behavior

#1
From: Patrick Connelly
Date: Fri, 30 Aug 2002 20:07
41 lines
2042 bytes
I have the following javascript, pretty much pulled straight from
Microsoft's documentation.  It works great...every other time.  The
first time I run DoIT, I get an "Unknown Server error".  The next time
I get the correct response from the webservice.  If I keep clicking on
the "Run Script" link, every other  time will work.

Any ideas?

<html>                                
<script>
  var iCallID = 0;
  
  function RunLoad(){
    WS.useService("http://localhost/mabmisclookupisapi.dll/wsdl/IMABMiscLookup","MABMiscLookup");
  }               

  function CustReturn(result){
    if(result.error)
    {
        alert(result.errorDetail.string);
    }
    else
    {
        alert('Return: ' + result.value);
    }
  }
  
  function DoIt(){
    iCallID = WS.MABMiscLookup.callService(CustReturn, "GetCustInfo",
222);
  }

</script>
<body onload="RunLoad();">

<div id="WS" style="behavior:url(webservice.htc)" ></div>
<a href="mabmisclookupisapi.dll/wsdl">Show WSDL</a><br>
<br>
<a href="javascript:DoIt()">Run Script</a>
</body>
</html>
Technical Details
Message-ID: <a05d18a2.0208301207.256254b8@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb362,f382f6df0ec2a544,start
X-Google-Attributes: gidfb362,public
X-Google-Thread: 10818c,f382f6df0ec2a544,start
X-Google-Attributes: gid10818c,public
X-Google-ArrivalTime: 2002-08-30 13:07:17 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: dpconnelly@mabpaints.com (Patrick Connelly)
Newsgroups: microsoft.public.windows.inetexplorer.ie5.programming.dhtml,borland.public.delphi.internet
Subject: Access Webservice from IE5 Behavior
Date: 30 Aug 2002 13:07:17 -0700
Organization: http://groups.google.com/
Lines: 41
Message-ID: <a05d18a2.0208301207.256254b8@posting.google.com>
NNTP-Posting-Host: 198.139.138.131
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1030738037 12104 127.0.0.1 (30 Aug 2002 20:07:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 30 Aug 2002 20:07:17 GMT