Hi,
I want to invoke a RESTful web service which of the ElasticSearch server from Integration server.
If I execute the below CURL commands on the Elastic search server console, it works.
If I execute curl -XPUT ‘172.29.223.226:9200/twitter/tweet/1?pretty’ -d’
{
“user” : “kimchy2”,
“post_date” : “2009-11-15T14:12:12”,
“message” : “trying out Elasticsearch2”
}’
I get output as
{
“_index” : “twitter”,
“_type” : “tweet”,
“_id” : “1”,
“_version” : 3,
“_shards” : {
“total” : 2,
“successful” : 1,
“failed” : 0
},
“created” : false
}
Also curl -XGET ‘172.29.223.226:9200/twitter/_search?q=user:kimchy&pretty’ shows correct output.
How to invoke these APIs from Integration Server?
Will http client invocations such as http://172.29.223.226:9200/twitter/_search?q=user:kimchy&pretty with GET method solve the purpose?
Kindly advice how to invoke the get and put restful services on ElasticSearch server?
#Integration-Server-and-ESB#webMethods#webmethods-Protocol-and-Transport