【问题标题】:reading soap header element in payload读取有效载荷中的肥皂标题元素
【发布时间】:2013-06-20 05:29:19
【问题描述】:

我需要使用message-properties-transformer 从mule 中的soap 有效负载中读取wsse:Username(它是soap 标头的一部分)的内容。 我想在其他地方使用这个变量。

Soap Web 服务请求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:spel="http://mobistar.be/spellchecker/">
   <soapenv:Header> 
      <wsse:Security soapenv:mustUnderstand="1" >
         <wsse:UsernameToken wsu:Id="UsernameToken-1">
           <wsse:Username>Tester01</wsse:Username>
         </wsse:UsernameToken>
       </wsse:Security>
   </soapenv:Header> 
   <soapenv:Body>
     <spel:CheckSpellingRequest>
        <spel:Text>Please test this blabla</spel:Text>
      </spel:CheckSpellingRequest>
   </soapenv:Body>
</soapenv:Envelope>

请告诉我我们是否可以在 mule 中实现这一点?

【问题讨论】:

    标签: mule mule-studio


    【解决方案1】:

    同时使用set-variable、set-session-variable 或set-property 代替旧的message-properties-transformer。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-25
      相关资源
      最近更新 更多