• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending an xml file to event handler

 
Orangzaib Rajput
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I have successfully wrote a java code which is taking new entries from mysql table and creating an xml file out of it. Now I need to send it to my event handler which is listening at port 1031.

I have searched about it but I couldn't get a single thread on it(May be I didn't search right), please tell me how can I send it to event handler which is at the moment on my computer taking inputs from port 1031, I just need few lines of code which will send an xml file to 1031 port.

regards,
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends whole lot on what kind of process is listening on that port - what is this "event handler"? Surely it has some kind of protocol for accepting files?
 
Orangzaib Rajput
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you I need a socket programming code. a basic code to send xml file to port 1031 please help.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the point is to send files across the network? There are numerous existing protocols, plus free implementations of same. Why do you want to roll your own?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic