Skip to content

Web Service not working on production

March 23, 2013

A few days back I had the weirdest problem ever. I used a thirdparty grid “Flexigrid” and hooked it up with my custom AMSX webservice. I implemented all Add/Edit/Delete functionality via webservices. It worked fantastically! I uploaded it to production server. The grid showed the data via webservice but somehow the Edit/Delete functionality would not work. No error message was visible.

After countless hours searching for a solution I found the solution to this problem. The problem was that HTTP GET and HTTP POST are disabled on Servers by default due to security reasons. To allow our application to access webservice we must enable HTTP Get and HTTP POST. To this we can either edit machine.config or update the web.config in the root folder of our webservice. Add the following lines in the web.config:

            <add name="HttpGet"/>
            <add name="HttpPost"/>

This addition in the web.config will get your webservice running.

When HTTP POST and HTTP GET are disabled on a server the default service help page for the XML Web service will continue to work, but a prospective client will not be able to test the XML Web service using the Invoke button on the service help page. To debug the XML Web service in Microsoft Visual Studio .NET, you must create a test client program. For a production XML Web service, both of these drawbacks are easily overcome because Visual Studio .NET makes it easy to create a client to an XML Web service with the Add Web Reference command.

Hope this was useful to someone. Please leave your comments below and let me know if this was helpful or not.

Reference: Mohsin Javaid (


From → Programming

  1. Vaughn permalink

    Wow, fantastic weblog structure! How lengthy have you ever
    been running a blog for? you made blogging glance easy.
    The full look of your website is fantastic, let alone
    the content material!

  2. permalink

    Hey very cool web site!! Man .. Beautiful .. Wonderful .

    . I will bookmark your site and take the feeds also?
    I am glad to seek out numerous useful information
    here in the submit, we need develop extra strategies in this regard, thanks for sharing.
    . . . . .

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: