support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > XML > What is the best way to retrieve XML via HTTP?
Question Title What is the best way to retrieve XML via HTTP?

Question:

Suppose I want to retrieve XML with an HTTP request given a particular URL.
What is the easiest or best way to do this? Please provide a sample program.

Answer:

One way to communicate with an HTTP server is by using the HTTPClient class.
You can retrieve XML data in an XML envelope using HTTPClient methods, such as doGet.
There are several examples of using HTTPClient in %ISCOBOL%/samples, including the issamples/SAMPLES.cbl program (in the objects tab), and the samples in eis/webservice/soap/client and eis/http/xml.

There are other ways to get XML data from a URL.
isCOBOL includes an internal object named com.iscobol.rts.XMLStream.
We also support ACUCOBOL-GT's C$XML.
Because isCOBOL compiles to Java code, you can use Java language XML APIs and tools available to the Java programmer.
See the KB article "Does isCOBOL Support C$XML or other XML interfaces?".

isCOBOL also supports procedure division statements XML PARSE and XML Generate.
See the KB Article "What are all of the options for a COBOL program to read and write XML files?"

Authored by: Veryant Support This question has been viewed 7697 times so far.
Click Here to View all the questions in XML category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. What are all of the options for a COBOL program to read and write XML files?
  2. Can you recommend an XML editor?
Article Information Additional Information
Article Number: 46
Created: 2009-08-31 5:29 PM
Rating: 1 Star
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.