Consuming Web Service with Client Script

Posted in dotnet, vb, vb.net | No Comments »

Hey guys.

I've been researching a problem I've been having for about a week now in regards to calling a Web Service from Client Side JavaScript or jQuery.  My goal is to bind a collection of data to a Check Box List whenever the a value is changed in a text box.  To do this, I need to use JS/jQuery and a Web Service I learned.  I created a .asmx file that I have in a Web Service directory of my app that contains two services for the user control I'm developing.  Both just query a database and return a list of a class I created.  When I call the Web Service in my browser (by navigating to it via URL) I get .NET's premade page that has the Web Service name up top, a list of methods available, etc.  When I invoke one of the methods available it returns the right XML in the browser.

Now, I need to use the web service in Client Side code.  I was reading about Sys.Net.WebServiceProxy but I couldn't get it working because my Intellisense doesn't even recognize Sys as a JavaScript Namespace.  The other thing I tried was using a ScriptManagerProxy, but even then my Intellisense isn't letting me access my Web Service although it's registered on the user control.

Has anyone experienced this before?  If there a setting or a reference I'm missing somewhere?

Thanks in advance.

Similar:

  1. How to add a service reference to a WCF client for a web service requiring client authentication certificate Caution, WCF noobie alert I need to create a WCF client to query a non-WCF web service. The web service is not a WCF service....
  2. WCF – When connection time out in the calling client, how to stop service from executing the request? Hi I have a WCF service that processes some input arguments and retuns result in approximately 4 minutes. Sometimes the calling client may get request...
  3. Passing ASP.NET DataTime to client side JavaScript via web service Hi, I have a web service that I am using to pass data to the client using AJAX.  The web service returns an object that...
  4. What are the best ways for a web service to notify a client about new data available? A server is a PHP RESTful web service, a client can be an AJAX GUI or a desktop Java application. A client has to update...
  5. Consuming web services in VB.NET I am testing web services in .NET for the first time. I am almost there, but I can’t seem to consume the web service. I...

Leave a Reply