-
March 20th, 2012, 02:34 PM
#1
Webservice to send an xml file over TCP
Hello guys,
I have an application that only knows to make database look-ups using a web service.
I don't know how exactly how my client has his database setup but it only accepts requests on a TCP port. So if you send a specific XML file on a specific IP and port, the database will respond back with another XML file containing the required data.
I have to know if it is possible to create a web service that should be like a bridge between the two: it waits for an incoming XML, forwards it to the required TCP port and grabs the response. Is it possible to do such a thing in Visual C#?
The thing is I only developed Windows Applications until now, never a web service.
And one more thing, this web service should be able to accept around 400.000 requests/day. Do I have to write my own semaphores or the templates in VS knows that already?
Any examples of similar work are more than welcome.
Thanks,
vma
You liked it? Please show your gratitude and rate it!
There is no 'patch' for stupidity.
-
March 20th, 2012, 04:47 PM
#2
Re: Webservice to send an xml file over TCP
You should be able (this means, yes, c# will let you do that) to make the ws when asked to talk via tcp and then answer back to the caller. In this WCF would help, even if you could set up an ild style web service, too. But then:
a request every quarter of second (supposing the 400.000 requests are equally distribute across the 24 hours of a day, but that is not said), and for each request a forward to a tcpIp to get an xml back... If you really manage to do that scada, you should teach us all.
****edit
Doh! VMA! It is the day of the reminiscence! Or I do remember incorrectly? We spoke about Gina, once...
***edit two:
No, you spoked; I simply read
http://www.codeguru.com/forum/showth...highlight=Gina
well, I will wait for a new lesson of yours
Last edited by Cimperiali; March 20th, 2012 at 04:57 PM.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
March 20th, 2012, 06:43 PM
#3
Re: Webservice to send an xml file over TCP
heh, I remember that post long time ago.
I'm not a developer anymore for many years but life asks little tools from time to time life and clients ofc.
You liked it? Please show your gratitude and rate it!
There is no 'patch' for stupidity.
-
March 21st, 2012, 01:25 AM
#4
Re: Webservice to send an xml file over TCP
You should use WCF with TCP binding.
Regards,
Ramkrishna Pawar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|