Problem with XML requests (instead of get/postParams)
I am trying to integrate the SmartGWT RestDataSource, which works fine for the default DSProtocol.GETPARAMS en DSProtocol.POSTPARAMS.
Now I would like to receive the requests in XML (which enables a more clean backend integration). I have tried to set the OperationBindings with DSProtocol.POSTMESSAGE (also tried POSTXML) but am not able to make it work. Am I missing something or is there some example code for this?
Below is a part of the modification I made to the RestDataSource sample:
OperationBinding fetch = new OperationBinding(DSOperationType.FETCH, "server/rest/");
fetch.setDataProtocol(DSProtocol.POSTMESSAGE);
fetch.setDataFormat(DSDataFormat.XML);
...
Comment