473,290 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,290 software developers and data experts.

Server receiving HTTP POST

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

May 16 '06 #1
10 2399
This should give you something to build on.

http://www.netomatix.com/Development/XmlWebRequest.aspx
"Christina" <ch*********@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
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

May 16 '06 #2
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/ABoile...tpHandler.aspx

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

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
May 16 '06 #3
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!!

May 17 '06 #4
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.

May 17 '06 #5
Thanks Joerg,

The link : http://www.netomatix.com/Development/XmlWebRequest.aspx was
helpful.
I have implemented it and I have a question :

1) This sample given in yhr link, converts he xml file into bytes and
then sends to the listening URL. Is it possible to send the XML file
directly (not the XML file converted into bytes)?

TIA,
Cristina


Winista wrote:
This should give you something to build on.

http://www.netomatix.com/Development/XmlWebRequest.aspx
"Christina" <ch*********@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
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


Jun 9 '06 #6
Thus wrote Christina,
Thanks Joerg,

The link : http://www.netomatix.com/Development/XmlWebRequest.aspx was
helpful.
I have implemented it and I have a question :
1) This sample given in yhr link, converts he xml file into bytes and
then sends to the listening URL. Is it possible to send the XML file
directly (not the XML file converted into bytes)?


No. Networks transmit bytes, not objects.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Jun 11 '06 #7
Thanks Joerg,
It worked for me..

Joerg Jooss wrote:
Thus wrote Christina,
Thanks Joerg,

The link : http://www.netomatix.com/Development/XmlWebRequest.aspx was
helpful.
I have implemented it and I have a question :
1) This sample given in yhr link, converts he xml file into bytes and
then sends to the listening URL. Is it possible to send the XML file
directly (not the XML file converted into bytes)?


No. Networks transmit bytes, not objects.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de


Jun 15 '06 #8
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

Joerg Jooss wrote:
Thus wrote Christina,
Thanks Joerg,

The link : http://www.netomatix.com/Development/XmlWebRequest.aspx was
helpful.
I have implemented it and I have a question :
1) This sample given in yhr link, converts he xml file into bytes and
then sends to the listening URL. Is it possible to send the XML file
directly (not the XML file converted into bytes)?


No. Networks transmit bytes, not objects.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de


Jun 15 '06 #9
Thanks guys !!

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

Christina wrote:
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

Joerg Jooss wrote:
Thus wrote Christina,
Thanks Joerg,

The link : http://www.netomatix.com/Development/XmlWebRequest.aspx was
helpful.
I have implemented it and I have a question :
1) This sample given in yhr link, converts he xml file into bytes and
then sends to the listening URL. Is it possible to send the XML file
directly (not the XML file converted into bytes)?


No. Networks transmit bytes, not objects.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de


Jun 16 '06 #10
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,
--
Joerg Jooss
ne********@joergjooss.de
Jun 16 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: richmond | last post by:
Please forgive me if this question is not readable for you. I definitely want to get in-depth on this. I am in front of a web application. On the server side, it has the main exe under...
5
by: Rich Williams | last post by:
Hi All, I am trying to build an class that will POST XML to a merchant Gateway. The XML represents a customer transaction. I have no idea how to go about posting anything other then a collection...
6
by: someone | last post by:
I am in a situation where I need to package some information from Page1, submit it via POST to another server which will process the information and then send the user to another page on my server...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
7
by: GS | last post by:
Hello, I'm receiving The state information is invalid for this page and might be corrupted error message when running code below. This happens on second post back. Why is it happening? My...
3
by: Beginner | last post by:
I get the following error when I send a HTTPWebRequest. System.Net.WebException: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.CheckFinalStatus()...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
0
by: kwilliams1130 | last post by:
I am having a problem with data that is being posted to another server. The problem is I collect the data from our database through an .cfm file (and all data is correct), which then the data is...
7
by: David | last post by:
i think i just realized i'm an idiot. again. (not syntactically correct code... just pieces to illustrate) class StateObject { members like socket, receiveBuffer, receiveBufferSize,...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.