Server receiving HTTP POST

C

Christina

Hello,

I need to built a server which receives XML, parses it, and sends some
other XML.

The client (any XYZ) should be able to post his XML file into my server
and my server should send an XML file back to the Client.

Any help appreciated..

TIA,
Chris
 
J

Joerg Jooss

Thus wrote Christina,
Hello,

I need to built a server which receives XML, parses it, and sends some
other XML.

The client (any XYZ) should be able to post his XML file into my
server and my server should send an XML file back to the Client.

Any help appreciated..

Unless you're in the business of writing application servers, simply implement
a HttpHandler and use IIS as server. Here's a nice sample:
http://www.hanselman.com/blog/ABoilerplateHttpHandler.aspx

(Unless all of this XML is actually SOAP, in which case you should consider
ASMX Web Services.)

Cheers,
 
C

Christina

Thanks guys!!

I made a demo httphandler.

Now i am trying Application Mapping in IIS :
Right click the folder in IIS -> Properties -> Directory ->
Configuration ->Add
Here, when i try to add
Executable : aspnet_isapi.dll
Extention : .sample

The problem is : The 'OK' button is diabled. Any idea, how can i
configure the application mapping.

I guess the next step should be :
http://<ComputerName>/Handler/Default.sample.
should return the response "Hello" from PocessReques().

Thanks!!
 
T

tdavisjr

Make sure the radio button for verbs is set to either All Verbs or in
your Limit box you can place POST;HEAD. Hopefully, the ok box should be
enabled.
 
C

Christina

I more question..

When I try to post the xml file again and again, it suddenly give the
error 'The operation has timed out' , for the line:
Dim requestStream As System.IO.Stream = oWebRequest.GetRequestStream()

Is there anything which I am missing here

Thanks,
Chris
 
J

Joerg Jooss

Thus wrote Christina,
Thanks guys !!

Figured it out..
I had to clear all objects..

Both request and response streams as well as HttpWebResponse are IDisposables,
so make sure you close them -- using blocks are really your best friend here
:)

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top