...
Expand |
---|
|
Summary: Calls RESTful web service. This method accepts following eight parameters. All the parameters should be of String format. Parameter details are as follows: - URL of the REST web service.
- Operation (GET, PUT, POST, or DELETE) to be performed.
- Data to be sent with POST request. This field is optional. For GET request and other web services that don't require any input, leave this field blank (' ').
- Request media type, for example, text/html, application/xml.
- Response media type, for example, text/html, application/xml.
- HTTP header to be sent with the request. Multiple header parameters should be separated by a comma, for example, name=san, id=3.
- Username to perform authentication of your web service. Leave this parameter blank (' ') if the web service doesn't require any authentication.
- Password to perform authentication of your web service. Leave this parameter blank (' ') if the web service doesn't require any authentication.
Syntax: java:MapperUtilityClass.invokeREST('http://www.thomas-bayer.com/sqlrest/PRODUCT/12','GET/POST/PUT/DELETE','data to be sent (optional for get)' ,'application/xml','application/xml','Accept-Charset=utf-8,Cache-Control=no-cache,Content-Type: application/xml','username','password') |
The global methods available in the class MapperUtilityClass are:
Expand |
---|
|
Summary: Returns the present age. This method accepts one string type parameter only in the <parameter-name> format. Syntax: java:GlobalMethodCall.getAge(‘dd-MM-yyyy HH:mm:ss’) |
...