Solved

How do I send raw XML over HTTP?

Posted on 2010-08-16
5
331 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
How do I open a socket for async communication?
0
 

Author Comment

by:newbieweb
Comment Utility
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now