Hi,
I need to make a program to send an .xml file to an entity.
The example program is in VB and I'm converting it to Cobol.
I have two mistakes that I can't get over.
The first and most complicated is the use of what in the VB program is called "WEB REFERENCES". I have the files but I can't register them in the project.
The other situation is in the conversion of the statement "Dim Buffer() As Byte = enc.GetBytes(xm)". Convert to "declare Buffer() as binary-char = enc::GetBytes(xm)" but gives an error "incorrect use of a reserved word". I've already changed the variable name and it continues to give an error.
Thank you for your help in both situations.
I send a print of the project in VB as an attachment.

Best regards
Alberto Ferraz
You can add a Web Reference or Service Reference to a COBOL project by right-clicking on the project name and selecting Add->Service Reference. To add an older style Web Reference click on the Advanced button and then click on the Web Reference button and enter in or browse to the URL of an existing Web Service.
Your statement is initializing an array. In COBOL this would be something like:
declare Buffer as byte occurs any = enc::GetBytes(xm)
You can add a Web Reference or Service Reference to a COBOL project by right-clicking on the project name and selecting Add->Service Reference. To add an older style Web Reference click on the Advanced button and then click on the Web Reference button and enter in or browse to the URL of an existing Web Service.
Your statement is initializing an array. In COBOL this would be something like:
declare Buffer as byte occurs any = enc::GetBytes(xm)
Hi Chris,
Thank you for your help.
I've managed to register the web references and now I'm trying to figure out what they contain.
In relation to the declaration of the variable BUFFER it is also not giving the error anymore.
I'll now handle the rest of the programming to see if I can do what I need.
Best regards
Alberto Ferraz