If you type "java consume web service" about 25,000,000 results pop up showing you, with code even, how to consume a web service. There are two main ways that people do this: using JaxWS (a third party, open source, solution), or by using some of the following Java classes, already there in the SDK:

javax.xml.rpc.Service
javax.xml.rpc.ServiceFactory