Test .asmx file with web browser in remote site

G

Guest

Wehen locally access it, the browser can show me the test form for the
Webmethod.
But when I access it from remote machine, I get: The test form is only
available for requests from the local machine
------------------------
readTextFromFile
Open, read the file, and return it as a string

Test
The test form is only available for requests from the local machine.
SOAP
The following is a sample SOAP request and response. The placeholders shown
need to be replaced with actual values.

POST /MyFileWebService/FileServices.asmx HTTP/1.1
Host: 10.249.119.17
Content-Type: text/xml; charset=utf-8
Content-Length: length
--------------------------------
Is this normal message? or something is wrong in my code?

Thanks

David
 
G

Guest

Message is correct. If you want to test the web service from a remote machine
you need to consume the web service. You will get test form only in the local
machine where the web service is hosted.
 
Joined
Apr 12, 2009
Messages
1
Reaction score
0
TEST page.

Put the following protocol entries into the web.config file : -

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

For More information you can see the Microsoft Support link http: / /support.microsoft.com/kb/819267
this will give you information on how MS have changed the Post behavior for security Reasons.
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top