문제

Using wso2 esb i can construct a complete soap message like this:

<enrich>
    <source type="inline" clone="true">
       <m0:getQuote xmlns:m0="http://services.samples">                                                           
          <m0:request>                                                                        
             <m0:symbol>IBM</m0:symbol>                                                            
          </m0:request>                                            
       </m0:getQuote>
    </source>
    <target type="body" />
 </enrich>

I've read http://www.mulesoft.org/documentation/display/MULE3USER/Message+Enricher

  <enricher target="#[variable:state]">
       <outbound-endpoint ref="stateLookup"/>
     </enricher>

I want to know how to configure to ref a inline payload or a jaxb object. Can I ref a custom component which return a jaxb object?

도움이 되었습니까?

해결책

If you want to replace the current message payload with a new payload coming from the result of a custom component, then just use a component not an enricher.

다른 팁

The syntax is something similar to below.

<enrich>
       <source [clone=true|false] [type=custom|envelope|body|property|inline] xpath="" property="" />
       <target [action=replace|child|sibiling] [type=custom|envelope|body|property|inline] xpath="" property="" />
 </enrich>

This http://wso2.org/project/esb/java/4.0.2/docs/mediators/enrich.html will guide you further.

-- Thilini

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top