Thread View: microsoft.public.windows.inetexplorer.ie5.programming.dhtml
1 messages
1 total messages
Started by Patrick Connelly
Fri, 30 Aug 2002 20:07
Access Webservice from IE5 Behavior
Author: Patrick Connelly
Date: Fri, 30 Aug 2002 20:07
Date: Fri, 30 Aug 2002 20:07
41 lines
2042 bytes
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>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads