带有数据服务托管功能的ESB 4.8.1不能使用boxcarring

时间:2015-09-25 03:27:35

标签: wso2 wso2esb wso2dss

我在安装了数据服务托管功能4.2.4的WSO2 ESB 4.8.1服务器中运行以下代码。我在网上做了一些研究,“begin_boxcar”请求的正常响应应该返回一个会话cookie,但事实并非如此。我还尝试将相同的请求发送到独立的DSS 3.2.2服务器。我确实返回了一个会话cookie。有人可以帮忙吗?

<header name="Action" value="urn:begin_boxcar"></header>
 <payloadFactory media-type="xml">
    <format>
       <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dat="http://ws.wso2.org/dataservice">
          <soapenv:Header></soapenv:Header>
          <soapenv:Body>
             <dat:begin_boxcar></dat:begin_boxcar>
          </soapenv:Body>
       </soapenv:Envelope>
    </format>
 </payloadFactory>
 <call>
    <endpoint key="GS1OrderDS"></endpoint>
 </call>
 <log level="full">
    <property name="==============Set-Cookie===============" expression="get-property('transport','Set-Cookie')"></property>
 </log>

1 个答案:

答案 0 :(得分:0)

您可以从

获取Cookie值
<property name="setCookieHeader" expression="$trp:Set-Cookie"/>

对于后续调用,可以通过

设置Cookie
<property name="Cookie" expression="get-property('setCookieHeader')"
               scope="transport"/>

希望这有帮助!