Integration with IBM Watson Explorer (WEX) | Community
Skip to main content
October 23, 2015
Solved

Integration with IBM Watson Explorer (WEX)

  • October 23, 2015
  • 2 replies
  • 1617 views

We are new to AEM and need to integrate IBM Watson Explorer (WEX) for enterprise search.  Has anyone done this and able to point me to some documentation? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

Hi  randalma2120

As mentioned by Scott, there is no specific documentation for IBM watson explorer with AEM. But Yes, we can use it with IBM Watson Explorer's rest APIs.

Create a OSGI service or Sling Servlets and write a code to send HTTP request GET/POST in it. 

Example Code :-

import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.methods.PostMethod;
 
String url = "http://www.google.com";InputStream in = null;try {HttpClient client = new HttpClient();PostMethod method = new PostMethod(url);//Add any parameter if u want to send it with Post req.method.addParameter("p", "apple");int statusCode = client.executeMethod(method);if (statusCode != -1) {in = method.getResponseBodyAsStream();}


Use The link provided by Scott and customize it according to your need.

I hope this would help you. 

 

Thanks and Regards

Kautuk Sahni

2 replies

smacdonald2008
Level 10
October 24, 2015

There is no integration or connector component between these two products. You would have to create a custom AEM service and integrate with IBM using its Rest API - which it supports. Here is a community article on how to hook a Restful service into AEM.

Creating Adobe Experience Manager bundles that invoke third party Restful web services

(this shows hooking into a Google Restful web service)

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
October 26, 2015

Hi  randalma2120

As mentioned by Scott, there is no specific documentation for IBM watson explorer with AEM. But Yes, we can use it with IBM Watson Explorer's rest APIs.

Create a OSGI service or Sling Servlets and write a code to send HTTP request GET/POST in it. 

Example Code :-

import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.methods.PostMethod;
 
String url = "http://www.google.com";InputStream in = null;try {HttpClient client = new HttpClient();PostMethod method = new PostMethod(url);//Add any parameter if u want to send it with Post req.method.addParameter("p", "apple");int statusCode = client.executeMethod(method);if (statusCode != -1) {in = method.getResponseBodyAsStream();}


Use The link provided by Scott and customize it according to your need.

I hope this would help you. 

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni