В wso2 esb как вызвать websokcet опубликованный менеджером api - PullRequest
0 голосов
/ 02 октября 2018

Я опубликовал API веб-сокета, как указано в Документации , поэтому я хотел вызвать API веб-сокета через wso2 ESB.Итак, как передать заголовок Auth, когда я получаю следующую ошибку на консоли:

[2018-10-02 18:24:36,503] ERROR - InboundWebsocketSourceHandler Endpoint not found for port : 9099 tenant domain : null

Ниже приведен ESB для вызова API websocket:

<api context="/test" name="test" xmlns="http://ws.apache.org/ns/synapse">
    <resource methods="POST">
        <inSequence>
            <property name="OUT_ONLY" scope="default" type="STRING" value="true"/>
            <log level="full">
                <property name="message" value="********************************************input**********************"/>
            </log>
            <property name="Authorization" scope="transport" type="STRING" value="Bearer cf920eb2-960c-383c-b556-78e9258fd8d3"/>
            <send>
                <endpoint>
                    <http method="post" uri-template="ws://localhost:9099/echowebsocket/1.0"/>
                </endpoint>
            </send>
        </inSequence>
        <outSequence>
         </outSequence>
        <faultSequence/>
    </resource>
</api>

последовательность оттока:

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="outflowDispatchSeq" trace="disable" xmlns="http://ws.apache.org/ns/synapse">
    <log level="full">
        <property name="message" value="************************************************"/>
    </log>
</sequence>
...