Skip to main content
Published: March 29 2006, 2:43:00 PMUpdated: November 28 2020, 1:58:24 PM

How do I get the ebayTime or other common features from a sdk wrapper class like GetSearchResultsCall ?

The common features or properties listed below are contained in the API abstract complex data type AbstractResponseType.
Timestamp
Ack
CorrelationID
Version
Build

These features are inherited and are directly accessible by all derived API XXXXResponseType classes. To read these properties from the wrapper class like GetSearchResultsCall or GetItmeCall, one needs to call the getResponseObject() method which is inherited from the ApiCall class. An example is shown below:

GetSearchResultsCall api = new GetSearchResultsCall(apiContext);
...
api.getSearchResults();
AbstractResponseType response = api.getResponseObject();
java.util.Date resptimestmp = response.getTimestamp().getTime();
String version = response.getVersion();
String build = response.getBuild();
AckCodeType ack = response.getAck();

How well did this answer your question?
Answers others found helpful