Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 68
Registered: ‎09-29-2009
My Device: Not Specified

How to access webservice in web development using VS 2008.

Hello,

           i am creating web application using VS 2008. i am using webservice in javascript.But it isn't working in BB browser.bt it's working in IE perfectally.How to do that.?

 

My code is:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <title>Hello World</title>
  <script language="JavaScript" type="text/javascript">
   var iCallID;
   function InitializeService()
   {
    service.useService("http://localhost:1394/MyWebService.asmx?wsdl", "HelloWorldService");
    service.HelloWorldService.callService("HelloWorld");
    }
   
     function ShowResult()
     {
     alert(event.result.value); }
    
  </script>
    </head>
     <body onload="InitializeService()" id="service" style="behavior:url(webservice.htc)" onresult="ShowResult()">
  
      </body>
        </html>

 

Thx

Pankaj Pareek.