0
我创建了一个api代理来调用我的rest服务,但是当我发送一个Mal形成的XML请求时,我只收到一个HTTP状态代码202.WSO2 ESB API上的Rest服务和Mal形成的XML请求
我已经编写了我的服务来处理这个错误形成的XML,我只想让ESB通过请求。
下面是代码我ESB API:
<?xml version="1.0" encoding="UTF-8"?>
<api xmlns="http://ws.apache.org/ns/synapse" name="myApi" context="/restService">
<resource methods="POST">
<inSequence>
<send>
<endpoint>
<address uri="http://myserver/MyRestService"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<send/>
</outSequence>
<faultSequence/>
</resource>
</api>
感谢
您是否在请求中设置了Content-Type标头? –
是的应用程序/ xml –