browser same-origin policy

Hi, I’m evaluating SmartGWT and to get a feel for your webservice implementation I’ve had a go at implementing your Google SOAP search java script example in SmartGWT. However when I try to consume the webservice with

XMLTools.loadWSDL("http://api.google.com/GoogleSearch.wsdl", new WSDLLoadCallback() {
            public void execute(WebService webService) {
                googleService = webService;
            }

I get a popup dialog in my browser telling me that SmartCient can’t directly contact URL “http://api.google.com/GoogleSearch.wsdl” due to browser same-origin policy. Is this correct ? Is there anyway to turn this off or is my only choice to proxy these from the server ?

SmartGWT Pro and Enterprise provide an HttpProxy that allows cross-domain requests to be performed transparently. Otherwise, yes that error message is correct, browsers don’t allow cross-domain requests. If you don’t want to use Pro you need to download the WSDL file and save it at a locally accessible URL.