Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Wed, 25 Jun 2008 23:37:49 -0400,    group: microsoft.public.xml        back       


Waiting for XML data over HTTP   
I need to be able to write a program to sit in "listen" mode, and receive 
XML data over HTTP (POST method) from some remote program. Once the request 
is received, I need to process it and finally send back a response to the 
remote end that sent the request. How do I go about developing this using 
.NET? Most of the articles I've read on XMLHTTP involve first sending out a 
request and then processing a response. In my case, I want to be passively 
waiting for a request and then act upon it.

Related question: since this involves HTTP, and assuming I don't want to be 
usurping regular port 80 web server traffic on the same machine where my 
program is running, how do I configure my program to listen for the incoming 
XML requests packets over a separate port (say, 7200)?

Any help will be much appreciated. Thanks!
date: Wed, 25 Jun 2008 23:37:49 -0400   author:   mazza

Re: Waiting for XML data over HTTP   
"mazza"  wrote in message 
news:OwQnD4z1IHA.4704@TK2MSFTNGP05.phx.gbl...
> I need to be able to write a program to sit in "listen" mode, and receive 
> XML data over HTTP (POST method) from some remote program. Once the 
> request is received, I need to process it and finally send back a response 
> to the remote end that sent the request. How do I go about developing this 
> using .NET? Most of the articles I've read on XMLHTTP involve first 
> sending out a request and then processing a response. In my case, I want 
> to be passively waiting for a request and then act upon it.
>
> Related question: since this involves HTTP, and assuming I don't want to 
> be usurping regular port 80 web server traffic on the same machine where 
> my program is running, how do I configure my program to listen for the 
> incoming XML requests packets over a separate port (say, 7200)?
>
> Any help will be much appreciated. Thanks!
>
The easiest way is to run a web server and web service but listening on a 
different port, quite easy to set up in IIS for instance.
Are you able to use an existing web server like this or does the program 
have to do its own listening?

-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name
date: Thu, 26 Jun 2008 08:41:04 +0100   author:   Joe Fawcett am

Re: Waiting for XML data over HTTP   
Actually - no: I won't be able to use an existing web server. I need to set 
up the program to do its own listening, so that it's totally independent and 
self-contained, with its own setup parameters.

"Joe Fawcett" <joefawcett@newsgroup.nospam> wrote in message 
news:A34789F3-309B-409F-B35B-47AD7A4668F3@microsoft.com...
>
>
> "mazza"  wrote in message 
> news:OwQnD4z1IHA.4704@TK2MSFTNGP05.phx.gbl...
>> I need to be able to write a program to sit in "listen" mode, and receive 
>> XML data over HTTP (POST method) from some remote program. Once the 
>> request is received, I need to process it and finally send back a 
>> response to the remote end that sent the request. How do I go about 
>> developing this using .NET? Most of the articles I've read on XMLHTTP 
>> involve first sending out a request and then processing a response. In my 
>> case, I want to be passively waiting for a request and then act upon it.
>>
>> Related question: since this involves HTTP, and assuming I don't want to 
>> be usurping regular port 80 web server traffic on the same machine where 
>> my program is running, how do I configure my program to listen for the 
>> incoming XML requests packets over a separate port (say, 7200)?
>>
>> Any help will be much appreciated. Thanks!
>>
> The easiest way is to run a web server and web service but listening on a 
> different port, quite easy to set up in IIS for instance.
> Are you able to use an existing web server like this or does the program 
> have to do its own listening?
>
> -- 
>
> Joe Fawcett (MVP - XML)
> http://joe.fawcett.name
date: Thu, 26 Jun 2008 06:51:05 -0400   author:   mazza

Re: Waiting for XML data over HTTP   
mazza wrote:
> I need to be able to write a program to sit in "listen" mode, and receive 
> XML data over HTTP (POST method) from some remote program. Once the request 
> is received, I need to process it and finally send back a response to the 
> remote end that sent the request. How do I go about developing this using 
> .NET? Most of the articles I've read on XMLHTTP involve first sending out a 
> request and then processing a response. In my case, I want to be passively 
> waiting for a request and then act upon it.
> 
> Related question: since this involves HTTP, and assuming I don't want to be 
> usurping regular port 80 web server traffic on the same machine where my 
> program is running, how do I configure my program to listen for the incoming 
> XML requests packets over a separate port (say, 7200)?

Cassini is a small web server written in .NET: 
http://www.asp.net/Downloads/archived/cassini/

I realize that cassini does more than you want to solve but I hope it 
shows how to listen on a certain port for HTTP connections.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Thu, 26 Jun 2008 18:43:33 +0200   author:   Martin Honnen

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us