here my code for load data from a WebService with callOperation :
XmlNamespaces aXmlNamespaces = new XmlNamespaces();
aXmlNamespaces.addNamespace("ws", "http://webservice");
WSRequest aWSRequest = new WSRequest();
aWSRequest.setXmlNamespaces(aXmlNamespaces);
myService.callOperation("MyOperation", null, "//ws:MyOperationReturn", new WebServiceCallback() {
public void execute(Object[] data,
JavaScriptObject xmlDoc,
RPCResponse rpcResponse,
JavaScriptObject wsRequest) {
MyForm.this.setValue("responseText", data[0].toString());
}
}, aWSRequest);
this code works, but now I try to load a DataSource from MyService, I try this :
DataSource aDataSource = myService.getFetchDS("MyOperation","//MyOperationReturn");
But it doesn’t works…
My code is wrong ?
Is it because of WSRequest missing in getFetchDS ?
Is there another way to load a DataSource from a WebService?