0
我試圖自動在WSO2 ESB中部署API。我在{ESB_HOME}/repository/deployment/server/synapse-configs/default/api /中將de API的.xml文件和其資源定義放在一起,ESB部署它的API Factory。WSO2 ESB中的自動部署API錯誤
但我得到這個錯誤:
[2015-04-29 11:19:18,013] ERROR - APIFactory An API must contain at least one resource definition [2015-04-29 11:19:18,017] ERROR - APIDeployer API deployment from the file : /home/sergio/Escritorio/wso2esb-4.8.1/repository/deployment/server/synapse-configs/default/api/prueba.xml : Failed. org.apache.synapse.SynapseException: An API must contain at least one resource definition
XML定義是:
<?xml version="1.0" encoding="UTF-8"?><api name="apps" context="/services/services/app"><resource methods="GET" uri-template="/get/{codigoApp}"><inSequence><send><endpoint><http method="get" uri-template="http://localhost:8080/services/services/app"/></endpoint></send></inSequence></resource><resource methods="GET" uri-emplate="/getAll"><inSequence><send><endpoint><http method="get" uri-template="http://localhost:8080/"/></endpoint></send></inSequence> </resource></api>
而且我可以部署在WSO2 ESB同治面板這個API定義。
有什麼想法?
謝謝, 塞爾吉奧。
感謝。我在api標籤中忘記了xmlns =「http://ws.apache.org/ns/synapse」。 ;) –
歡迎:) – Vanji