5 Replies Latest reply on Jul 3, 2019 12:22 PM by Martien van den Akker

    Oracle Service Bus - for each and delete action - how to delete message context from request?

    Arek Stępień

      I need to know how to delete section "Offers" if  within parameter "delete" is equal 1.

      I have tried to use for-each action and then delete action but either I am getting validation error or the whole sections $BodyMsgRespose/Offers are deleted

       

      I am not able to use code below in Xpath to choose correct section Offers to be deleted.

      "v1:BodyMsgRespose/v1:Offers[($currIndex)]"

       

      Request:

       

       

      <BodyMsgRespose>

        <idTP>2S43/0042</idTP>

        <nameTP_CBD>

        </nameTP_CBD>

        <idSite>2S43</idSite>

        <descSite>Przebudowa linii tramwajowej w Krakowie</descSite>

        <IdActivityCBD>A37HB</IdActivityCBD>

        <descActivityCBD>PODKŁADY TOROWE BETONOWE</descActivityCBD>

        <IdActivityInSite>A0Z4</IdActivityInSite>

        <approvalDate>2014-01-09T13:53:28.617</approvalDate>

        <Active>1</Active>

        <isGuarantee>0</isGuarantee>

        <Offers>

        <idSupplier>B5ZJ</idSupplier>

        <offerSource>KK</offerSource>

        <Amount>2217590.0000</Amount>

        <Chosen>0</Chosen>

        <deleted>0</deleted>

        </Offers>

        <Offers>

        <idSupplier>AH4B</idSupplier>

        <offerSource>KK</offerSource>

        <Amount>2238734.0000</Amount>

        <Chosen>0</Chosen>

        <deleted>1</deleted>

        </Offers>

        <Offers>

        <idSupplier>AQFD</idSupplier>

        <offerSource>KK</offerSource>

        <Amount>2432112.0000</Amount>

        <Chosen>0</Chosen>

        <deleted>0</deleted>

        </Offers>

      </BodyMsgRespose>