WSO2 ESB прокси, остальные службы нет ответа - PullRequest
0 голосов
/ 14 октября 2019

screenshot soap request

Конфигурация прокси:

<?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>

screenshot postman

Сообщение запроса не может получить шаблон сообщения ответа:

screenshot endpoint template name

Шаблон:

screenshot xml template

Это вывод журнала консоли:

screenshot console log

1 Ответ

0 голосов
/ 14 октября 2019

Можете ли вы попробовать это,

<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>
...