Autodeploy API error in WSO2 ESB -


i'm trying deploy api in wso2 esb automatically. put .xml file de api , resources definition in {esb_home}/repository/deployment/server/synapse-configs/default/api/ , api factory esb deploy it.

but error:

[2015-04-29 11:19:18,013] error - apifactory api must contain @ least 1 resource definition [2015-04-29 11:19:18,017] error - apideployer api deployment file : /home/sergio/escritorio/wso2esb-4.8.1/repository/deployment/server/synapse-configs/default/api/prueba.xml : failed. org.apache.synapse.synapseexception: api must contain @ least 1 resource definition 

the xml definition is:

<?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> 

and can deploy api definition in managment panel in wso2 esb.

any idea?

thanks, sergio.

create file apps.xml , drop file esb_home/repository/deployment/server/synapse-configs/default/api

<?xml version="1.0" encoding="utf-8"?> <api xmlns="http://ws.apache.org/ns/synapse"      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">       <insequence>          <send>             <endpoint>                <http method="get" uri-template="http://localhost:8080/"/>             </endpoint>          </send>       </insequence>    </resource> </api> 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -