News

Copyright © 2008-2019 Paula DiTallo

Tag Cloud



Why can't I test my web service anymore?

If you are getting the message: The test form is only available for requests from the local machine it is because you are probably testing the web service from the remote box you just migrated the web service to!

The quick solution to that is to follow the advice of Juan Ignacio Gelos...
(http://geekswithblogs.net/juang/archive/2005/11/28/61437.aspx
)

...and do the following:

1. Edit the web.config file for your web service application. Add or Edit:

<configuration>
    <system.web>

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

So, the next question you may have is Why does the web.config file that automatically gets generated when building a new web service default to exclude the web service protocols HttpGet/HttpPost?  In a nutshell, Microsoft decided that for security reasons, it would be more practical to disable the feature.  For more details please visit MS: http://support.microsoft.com/default.aspx/kb/819267

Friday, January 25, 2008 11:09 AM

Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Comment:
Verification: