Wso2esb wso2 esb代理rest服务无响应
代理配置:Wso2esb wso2 esb代理rest服务无响应,wso2esb,Wso2esb,代理配置: <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="person" startOnLoad="true" statistics="disable" trace="disable" transports="http,https"> <target>
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="person"
startOnLoad="true"
statistics="disable"
trace="disable"
transports="http,https">
<target>
<inSequence>
<send>
<endpoint>
<address format="pox" uri="http://localhost:8181/person/"/>
</endpoint>
</send>
<log level="full"/>
</inSequence>
<outSequence>
<log level="full"/>
<property name="messageType" scope="axis2" value="text/xml"/>
<send/>
</outSequence>
</target>
<description/>
</proxy>
请求消息无法获取响应消息模板:
模板:
这是控制台日志输出:
你能试试这个吗
<endpoint name="IdentityDSSserviceEP" template="esbendpoint" uri="http://localhost:8181/person/"/>
模板(示例模板)
-1
1
-1
0
0
60000
过错
仍然没有响应您是否创建了模板?你可以跟踪日志并检查我展示了应用程序的屏幕截图,看一看我似乎没问题,你是否更改了代理配置?像这样添加端点。事情已经解决了。非常感谢您看到您添加的日志了吗?根据日志,我猜您的LoaclHost:8281/person/endpoint返回一个空响应,然后将其传播回soapui。如果要进行测试,可以尝试例如“mocky.io”创建一个虚拟响应,并将其用作端点:
<template xmlns="http://ws.apache.org/ns/synapse" name="esbendpoint">
<endpoint name="$name">
<address uri="$uri">
<suspendOnFailure>
<errorCodes>-1</errorCodes>
<progressionFactor>1.0</progressionFactor>
</suspendOnFailure>
<markForSuspension>
<errorCodes>-1</errorCodes>
<retriesBeforeSuspension>0</retriesBeforeSuspension>
<retryDelay>0</retryDelay>
</markForSuspension>
<timeout>
<duration>60000</duration>
<responseAction>fault</responseAction>
</timeout>
</address>
</endpoint>
</template>