0

I'm a bit new to web services and I have encountered a problem.

I need to access a remote web service through a java class, but I haven't got the foggiest idea how to do so.

If anyone could point me in the right direction I would very much appreciate it.

1
  • 1
    what kind of web service end point is it? Does it use json, or xml? soap? Commented Nov 1, 2011 at 17:33

2 Answers 2

0

Something like this: http://download.oracle.com/javase/tutorial/networking/urls/connecting.html

Basically you construct a URL (that points to the web service), and you connect to it, read its response, etc.

The "Next >" link on this page will explain further. Follow the trail and you should be on your way.

Sign up to request clarification or add additional context in comments.

Comments

0

There are several good libraries that abstract away all the gritty details for you. Google Java HTTP Client is a good one.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.