Testing Web Service(ASMX) Remotely (yes, you can!)

posted on Tuesday, December 09, 2008 12:45 PM

Often we test web services by either locally on our workstations or remoting to the server and accessing the asmx page.  If you try to access the asmx remotely however you are not given the option to test the server (by using the server url address).  By adding the following code the <system.web> section of asmx web site web.config you can now test your services remotely.

<webServices>
        <protocols>
            <add name="HttpSoap12"/>
            <add name="HttpSoap"/>
            <add name="HttpGet"/>
            <add name="HttpPost"/>
        </protocols>
</webServices>

The above code addresses the issue related to "The test form is only available for requests from the local machine." error message.

category: Asp.Net

Comments


No comments posted yet.
Post Comment
Title *
Name *
Email
Url
Comment *
Please add 3 and 5 and type the answer here:

About Me

An engineer by training and a software developer at heart. My techniques and approaches meld engineering approaches with software technology.

Core to these principles is a systematic approach to the development of software with a strong lifecycle and process management emphasis through adoption of mature technologies.

Ten years designing heavy structural steel and concrete structures and 12 years in the software development profession have embedded strong project management and business knowledge in my approaches.

Subscribe to Rss Feed


Follow me on twitter @dyardy