I want to send a xml message to a URL like tcp://localhost:6060/services/test

What are the available tools for this?

closed as not constructive by Zoredache, mdpc, Scott Pack, voretaq7 Jun 11 '13 at 19:20

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Are you saying that you have the listener already running on port 6000 on the destination, you just want a tool to connect to that service and send an XML message? – MadHatter Jun 11 '13 at 14:14
  • Yes there is a listner, my request should direct to the specified url – Udara S.S Liyanage Jun 11 '13 at 14:16
  • What specific problem are you trying to solve? Us blindly giving you a list of tools has no value to anyone except you (and frankly you can use Google just as well as we can). – voretaq7 Jun 11 '13 at 19:21

The URL has nothing to do with TCP so you have to have something listening on TCP port 6060 that will correctly interpret the data it is sent.

You could use something like nc to send the data

The nc (or netcat) utility is used for just about anything under the sun involving TCP or UDP. It can open TCP connections, send UDP packets, listen on arbitrary TCP and UDP ports, do port scanning, and deal with both IPv4 and IPv6

You will though need to know what to send in the format that the listener is expecting ...

  • telnet
  • nc (netcat)
  • wget --post-file
  • perl
  • python
  • ruby
  • c
  • java
  • c++
  • etc

I'd probaly look at nc or wget

Also you could try googling "send xml to web service" which will get you these to as the first two hits:

https://stackoverflow.com/questions/4454918/how-to-send-xml-messages-to-web-services https://stackoverflow.com/questions/4454918/how-to-send-xml-messages-to-web-services

Not the answer you're looking for? Browse other questions tagged or ask your own question.