Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Simple Rest Client Help

$
0
0
I'm attempting to stand up a simple Rest client app following http://www.smartclient.com/smartgwt/showcase/#featured_restfulds to fetch from a restful service outside my control. I expect to need to implement transformRequest and transformResponse.

In my transformRequest, if I do NOT call super.transformRequest () then no connection to the server is made:
------------
@Override
protected Object transformRequest(DSRequest dsRequest) {
dsRequest.setActionURL( "http://dev:18016/config/api/v1/interestingStuff" );
dsRequest.setUseSimpleHttp( true );
dsRequest.setOperationType( DSOperationType.FETCH );
dsRequest.setHttpMethod( "GET" );
return dsRequest;
}
------------

However if I DO call
return super.transformRequest();
then the HTTP call to the server includes lots of SmartGWT parameters that confuse the server, like:
_operationType=fetch&_startRow=0&_endRow=75&_textMatchStyle=substring&_componentId=isc_ListGrid_2

How do I invoke the HTTP call to the server without all the SmartGWT-specific arguments?

Thanks much!
-Bill

SmartClient Version: v9.0p_2013-10-08/LGPL Development Only (built 2013-10-08)
Firefox 24.5 (needs to be older version for security constraints)

Viewing all articles
Browse latest Browse all 4756

Trending Articles