Skip to main content

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="docs.oasis-open.org/.../wsa:To><wsse:Security><wsu:Timestamp 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="">harlandfs/.../"><GetURLByDocumentIDsResult>Https://px-demo.avcm.esvccenter.com//Services/Wse/Deliver.aspx?requestId=6370974767952881227829862765d910-14f8-4f9f-ad53-12af1b1c3364&amp;token=qQUXwG5BsqA1G97F1qRQRF1SlbLC5RYlaBhHtptv8Iwtm70IIPdK3nRscTeG5S+6Rhfxl35o1ptCZvrRGYpTN2QREnFjbsNAFtJEfBFbtCs=</GetURLByDocumentIDsResult></GetURLByDocumentIDsResponse></soap:Body></soap:Envelope>

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="docs.oasis-open.org/.../wsa:To><wsse:Security><wsu:Timestamp 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="">harlandfs/.../"><GetURLByDocumentIDsResult>Https://px-demo.avcm.esvccenter.com//Services/Wse/Deliver.aspx?requestId=6370974767952881227829862765d910-14f8-4f9f-ad53-12af1b1c3364&amp;token=qQUXwG5BsqA1G97F1qRQRF1SlbLC5RYlaBhHtptv8Iwtm70IIPdK3nRscTeG5S+6Rhfxl35o1ptCZvrRGYpTN2QREnFjbsNAFtJEfBFbtCs=</GetURLByDocumentIDsResult></GetURLByDocumentIDsResponse></soap:Body></soap:Envelope>

Below link , i meant red color mark.

<GetURLByDocumentIDsResult>Https://px-demo.avcm.esvccenter.com//Services/Wse/Deliver.aspx?requestId=6370974767952881227829862765d910-14f8-4f9f-ad53-12af1b1c3364&amp;token=qQUXwG5BsqA1G97F1qRQRF1SlbLC5RYlaBhHtptv8Iwtm70IIPdK3nRscTeG5S+6Rhfxl35o1ptCZvrRGYpTN2QREnFjbsNAFtJEfBFbtCs=</GetURLByDocumentIDsResult>


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="docs.oasis-open.org/.../wsa:To><wsse:Security><wsu:Timestamp 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="">harlandfs/.../"><GetURLByDocumentIDsResult>Https://px-demo.avcm.esvccenter.com//Services/Wse/Deliver.aspx?requestId=6370974767952881227829862765d910-14f8-4f9f-ad53-12af1b1c3364&amp;token=qQUXwG5BsqA1G97F1qRQRF1SlbLC5RYlaBhHtptv8Iwtm70IIPdK3nRscTeG5S+6Rhfxl35o1ptCZvrRGYpTN2QREnFjbsNAFtJEfBFbtCs=</GetURLByDocumentIDsResult></GetURLByDocumentIDsResponse></soap:Body></soap:Envelope>

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’.


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’.

Hi Martin,

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

 

 


Hi Martin,

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

 

 

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?

 

 

 

 


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?

 

 

 

 

 

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


 

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

This discussion can be closed.