Highlighted
Contributor.
Contributor.
403 views

XmL value not getting captured....

Jump to solution

I need to capture some value response data and store that value in the external file (CSV) , so that i can use that value in next another script.

 

The following is the response:

parameter "response" =  "emas.xmlsoap.org/soap/envelope/"><soap-env:Header/><soap-env:Body><n0:CurrentAccountContractFSCreateConfirmation_V2 xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:BSR:/1SAI/TAE1F6F38D982B9E8BE454B:750"><MessageHeader><ID>005056B5D69F1EE88EB288EBE491B361</ID><UUID>005056b5-d69f-1ee8-8eb2-88ebe491b361</UUID><ReferenceUUID>4d6a6150-176c-11e1-bddb-0756300c9a66</ReferenceUUID><CreationDateTime>2018-04-06T12:16:05Z</CreationDateTime><SenderBusinessSystemID>BAS_BSR_300</SenderBusinessSystemID></MessageHeader><CurrentAccountContract><ID schemeID="BAC.002c" schemeAgencyID="310">00000010748784049                  679000         ZA</ID><ChangeStateID>                 20180406121605.1053140</ChangeStateID><SystemAdministrativeData><CreationDateTime>2018-04-06T12:16:05Z</CreationDateTime><LastChangeDateTime>2018-04-06T12:16:05Z</LastChangeDateTime><LastChangeUserAccountID schemeAgencyID="310">A100309</LastChangeUserAccountID></SystemAdministrativeData><CurrencyCode>ZAR</CurrencyCode><LifeCycleStatusCode>2</LifeCycleStatusCode><LifeCycleStatusName languageCode="en">Active</LifeCycleStatusName><StartDate>2018-03-29</StartDate><UsageNote>TransactionalAccount</UsageNote><DormancyStatusCode listVersionID="11439" listAgencyID="310">01</DormancyStatusCode><DormancyStatusName languageCode="en">Active</DormancyStatusName><OperationalBankContractManagement><ValidityPeriod/><CurrentIndicator>true</CurrentIndicator><ID>50000000</ID></OperationalBankContractManagement><BusinessProcessChainAssignment><BusinessProcessChainUUID>b9331efe-c68f-4a4e-9e1d-de097049e036</BusinessProcessChainUUID><BankingBusinessTransactionTypeCode listID="10924" listAgencyID="310">300001</BankingBusinessTransactionTypeCode><BankingBusinessTransactionTypeName languageCode="E ">CREATION (DEPOSIT)</BankingBusinessTransactionTypeName></BusinessProcessChainAssignment><AccountHolderParty><ValidityPeriod/><CurrentIndicator>true</CurrentIndicator><IdentifyingElements><PartyKey><PartyTypeCode>147</PartyTypeCode><PartyID>3000006738</PartyID></PartyKey><PartyUUID>005056b5-2a40-1ed8-8c99-c519410e8eee</PartyUUID></IdentifyingElements></AccountHolderParty><Product><ValidityPeriod/><CurrentIndicator>true</CurrentIndicator><BankAccountContractProductionControl><ID>Z_DSYCA001</ID><Version><ID>0036</ID></Version></BankAccountContractProductionControl><BankSalesProduct><ID>D001</ID></BankSalesProduct></Product><BankAccount><ValidityPeriod/><CurrentIndicator>true</CurrentIndicator>

<IdentifyingElements><ID>00000010748784049</ID><InternalID schemeAgencyID="310">EBE49188D3611EE88EB2005056B5D69F</InternalID><Bank><RoutingID>679000</RoutingID><CountryCode>ZA</CountryCode><CountryName languageCode="en">South Africa</CountryName></Bank></IdentifyingElements></BankAccount></CurrentAccountContract><Log><BusinessDocumentProcessingResultCode>3</BusinessDocumentProcessingResultCode></Log></n0:CurrentAccountContractFSCreateConfirmation_V2></soap-env:Body></soap-env:Envelope>"

 

The following Query I am using to  Extract the ID value: 00000010748784049, but not getting the value.

Kindly help with Query Xpath .

0 Likes
1 Solution

Accepted Solutions
Highlighted
Valued Contributor.
Valued Contributor.

Re: XmL value not getting captured....

Jump to solution

Hi,

I saw you use below xpath, "env:Body" part is wrong, you can use /Envelope/Body/... directly

"Query=/Envelope/env:Body/n0:CurrentAccountContractFSCreateConfirmation_V2/BankAccount/IdentifyingElements/ID",

View solution in original post

1 Reply
Highlighted
Valued Contributor.
Valued Contributor.

Re: XmL value not getting captured....

Jump to solution

Hi,

I saw you use below xpath, "env:Body" part is wrong, you can use /Envelope/Body/... directly

"Query=/Envelope/env:Body/n0:CurrentAccountContractFSCreateConfirmation_V2/BankAccount/IdentifyingElements/ID",

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.