Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

why do all Namespace gets appended when extracted through extract Variable policy for a SOAP xml?

Hi All

I am trying to extract a node from a soap XML through extract variable policy.When extracted the last node which has to be extracted gets appended with all the namespaces present in that SOAP Xml

why is it appending all the namespaces?

ExtractVariables configuration

<ExtractVariables name='EV-1'>
  <Source>something_here</Source>
  <XMLPayload stopPayloadProcessing="false"> 
    <Namespaces> 
      <Namespace prefix="soap">http://www.w3.org/2003/05/soap-envelope</Namespace> 
      <Namespace prefix="c">http://www.docusign.net/API/3.0</Namespace> 
      <Namespace prefix="s">http://webservice.bmc.pharmacy.com</Namespace> 
    </Namespaces> 
    <Variable name="process" type="nodeset"> 
      <XPath>/soap:Envelope/soap:Body/c:Root/c:Name/c:Country/node()</XPath> 
    </Variable> 
  </XMLPayload> 
</ExtractVariables>

SOAP request

<soap:Envelope
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ss="http://schemas.xmlsoap.org/soap/encoding/">
  <soap:Body> 
    <Root xmlns="http://www.docusign.net/API/3.0">
      <Name>
        <Country>
          <Countrycode
              xmlns="http://webservice.bmc.pharmacy.com">
            <Code1>6DCDC360-5339-4028-ACF3-54B639499642</Code1>
            <Code2>2020-05-26T08:52:30</Code2>
            <US>
              <Uscode1>Community and Economic Development Association of Cook County, Inc.</Uscode1>
              <Uscode2>21</Uscode2>
            </US>
          </Countrycode>
        </Country>
      </Name>
    </Root>
  </soap:Body>
</soap:Envelope>


ExtractVariables response

<Countrycode 
    xmlns="http://webservice.bmc.pharmacy.com"
    xmlns:ss="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Code1>6DCDC360-5339-4028-ACF3-54B639499642</Code1>
  <Code2>2020-05-26T08:52:30</Code2> 
  <US> 
    <Uscode1>Community and
    Economic Development Association of Cook County, Inc.</Uscode1>
    <Uscode2>21</Uscode2> 
  </US> 
</Countrycode>

Attaching the details

extractvariable-response.txt

extractvariable-config.txt

sample-req.txt

@Dino-at-Google @Dino @Anil Sagar @ Google

1 2 593
2 REPLIES 2
Top Solution Authors