By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,883 Members | 955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,883 IT Pros & Developers. It's quick & easy.

Strange behavior webservices

P: n/a
Hi!

I found same strange behavior of ASP.NET. It is possible this is the bug.

Follow the steps:

I create the simple service, http://localhost/Test/service.asmx

When I go to this link in IE SP.NET shows me page what contains “Invoke”
button on it. I can test this service. OK. Late I move this service to
remote server. I can execute this service calling
http://remote_server/Test/service.asmx. This time I do not found “Invoke”
button and can’t test service from IE. OK. But when I change header tag
“Host” in http request from remote_server to localhost (I can do it
connecting to the SOAP Trace Utility on local machine, for example) I can
see “Invoke” button again and can test (invoke) method _on_ _the_ _remote_
server.

This behavior seems me very strange. I tested it on ASP.NET v 1.1.

Can you give me some explanation on it.

Sincerely yours,

Alexander Inochkin.
Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
It's a web.config setting

http://msdn.microsoft.com/library/de...ebservices.asp

If you do add this to your web.config it should solve your problem:

<webServices>
<protocols>
<add name="HttpPost" />
</protocols>
</webServices>

-Trevor
Hi!

I found same strange behavior of ASP.NET. It is possible this is the
bug.

Follow the steps:

I create the simple service, http://localhost/Test/service.asmx

When I go to this link in IE SP.NET shows me page what contains
“Invoke” button on it. I can test this service. OK. Late I move this
service to remote server. I can execute this service calling
http://remote_server/Test/service.asmx. This time I do not found
“Invoke” button and can’t test service from IE. OK. But when I change
header tag “Host” in http request from remote_server to localhost (I
can do it connecting to the SOAP Trace Utility on local machine, for
example) I can see “Invoke” button again and can test (invoke) method
_on_ _the_ _remote_ server.

This behavior seems me very strange. I tested it on ASP.NET v 1.1.

Can you give me some explanation on it.

Sincerely yours,

Alexander Inochkin.


Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.