title: Web Service, accessing in html page ? Getting error?
body: <p>Web service, Accessing Service in html page i am getting error, this is my code.</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  &lt;head&gt;
  &lt;title&gt;Untitled Page&lt;/title&gt;
  &lt;script type ="text/javascript"  language="JavaScript"&gt;
   function InitializeService()     
   {
      service.useService(http://www.freewebservicesx.com/GetGoldPrice.asmx?WSDL,
      "GetCurrentGoldPrice");
  
   }
  
   Function getgold()
   {
     var users="xxxxx";
     var pawd="xxx";
     service.GetCurrentGoldPrice.callService("GetCurrentGoldPrice",users,pawd);
   }
  
     function ShowResult()
     {
       alert(event.result.value);
     } 
  
   &lt;/script&gt;
  
   &lt;/head&gt;
    &lt;body  onload="InitializeService()" id="service"  onresult="ShowResult()"&gt;
    &lt;button onclick="getgold()"&gt;Get Age&lt;/button&gt;
    &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>