wso2esb - wso2 esb代理休息服务无响应
问题描述
代理配置:
<?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/"/>
模板(示例模板)
<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>
推荐阅读
- javascript - 套接字多次发出事件
- python - Visual Studio Code 无法检测到我的测试
- identityserver4 - 使用客户端凭据和 X509 证书获取访问令牌(Identity Server 4)
- javascript - 如何检测浏览器中的特定 url 并在 Javascript 中获取 html 页面关联?
- java - 使用 selenium webdriver 实现数据驱动框架
- vb.net - 我的 if 语句有问题,在我的 vb.net 代码中没有正确执行我的代码
- java - Wicket IFormValidator - 将多个 FormComponents 标记为无效
- javascript - 地理位置结果显示 NaN
- neo4j - 如何在 Java 中使用 Liquigraph 为 Neo4j 商店生成索引和约束脚本?
- react-native - 此版本不符合 Google Play 64 位要求 (ExpoKit)