Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I send raw XML over HTTP?

Posted on 2010-08-16
5
Medium Priority
?
339 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 2000 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 2000 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

Featured Post

Not sure which OpenStack Certification to get?

So you’ve realized you might want to get certified in OpenStack, but you’re not sure what the benefits might be or even which one you should take. You know there are several certification courses you can choose from, but how do you know which one is right for you?

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

715 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