Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Swing client - http get

HI...
have a Swing client which should connect to a webservice via a http request.

My pob - how to implement the http get method in my java client, and how
can I handle the response ...

http request:
GET /elc/Sharetips.asmx/Buy? HTTP/1.1
Host: webservice.client.uk

webservice response:
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.cs.nott.ac.uk/dge/">string</string>

I need only the String!!

Thanx for your help!!
[520 byte] By [jimmy] at [2007-11-9 22:32:33]