473,385 Members | 1,893 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,385 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 2405
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,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.