我在没有stratoslive的情况下在本地尝试了它,它就像一个魅力。本地主机:8280/testapi
但是在stratoslive 上,url 没有响应(使用/t/DOMAIN/)。我认为 API url 有问题?!?
http://esb.stratoslive.wso2.com:8280/t/manuel-test.de/services/customereu
源代码:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://ws.apache.org/ns/synapse">
<registry provider="org.wso2.carbon.mediation.registry.WSO2Registry"/>
<sequence name="CallCustomerServiceEU">
<send>
<endpoint>
<address uri="http://DOMAIN.net/service/customers/testname/"/>
</endpoint>
</send>
</sequence>
<sequence name="fault">
<log level="full"/>
</sequence>
<sequence name="main">
<log/>
<drop/>
</sequence>
<api name="APICustomerEU" context="/t/manuel-test.de/services/customereu">
<resource methods="GET" inSequence="CallCustomerServiceEU">
<outSequence>
<send/>
</outSequence>
</resource>
</api>
</definitions>