public synchronized void sendMsg() throws AxisFault {
search.trim();
prevSearch = search;
Call call = new Call();
URL url = null;
try {
url = new URL("http", "api.google.com","/search/beta2");
// url = new URL("http://127.0.0.1:8080/axis2/services/axisversion/viewVersion");
} catch (MalformedURLException e) {
e.printStackTrace();
System.exit(0);
}
call.setTo(
new EndpointReference(url.toString()));
MessageContext requestContext = ClientUtil.getMessageContext(this);
try {
call.setTransportInfo(Constants.TRANSPORT_HTTP,
Constants.TRANSPORT_HTTP,
false);
QName opName = new QName("urn:GoogleSearch", "doGoogleSearch");
OperationDescription opdesc = new OperationDescription(opName);
// OperationDescription opdesc = new OperationDescription(new QName("viewVersion"));
call.invokeNonBlocking(opdesc,
requestContext,
new ClientCallbackHandler(this.gui));
} catch (AxisFault e1) {
e1.printStackTrace();