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

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.

Author

Admin

comments powered by Disqus

Categories

Recent Tweets

Retweeted by @dyardy Hey C# peeps, we’re trying C# in browser with reference content. Try it here: docs.microsoft.com/dotnet/csharp/… reply with feedback /cc @LadyNaggaga
23 Amazing Vintage Photographs Taken Inside WWII Tank Factories ~ vintage everyday vintag.es/2017/10/23-ama…
When is AI NOT Search? Artificiality intelligence==Search Engine (there cases when this is not true)
@projectedxyz Large data vs big data? Industry has so misused buzz words to sell products, and so you end up nothi… twitter.com/i/web/status/9…