ASP.Net

Developing Webservices in ASP.NET is now less complex, thanks goes to tools like Visual Studio .NET, Visual Studio 2005 which reduce the over head of manually creating the proxy files and schema.

We can invoke a service by opening URL in browser as <YourServiceName>.asmx and trying to invoke the webmethods available, from the local machine.

Usually the service lies on a different machine other than the machine where the application which consumes the service, resides.

If you will invoke services from other machine, by default, it will give message “The test form is only available for requests from the local machine.

To enable the Service to be invoked from remote machine, we need to add the following settings to the Web.Config file of the Web Service Application.

<system.web>
<webServices>
<protocols>
<add name=”HttpGet”/>
<add name=”HttpPost”/>
</protocols>
</webServices>
</system.web>

This will enable the Web service to be able to invoked from remote machine. However, make a note that this invoking would work only for simple data types and would not work in the case of complex datatypes.
Similarly, this setting would only be useful in development / testing scenarios and it is advisable to remove / comment the above section when releasing for production, due to security reasons.

Happy Web Servicing !!!

Tags:

Most of the Bloger are starting there blog by telling about them self and there experience, but AS I have decided that I want my Blog dedicated to all the IT fields Professional and IT start from Programming.

ALL MOST all of you have started your programming career with Application (If it is .Net, ASP, JSP, C++) your first program will be "Hello World! ".

When you install WordPress blog , the default blog is also created as Hello word!. after Installation most of the blogger remove post and start talking about him self.

This is the first time I have started writing my own blog using Word Press and configured.

I would like to thanks Word Press for giving such a nice open source blog.

- C

While the band