У меня есть разработанное API, и я хочу использовать этот API в потоке мулов.
Но когда я тестирую из chrome:postman, я получаю следующую ошибку.
Message payload is of type: BufferInputStream
Итак, я попытался зарегистрировать сообщение, и ниже я получил
org.glassfish.grizzly.utils.BufferInputStream@e2ed077
Итак, в основном мое требование заключается в том, как я могу передать полезную нагрузку json моему API. Ниже мой фрагмент кода.
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8083" doc:name="HTTP Listener Configuration"/>
<http:request-config name="HTTP_Request_Configuration" host="localhost" port="8082" doc:name="HTTP Request Configuration">
<http:basic-authentication username="sa" password="sa"/>
</http:request-config>
<flow name="get-response-container-storeFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/testapi" doc:name="HTTP"/>
<logger message="******************Executed Test_Container_Store_API*******************#[payload]" level="INFO" doc:name="Logger"/>
<logger message="#[payload]" level="INFO" doc:name="Logger"/>
<http:request config-ref="HTTP_Request_Configuration" path="/apie" method="POST" sendBodyMode="NEVER" doc:name="HTTP">
</http:request>