首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >wso2 esb代理rest服务无响应

wso2 esb代理rest服务无响应
EN

Stack Overflow用户
提问于 2019-10-14 15:48:48
回答 1查看 54关注 0票数 0

代理配置:

代码语言:javascript
复制
<?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>

请求消息无法获取响应消息模板:

模板:

以下是控制台日志输出:

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-10-14 15:54:21

你能试试这个吗,

代码语言:javascript
复制
<endpoint name="IdentityDSSserviceEP" template="esbendpoint" uri="http://localhost:8181/person/"/>

模板(示例模板)

代码语言:javascript
复制
<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>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58372238

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档