468,720 Members | 1,665 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,720 developers. It's quick & easy.

Strange behavior webservices

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
1 1263
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.

Similar topics

7 posts views Thread by Mike Livenspargar | last post: by
reply views Thread by ivb | last post: by
3 posts views Thread by Jeremy Chapman | last post: by
1 post views Thread by Nicholas Palmer | last post: by
19 posts views Thread by david | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Oskars | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.