Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2806

Interface Determination: Using Xpath with Soap Envelope

$
0
0

Hi All,

I am having trouble using an Xpath expression in Interface Determination. The scenario is File to multiple Idoc but the source file contains an XML wrapped in a Soap Envelope like this:

 

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

   <soap:Body>

      <GetDataResponse xmlns="http://www.dummy.com/jdjen9/">

         <GetDataResult>

            <Elephant>

               <elephantName>Jumbo</elephantName>

               <elephantDetails>

                  <foodLimit>0</foodLimit>

               </elephantDetails>

               <elephantColour>

                  <colourCode/>

               </elephantColour>

               <zooAddresses>

                  <Address>

                     <addressCode>84475</addressCode>

                  </Address>

               </zooAddresses>

            </Elephant>

         </GetDataResult>

      </GetDataResponse>

   </soap:Body>

</soap:Envelope>

 

The interface is working fully but I would like to control Interface Determination based on a node in the XML. If the node called <Address> exists (shown in red above) then execute a particular operation mapping.

 

I have tried several Xpath expressions but they don't seem to work. Is it because Xpath does not expect the Soap envelope? If so is there another way to get what I want?

 

Some of what I have tried:

 

  1. /GetDataResponse/GetDataResult/Elephant/zooAddresses/Address EX
  2. /soap:Envelope/soap:Body/GetDataResponse/GetDataResult/Elephant/zooAddresses/Address EX

 

Untitled.png

 

Any help appreciated.

Che


Viewing all articles
Browse latest Browse all 2806

Trending Articles