Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webpage calling WebService on Page Load

Status
Not open for further replies.

stevensteven

Programmer
Joined
Jan 5, 2004
Messages
108
Location
CA
For some reason my code is not working:

<html>
<head>
<script language=&quot;JavaScript&quot;>
function onDoService() {
}
function doService() {
svcElm = document.getElementById(&quot;thebody&quot;);
svcElm.useService(&quot; Service1.asmx/HelloWorld?WSDL&quot;,&quot;Hello&quot;);
svcElm.Hello.callService(&quot;HelloWorld&quot;);
}
</script>
</head>
<body id=&quot;thebody&quot; style=&quot;behavior:url(webservice.htc)&quot; onload=&quot;doService()&quot;>
</body>
</html>

Does anyone know what is wrong?

Thanks for the help!

Steven
 
The only thing I see immediately is the &quot; characters in the call to the webpage. Most request.parameters are ParameterName=StringValue. This may very well not be the issue, just the first thing that hit me.

Eva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top