473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to test Webservice on the Web?

kai
Hi, All
I created a Webservice locally, and it returns all coustomers names in XML
format when I click "Invoke" button. But when I test from the Web, it says

"The test form is only available for requests from the local machine. ".

Can I get the same invoke result from local computer on the Web?

Thanks

Kai

Nov 18 '05 #1
2 1615
Hi Kai,

Based on my research and experience, the following article is useful to
you. Please refer to it carefully.

INFO: HTTP GET and HTTP POST Are Disabled by Default
http://support.microsoft.com/default...b;en-us;819267
"...
The .NET Framework 1.1 defines a new protocol that is named
HttpPostLocalhost. By default, this new protocol is enabled. This protocol
permits invoking Web services that use HTTP POST requests from applications
on the same computer. This is true provided the POST URL uses
http://localhost, not http://hostname. This permits Web service developers
to use the HTML-based test form to invoke the Web service from the same
computer where the Web service resides.

When you try to access the Web service from a remote computer you do not
see the Invoke button. And, you receive the following error message:

The test form is only available for requests from the local machine
..."

Does it answer your question? If I have misunderstood your concern, please
feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #2
Thank you very much for your help, it works now.

Kai
-----Original Message-----
Hi Kai,

Based on my research and experience, the following article is useful to you. Please refer to it carefully.

INFO: HTTP GET and HTTP POST Are Disabled by Default
http://support.microsoft.com/default.aspx?scid=kb;en- us;819267"...
The .NET Framework 1.1 defines a new protocol that is named HttpPostLocalhost. By default, this new protocol is enabled. This protocol permits invoking Web services that use HTTP POST requests from applications on the same computer. This is true provided the POST URL uses http://localhost, not http://hostname. This permits Web service developers to use the HTML-based test form to invoke the Web service from the same computer where the Web service resides.

When you try to access the Web service from a remote computer you do not see the Invoke button. And, you receive the following error message:
The test form is only available for requests from the local machine ..."

Does it answer your question? If I have misunderstood your concern, please feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Benne Smith | last post by:
In our company, i have three servers; 1) a development server (mine only - here i make daily changes and test my stuff) 2) a test server (for the users to test milestone builds - changes weekly)...
1
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
2
by: kai | last post by:
Hi, All I created a Webservice locally, and it returns all coustomers names in XML format when I click "Invoke" button. But when I test from the Web, it says "The test form is only available for...
3
by: Alexis | last post by:
Hello, I have developted a webservice application. The application has a few webservices each webservice with their own webmethods of course. I want to measure the performance of my site. I look...
2
by: Chris Fink | last post by:
Is it possible to place a breakpoint in a webservice that when the client attempts to consume it, I can step through the webservice on the server using a debugger? The above is a question when...
0
by: Rene Ruppert | last post by:
Hi, On the web I found a simple sample/tutorial for a webservice, some kind of chat software. I implemented the server and the client. When I run the client form on the host PC everything works...
3
by: Maxwell2006 | last post by:
Hi, When I run a web service project, ASP.NET shows me a default web method invoke page. How can I disable/modify the default test (or method invoke) page of the ASP.NET web services? ...
3
by: Pebble | last post by:
Hi folks, I have a WebService that simply acts as a thin wrapper to a .Net dll. Literally almost zero code in the WebService. Parameters passed to the WebService are simply used as...
5
by: Andy | last post by:
Hi, below is simple webservice wich I'd like to test in my local host and when I put http://localhost/test.asmx I'm getting this error: XML Parsing Error: no element found Location:...
1
by: splendid9 | last post by:
hi all, I am trying to test my webservice facade, i also need to create a mock object for that which i hav created in my original project. I need to create a mock object to test my facade in my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.