Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7750467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:17:59+00:00 2026-06-01T11:17:59+00:00

I need to setup a web page that listens for XML document via an

  • 0

I need to setup a web page that listens for XML document via an HTTP POST. I don’t need to POST out, I need to receive that POST. What object does this? Should I use an HTTP handler, web service, webRequest, Stream or something else? I need to use a IIS Server and prefer C#.

I’ve Tried…

  1. I dont think I can use WebRequest since I’m not sending a request, just waiting for them.

  2. “HttpRequest.InputStream” but I’m not sure how to use it or where to put it. Do i need to use it with a web service or a asp.net application? I put it in
    http://forums.asp.net/t/1371873.aspx/1

  3. I’ve tried a simple web service http://msdn.microsoft.com/en-us/library/bb412178.aspx – But when i try to visit “http://localhost:8000/EchoWithGet?s=Hello, world!”, i get a “webpage cannot be found error”

If anyone has any helpful code or links that would be great!

EDIT:
I am trying to receive notifications from another program.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:18:00+00:00Added an answer on June 1, 2026 at 11:18 am

    You could write an ASP.NET application that you will host in IIS in which you could either have an .ASPX page or a generic .ASHX handler (depending on how you want the result to be formatted – do you want to return HTML or some other type) and then read the Request.InputStream which will contain the body of the request that comes from the client.

    Here’s an example of how you could write a generic handler (MyHandler.ashx):

    public class MyHandler : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            var stream = context.Request.InputStream;
            byte[] buffer = new byte[stream.Length];
            stream.Read(buffer, 0, buffer.Length);
            string xml = Encoding.UTF8.GetString(buffer);
    
            ... do something with the XML
    
            // We only set the HTTP status code to 202 indicating to the
            // client that the request has been accepted for processing
            // but we leave an empty response body
            context.Response.StatusCode = 202;
        }
    
        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a login page. In my web.config I setup a loginUrl so that
I need to setup some 301 permanent redirects in the web.config of an ASP.NET
I need to setup an ASP.Net MVC view with a Date Picker that will
I need to setup a SELECT query that will return rows based on matching
I have a web form setup on an area of my site. I need
I have a web page that is using JQuery to communicate with the backend.
I am learning Spring 3.x MVC. I now have a regular web page setup
I'm working on a web application that takes its data from a web page
I need to create a .Net web service (WCF is out of the question)
I need to play content from a video camera into a web page. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.