Solved

How do I send raw XML over HTTP?

Posted on 2010-08-16
5
334 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 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