how to connect to a servlet in a situation like this?

I have to run something via some other vendor and all they say is their product is running on a server and accessed via a servlet. I have an application that has to run it. their instructions simply give to access a servlet and get results... well, they lack examples. how can i connect to a servlet via regular java code?

[329 byte] By [smiles78a] at [2007-11-27 8:01:07]
# 1
The Apache Jakarta Commons HttpClient can be used to submit requests and receive responses to a Wweb server running a Servlet. The documentation has examples of how to do this.
tolmanka at 2007-7-12 19:43:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
we can't use that tool though so how do i do it without jakarta with regular java api
smiles78a at 2007-7-12 19:43:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Not sure what you are asking: are you asking how to invoke a servlet through a java application that does not run within a web-server? You can do that by opening a URLConnection to it and reading from the input stream, and writing into the output stream...

Try googling on this - lots of examples out there...

Also - I would advice that you first find out how to connect to this servlet using just a browswer first...

suppyama at 2007-7-12 19:43:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...