}
public void doSyncSpellingSuggestion(String word) {
OMElement responseElement = null;
OMElement requestElement = getElement(word);
Call call = null;
try {
call = new Call();
} catch (AxisFault axisFault) {
observer.updateError(axisFault.getMessage());
}
URL url = null;
try {
url =
new URL(PROTOCOL,
PropertyLoader.getGoogleEndpointURL(),
PropertyLoader.getGoogleEndpointServiceName());
//url=new URL( "http","127.0.0.1",7070,"/search/beta2");
} catch (MalformedURLException e) {
observer.updateError(e.getMessage());
}
call.setTo(
new EndpointReference(url.toString()));
try {
responseElement =
call.invokeBlocking("doGoogleSpellingSugg",
requestElement);
} catch (AxisFault axisFault) {
observer.updateError(axisFault.getMessage());
}