How to enable the existing project as service provider?
For the old DTT project, created before DTT v10.2, you should upgrade the project first and then add these settings properly.
Note The new DTT project, created after DTT v10.2, would pre-configure this by default.
a Enable OpenAPI at btt.xml(under components.channelHandlers)
<kColl id="openapi" description="open API channel settings">
<field id="encoding" value="UTF-8" />
<field id="cookies" value="true" />
<field id="runInSession" value="true" />
<field id="requestHandler"
value="unicomsi.btt.openapi.OpenAPIRequestHandler"
description="UDTT open API request handler" />
<field id="presentationHandler"
value="unicomsi.btt.openapi.OpenAPIPresentationHandler"
description="UDTT open API presentation handler" />
</kColl>
<kColl id="openapi-op_flow">
<field id="encoding" value="UTF-8" />
<field id="cookies" value="true" />
<field id="runInSession" value="true" />
<field id="requestHandler"
value="com.ibm.btt.cs.ajax.AjaxHtmlRequestHandler" />
<field id="presentationHandler"
value="unicomsi.btt.openapi.OpenAPIPresentationHandler"
description="UDTT open API presentation handler" />
</kColl>
<kColl id="openapi-service">
<field id="encoding" value="UTF-8" />
<field id="cookies" value="false" />
<field id="runInSession" value="false" />
<field id="requestHandler"
value="unicomsi.btt.openapi.serviceengine.ServiceRequestHandler" />
<field id="presentationHandler"
value="unicomsi.btt.openapi.OpenAPIPresentationHandler"
description="UDTT open API presentation handler" />
</kColl>
b Enable OpenAPI at Web.xml
<servlet>
<display-name>OpenAPIRequestServlet</display-name>
<servlet-name>OpenAPIRequestServlet</servlet-name>
<servlet-class>unicomsi.btt.openapi.OpenAPIRequestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>OpenAPIRequestServlet</servlet-name>
<url-pattern>/openapi/*</url-pattern>
</servlet-mapping>
Go up to