我的序列太长,所以请通过这个 [英] my sequence is too long,so please go through this

查看:21
本文介绍了我的序列太长,所以请通过这个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我根据 clientid 和修改过的过滤序列,当我在soap 端运行时它提供正确的数据并且查询很好.

Below is my sequence i am filtering based on clientid and modifiedon,it is giving proper data when i am running at soap side as well as query is fine.

<?xml version="1.0" encoding="UTF-8"?>
<sequence xmlns="http://ws.apache.org/ns/synapse" name="ParameterMobile_Seq">

   <property xmlns:ns="http://org.apache.synapse/xsd"
             name="WorkPartyBranchId"
             expression="//WorkPartyBranchId/text()"/>
   <log level="full">
      <property xmlns:ns="http://org.apache.synapse/xsd"
                name="kk"
                expression="get-property('Authentication')"/>
   </log>
   <filter xmlns:ns="http://org.apache.synapse/xsd"
           xpath="get-property('Authentication')='false'">
      <then>
         <payloadFactory>
            <format>
               <ResponseJSON xmlns="">
                  <Exception>Authentication Failed</Exception>
                  <Status>404</Status>
               </ResponseJSON>
            </format>
         </payloadFactory>
         <property name="HTTP_METHOD" value="POST" scope="axis2" type="STRING"/>
         <property name="RESPONSE" value="true" scope="default" type="STRING"/>
         <property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
         <send/>
         <log level="full"/>
      </then>
      <else>
      <log level="full"/>
         <payloadFactory>
            <format>
               <p:mparameter xmlns:p="http://ws.wso2.org/dataservice">
                 <p:clientid>$1</p:clientid>
                 <p:modifiedon>$2</p:modifiedon>               
              </p:mparameter>
            </format>
            <args>
               <arg expression="get-property('clientid')"/>
               <arg expression="get-property('modifiedon')"/>
            </args>
         </payloadFactory>
          <log level="custom"/>
         <send receive="ParameterMobile_Seq2">
            <endpoint>
               <address uri="http://localhost:9764/services/mparameter_DataService/" format="soap11"/>
            </endpoint>
         </send>
         <log level="full"/>
      </else>
   </filter>
</sequence>

这只是序列,请检查并回复我.并显示异常为500000.所以我们可以在em中说明

This is only the sequence,please check and revert me.And showing an exception as 500000.so can we esplain in the em

推荐答案

在过滤介体中,then 条件是您尝试将请求作为响应发送回客户端.因此,您需要删除To"标题."else" 条件看起来不错.您现在面临的问题是什么?您在哪个配置段面临问题?

In the filter mediator, then condition you are trying to send request back to the client as response. So, you need to remove the "To" header. The "else" condition looks fine. What is the issue now you are facing and at which configuration segment you are facing the issue?

这篇关于我的序列太长,所以请通过这个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆