Solved

How do I send raw XML over HTTP?

Posted on 2010-08-16
5
335 Views
Last Modified: 2013-12-17
I am trying to get my Windows program to communicate with a voice program via the Internet.  So I need to create a listener for incoming XML and need to send XML responses.

How do I do that?

Thanks,
newbieweb
0
Comment
Question by:newbieweb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
Yiogi earned 500 total points
ID: 33450882
Even though you will only be sending and receiving XML I believe that the best way to do it would be with a socket application. Create a TCPListener and listen to a port you wish on the server. You will need to parse the received string since it will be coming as a byte array and decode the XML you need. You can send encode your response in an XML format and send it.
0
 
LVL 8

Assisted Solution

by:Yiogi
Yiogi earned 500 total points
ID: 33450890
Alternatively you could create a webservice that will get your input and send a response but I don't know if that's acceptable by you. I would honestly prefer the sockets method as it can work asynchronously.
0
 

Author Comment

by:newbieweb
ID: 33450897
When I listen to a socket, must I have a thread to do just that continuously?  Or can I check every second or two?
0
 

Author Comment

by:newbieweb
ID: 33450902
How do I open a socket for async communication?
0
 

Author Comment

by:newbieweb
ID: 33451275
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question