WSO2 ESB를 사용하여 나머지 API에 POST 요청을 보냅니다. 실제로, API는 일부 데이터와 함께 201 상태를 반환합니다. 자체 POSTMAN를 사용 API는 완벽하게 작동하지만, (202) 받아 응답은 여기 내 구현의 ESB를 링크 를 사용하여 반환 할 수 있습니다 : 에서 POST API 링크 : http://mysite/sites/4/floors/4/pois/12/prelockPOST 요청 후 WSO2 ESB 응답 없음
내 ESB의 API :
<resource methods="POST" uri-template="/sites/{siteId}/floors/{floorId}/pois/{poiId}/prelock">
<inSequence>
<log level="full"/>
<header name="Content-Type" scope="transport" value="application/json"/>
<property expression="$axis2:HTTP_SC" name="Status" scope="default" type="STRING" xmlns:ns="http://org.apache.synapse/xsd"/>
<send>
<endpoint key="NodeRedPrelock"/>
</send>
</inSequence>
<outSequence>
<log level="full"/>
<send/>
</outSequence>
<faultSequence/>
</resource>
엔드 포인트 :
<endpoint name="NodeRedPrelock" xmlns="http://ws.apache.org/ns/synapse">
<http method="post" uri-template="http://mysite/sites/{uri.var.siteId}/floors/{uri.var.floorId}/pois/{uri.var.poiId}/prelock"/>
실제로 문제는 그래픽 인터페이스에서 수정 중이지만 XML 파일이 변경되지 않았기 때문에 Basanagouda의 솔루션을 시도했을 때 작동하지 않았습니다. D 귀하의 도움에 감사드립니다. –