Strange behavior webservices

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alexander Inochkin

    #1

    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.


  • Trevor Pinkney

    #2
    Re: Strange behavior webservices

    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


    [color=blue]
    > 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.
    >[/color]



    Comment

    Working...