Wednesday, March 21, 2012

Web Service - Invoking on remote server and scheduling

Hello,

I created a web service on my local computer. This web service has one Web Method, which I can [INVOKE] the method by pressing a button on my local computer ie->http://localhost:2234/mywebservice.asmx. However, when I upload this webservice to my remote account at easycgi, the [INVOKE] is missing.

My question is why is the [INVOKE] button missing?
Do I need to create a proxy using WSDL in order to run my web method?
Also, does anyone know how to schedule a web service to run at specified times, if you do not have access to the host server?

Thanks,

-Robert

Hello,

I am going to answer my own question here. I was able to set up a proxy by creating a web reference to my webservice in vs2005. Using the proxy I called my web service method. I am still not sure why the [INVOKE] button was missing on my .asmx file when I uploaded, but no matter.

My web host provider, easycgi, provides a script scheduler. The script can be an .aspx that runs code on the page load event. By calling my web service method on page load event I am able to call my web service at specified times.

-Robert


Gratz on sorting it out Robert

A security feature of WebServices is that the invoke option will only appear on local webservices. There is a security setting you can add to the web.config to allow this remotely but i can't remember what is was. It was a VS2003 feature as i recall and it's likely been removed since .net 2.0

I could probably dig it out though if you need, let me know. It can be handy to check a remote service via the browser

No comments:

Post a Comment