Get controller method caller (3rd party webservice)

Posted by bastijn on Stack Overflow See other posts from Stack Overflow or by bastijn
Published on 2010-06-05T07:46:39Z Indexed on 2010/06/05 7:52 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

Is it possible to retrieve the URL of a 3rd party webservice calling my controller method? Things like Request.Current.Url refer to my own URL (/someController/someAction/).

The 3rd party webservice is sending HTTP POST data to my /someController/someAction and I wish to send back a HTTP POST message to the caller of the method, the 3rd party webservice, without using

return Content["some response"]

which will force me to exit the method. Since the answer is plain text I would like to send it using HTTP Post.

What I actually try to do is respond to the calling webservice without exiting my method (return Content() will exit) so I can call other methods to process the data send to me by the webservice. I want to first tell the webservice I received their stuff and than process, in this way when a processing error occurs the webservice at least will not resend old data. Is there another way to do this than building your own HTTP post?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc