[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

How do I send raw XML over HTTP?

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
newbieweb
Asked:
newbieweb
  • 3
  • 2
2 Solutions
 
YiogiCommented:
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
 
YiogiCommented:
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
 
newbiewebSr. Software EngineerAuthor Commented:
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
 
newbiewebSr. Software EngineerAuthor Commented:
How do I open a socket for async communication?
0
 
newbiewebSr. Software EngineerAuthor Commented:
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now