0

Hi All,
I have a bit detailed question. So, please be kind enough to take few minutes and give me an advice.
Currently, we have an ASP.NET based Invoice engine application. It basically handles the customer details with their invoice details. One of our client told us that he cannot access our web services or database to feed the data. But he said, his system can send the data via HTTP POST to our application and his system wants the response about data inserted or not.
1. How can I catch those posted data from my hosted ASP.NET application? (C# preferred)
2. How can I post the response back to the client?
3. Can’t we develop web services to catch those posted data via HTTP POST?

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by a496761
0

1) You'll want to read the input stream. In VB it looks something like this:

Dim sr_request As New StreamReader(Request.InputStream)
Dim str_request As String = sr_request.ReadToEnd

That will give you the entire content portion of the post.

2) All you have to do is Response.Write.

3) Yes. Web services ARE just pages that accept POSTs and return data (most of the time as SOAP objects). So, there is a good chance your client CAN access your web service, they just don't know how to craft an appropriate request to send to it.

0

Also, if your client follows a standard HTTP Post, you can access the posted values with the Request.Form collection.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.