Here is the code of webservice call in j2me using ksoap. which is working good.
public
String getCount() throws Exception {
StringBuffer sb = new StringBuffer();
SoapObject client = new SoapObject("http://xxxxxxx/cqforms/", "GetCount");
client.addProperty("Mode", criteria.by);
client.addProperty("SearchString", txtSearch.getText());
HttpTransport ht = new HttpTransport("http://xxxxxxxxx/cqforms/Service1.asmx", "GetCount");
sb.append("" + ht.call(client));
return sb.toString();
}
how do i call the same webservice in swing application. i am using netbeans 6.9
IDE.