Highlighted
Super Contributor.
Super Contributor.
213 views

C$XML detail input need

Jump to solution

Hello All,

I learnt C$XML using guide https://www.microfocus.com/documentation/extend-acucobol/1021/extend-Interoperability-Suite/BKITITNONVS027.html

But, i have some clarifications

Using C$XML, i want to get below red mark values to one working storage variable?

 

For this i tried below logic, but how do it declare final.xml which i need to open and get the  below red mark values to one variable? CXML-GET-FIRST-CHILD/parser-handle both variables how do i declare in working storage section? just please give me sample code here. thank you in advance.

call "C$XML" using CXML-GET-FIRST-CHILD 
                   parser-handle.

 

 

 

 

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soap:Header><wsa:Action>http://harlandfs/ECM/Services/Search/GetURLByDocumentIDsResponse</wsa:Action><wsa:MessageID>urn:uuid:1881ac84-1d76-4ce0-ae19-9a24bcf9c232</wsa:MessageID><wsa:RelatesTo>urn:uuid:e8770290-0a93-4a11-a7d7-7a152f811ea6</wsa:RelatesTo><wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/... wsu:Id="Timestamp-0eb55f69-fe46-4708-af7b-1c7b44c0230d"><wsu:Created>2019-11-19T14:07:59Z</wsu:Created><wsu:Expires>2019-11-19T14:12:59Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><GetURLByDocumentIDsResponse xmlns="http://harlandfs/ECM/Services/Search/"><GetURLByDocumentIDsResult>Https://px-demo.avcm.esvccenter.com//Services/Wse/Deliver.aspx?requestId=6370974767952881227829862765d910-14f8-4f9f-ad53-12af1b1c3364&amp;token=qQUXwG5BsqA1G97F1qRQRF1SlbLC5RYlaBhHtptv8Iwtm70IIPdK3nRscTeG5S%2b6Rhfxl35o1ptCZvrRGYpTN2QREnFjbsNAFtJEfBFbtCs%3d</GetURLByDocumentIDsResult></GetURLByDocumentIDsResponse></soap:Body></soap:Envelope>

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: C$XML detail input need

Jump to solution

In your example CXML-GET-FIRST-CHILD retrieves ‘soap:Envelope’.

Instead try CXML-GET-CHILD-BY-NAME to go to ‘soap:Body’ first and then work from there.

‘GetURLByDocumentIDsResult’ is a child of ‘GetURLByDocumentIDsResponse’ which is a child of ‘soap:Body’.

---
Martin Turner
Product Support Engineer
Micro Focus

View solution in original post

0 Likes
6 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: C$XML detail input need

Jump to solution

In your example CXML-GET-FIRST-CHILD retrieves ‘soap:Envelope’.

Instead try CXML-GET-CHILD-BY-NAME to go to ‘soap:Body’ first and then work from there.

‘GetURLByDocumentIDsResult’ is a child of ‘GetURLByDocumentIDsResponse’ which is a child of ‘soap:Body’.

---
Martin Turner
Product Support Engineer
Micro Focus

View solution in original post

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: C$XML detail input need

Jump to solution

Hi Martin,

Thanks for your reply!   parser-handle declared in copy book? we need to declare in working storage section.?

 

 

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: C$XML detail input need

Jump to solution

Also,

correct me if approach is wrong.

XML PUT TEXT
response-payload
response-len
"C:\sparak\19\CS\TMP\final-result.xml"
if not XML-OK go to 004-END-PROCESS.

Based on above logic, final-result.xml has been created.  So, after that i can do below code,,,,correct?

call "C$XML" using CXML-GET-CHILD-BY-NAME
parser-handle.

My question is here, how system know to take my final-result.xml,   But, how that data flow into ws-variable?

77 parser-handle  pic X(??)    how much size should be declared?

 

 

 

 

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: C$XML detail input need

Jump to solution
Spoiler
 

I mean finally CXML-GET-CHILD-BY-NAME need to move to my own ws-variable?

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: C$XML detail input need

Jump to solution

This discussion can be closed.

0 Likes
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.