<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sdmxcloud.org/index.php?action=history&amp;feed=atom&amp;title=Calling_Web_Services_via_Curl</id>
	<title>Calling Web Services via Curl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sdmxcloud.org/index.php?action=history&amp;feed=atom&amp;title=Calling_Web_Services_via_Curl"/>
	<link rel="alternate" type="text/html" href="https://wiki.sdmxcloud.org/index.php?title=Calling_Web_Services_via_Curl&amp;action=history"/>
	<updated>2026-05-05T18:46:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.sdmxcloud.org/index.php?title=Calling_Web_Services_via_Curl&amp;diff=5553&amp;oldid=prev</id>
		<title>Vmurrell at 11:14, 8 August 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.sdmxcloud.org/index.php?title=Calling_Web_Services_via_Curl&amp;diff=5553&amp;oldid=prev"/>
		<updated>2023-08-08T11:14:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:14, 8 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:WebService]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:WebService]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:How_To]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Rather than using the Graphical User Interface, the Registry can perform operations by calling its Web Services. Examples of these are the [[Data_Validation_Web_Service | Data Validation]] and [[Data_Transformation_Web_Service | Data Transformation]] Web Services. These can be invoked by a tool such as Postman, but this page aims to give some guidance on using the UNIX tool &amp;quot;curl&amp;quot; to invoke these Web Services.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Rather than using the Graphical User Interface, the Registry can perform operations by calling its Web Services. Examples of these are the [[Data_Validation_Web_Service | Data Validation]] and [[Data_Transformation_Web_Service | Data Transformation]] Web Services. These can be invoked by a tool such as Postman, but this page aims to give some guidance on using the UNIX tool &amp;quot;curl&amp;quot; to invoke these Web Services.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vmurrell</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.sdmxcloud.org/index.php?title=Calling_Web_Services_via_Curl&amp;diff=5463&amp;oldid=prev</id>
		<title>Vmurrell at 16:14, 2 August 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.sdmxcloud.org/index.php?title=Calling_Web_Services_via_Curl&amp;diff=5463&amp;oldid=prev"/>
		<updated>2023-08-02T16:14:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:14, 2 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:WebService]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:WebService]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Rather than using the Graphical User Interface, the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Fusion Metadata &lt;/del&gt;Registry can perform operations by calling its Web Services. Examples of these are the [[Data_Validation_Web_Service | Data Validation]] and [[Data_Transformation_Web_Service | Data Transformation]] Web Services. These can be invoked by a tool such as Postman, but this page aims to give some guidance on using the UNIX tool &amp;quot;curl&amp;quot; to invoke these Web Services.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Rather than using the Graphical User Interface, the Registry can perform operations by calling its Web Services. Examples of these are the [[Data_Validation_Web_Service | Data Validation]] and [[Data_Transformation_Web_Service | Data Transformation]] Web Services. These can be invoked by a tool such as Postman, but this page aims to give some guidance on using the UNIX tool &amp;quot;curl&amp;quot; to invoke these Web Services.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Example Use of Curl ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Example Use of Curl ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vmurrell</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.sdmxcloud.org/index.php?title=Calling_Web_Services_via_Curl&amp;diff=5462&amp;oldid=prev</id>
		<title>Vmurrell: Created page with &quot;Category:WebService Rather than using the Graphical User Interface, the Fusion Metadata Registry can perform operations by calling its Web Services. Examples of these are...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.sdmxcloud.org/index.php?title=Calling_Web_Services_via_Curl&amp;diff=5462&amp;oldid=prev"/>
		<updated>2023-08-02T16:13:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/Category:WebService&quot; title=&quot;Category:WebService&quot;&gt;Category:WebService&lt;/a&gt; Rather than using the Graphical User Interface, the Fusion Metadata Registry can perform operations by calling its Web Services. Examples of these are...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:WebService]]&lt;br /&gt;
Rather than using the Graphical User Interface, the Fusion Metadata Registry can perform operations by calling its Web Services. Examples of these are the [[Data_Validation_Web_Service | Data Validation]] and [[Data_Transformation_Web_Service | Data Transformation]] Web Services. These can be invoked by a tool such as Postman, but this page aims to give some guidance on using the UNIX tool &amp;quot;curl&amp;quot; to invoke these Web Services.&lt;br /&gt;
&lt;br /&gt;
== Example Use of Curl ==&lt;br /&gt;
&lt;br /&gt;
The following shows an example use of curl to the Fusion Metadata Registry.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  curl -X POST &lt;br /&gt;
    --header &amp;quot;Content-Type:application/text&amp;quot; &lt;br /&gt;
    --header &amp;quot;Accept: application/vnd.sdmx.structurespecificdata+xml;version=2.1&amp;quot; &lt;br /&gt;
    --header &amp;quot;Structure:urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=OECD:DF_BATIS_EBOPS2010(1.0)&amp;quot; &lt;br /&gt;
    --data-binary &amp;quot;@My Input File.csv&amp;quot; &lt;br /&gt;
    http://localhost:8080/FusionRegistry/ws/public/data/transform &lt;br /&gt;
    &amp;gt; Generated.xml&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above specifies:&lt;br /&gt;
* curl is performing a POST operation&lt;br /&gt;
* The Header parameter of &amp;quot;Content-Type&amp;quot; is set to application/text&lt;br /&gt;
* The Header parameter of &amp;quot;Accept&amp;quot; is set to output in SDMX-ML Structure Specific 2.1 form&lt;br /&gt;
* The input file is an SDMX-CSV input file called &amp;quot;My Input File.csv&amp;quot; &lt;br /&gt;
* The Registry is accessible at:  http://localhost:8080/FusionRegistry  and the transform Web Service is : /ws/public/data/transform&lt;br /&gt;
* The output is beng redirected into the file &amp;quot;Generated.xml&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Use of data-binary ===&lt;br /&gt;
It is highly recommended to specify your file with the &amp;quot;--data-binary&amp;quot; option.  Curl's -d option will strip out newline characters so is fine when validating / transforming XML but not for when you are processing CSV or Microsoft Excel files.&lt;br /&gt;
&lt;br /&gt;
=== Combining UNIX commands ===&lt;br /&gt;
&lt;br /&gt;
Since CURL is a standard UNIX command it can be combined with other commands to perform more complicated tasks and is especially useful in performing batch operations.&lt;br /&gt;
&lt;br /&gt;
A simple example of this is using CAT as the input can be performed by stating the input is &amp;quot;@-&amp;quot;.  An example follows showing how &amp;quot;cat&amp;quot;ing a SDMX JSON file and piping the output into the CURL command to submit the structure file to the Registry.  This example also shows passing in a userid and password:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  cat SimpleCodelist.json |&lt;br /&gt;
  curl -X POST &lt;br /&gt;
    --user root:password &lt;br /&gt;
    --header &amp;quot;Content-Type: application/json&amp;quot; &lt;br /&gt;
    --data-binary @- &lt;br /&gt;
     http://localhost:8080/FusionRegistry/ws/secure/sdmxapi/rest&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Vmurrell</name></author>
		
	</entry>
</feed>