<div dir="ltr"><div>Thanks a lot for your response Tom, so I have a question, should I follow this steps to harvest a wms service: <br></div><div><br></div><div>1. Modify the following XML request from my WMS service: 
<a href="https://github.com/geopython/pycsw/blob/master/tests/functionaltests/suites/harvesting/post/Harvest-wms-run1.xml" rel="noreferrer" target="_blank">https://github.com/geopython/pycsw/blob/master/tests/functionaltests/suites/harvesting/post/Harvest-wms-run1.xmlv</a> (I named: post.xml and save it in c:\geiper\post\post.xml)</div><div>2. Set in my default.cfg 
<code><span class="gmail-pre">transactions=true</span></code>

</div><div>3. When it's done, I should execute this command line: <br></div><div><br></div><div style="text-align:center">
<span class="gmail-nv"> </span>python bin/pycsw-admin.py -c post_xml -u <a href="http://localhost/pycsw/csw.py">http://localhost/pycsw/csw.py</a> -x c:\geiper\post\post.xml <br></div><div></div><div><br></div><div>4. Refresh the harvested records with the following command line: <br></div><div><br></div><div style="text-align:center">python bin/pycsw-admin.py  -c refresh_harvested_records -f default.cfg</div><div><pre></pre><div>Those were all the steps I must follow to harvest records from WMS? <br></div><div><br></div><div>If yes, I get the following error: <br></div><div><br></div><div>b'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<!-- pycsw 2.4.2 -->\n<ows:ExceptionReport xmlns:csw="<a href="http://www.opengis.net/cat/csw/2.0.2">http://www.opengis.net/cat/csw/2.0.2</a>" xmlns:dc="<a href="http://purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</a>" xmlns:dct="<a href="http://purl.org/dc/terms/">http://purl.org/dc/terms/</a>" xmlns:gmd="<a href="http://www.isotc211.org/2005/gmd">http://www.isotc211.org/2005/gmd</a>" xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>" xmlns:ows="<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>" xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" version="1.2.0" language="en-US" xsi:schemaLocation="<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a> <a href="http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd</a>"><ows:Exception exceptionCode="NoApplicableCode" locator="service"><ows:ExceptionText>Exception: document not well-formed.\nError: EntityRef: expecting \';\', line 3, column 95 (&lt;string&gt;, line 3).</ows:ExceptionText></ows:Exception></ows:ExceptionReport>'</div><div><br></div><div>And My post.xml is formed like this: <br></div><div><br></div><div><?xml version="1.0" encoding="UTF-8"?><br><Harvest xmlns="<a href="http://www.opengis.net/cat/csw/2.0.2">http://www.opengis.net/cat/csw/2.0.2</a>" xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>" xmlns:gmd="<a href="http://www.isotc211.org/2005/gmd">http://www.isotc211.org/2005/gmd</a>" xmlns:ows="<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:dc="<a href="http://purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</a>" xmlns:dct="<a href="http://purl.org/dc/terms/">http://purl.org/dc/terms/</a>" xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/cat/csw/2.0.2">http://www.opengis.net/cat/csw/2.0.2</a> <a href="http://schemas.opengis.net/csw/2.0.2/CSW-publication.xsd">http://schemas.opengis.net/csw/2.0.2/CSW-publication.xsd</a>" service="CSW" version="2.0.2"></div><div><br></div><div>  <Source><a href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/DATA/geoserviciosgeiper.map&SERVICE=WMS&VERSION=1.3.0">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/DATA/geoserviciosgeiper.map&SERVICE=WMS&VERSION=1.3.0</a></Source></div><div><br></div><div>  <ResourceType><a href="http://www.opengis.net/wms">http://www.opengis.net/wms</a></ResourceType><br>  <ResourceFormat>application/xml</ResourceFormat><br></Harvest></div><div><br></div><div>Thank you so much for your help.<br></div>

<pre><br>

</pre>

</div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar., 13 oct. 2020 a las 19:28, Tom Kralidis (<<a href="mailto:tomkralidis@gmail.com">tomkralidis@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Brian: thanks for the info.  Comments interleaved:<br>
<br>
On Tue, Oct 13, 2020 at 4:13 PM BRIAN STIFFENN LUNA BOLIVAR<br>
<<a href="mailto:bslunab@correo.udistrital.edu.co" target="_blank">bslunab@correo.udistrital.edu.co</a>> wrote:<br>
><br>
> Hello everyone, good day. I have been trying for over a month to install and run pycsw, but I have not been fortunate enough to do it properly for my college degree work.<br>
><br>
<br>
What kind of installation problems are you having?<br>
<br>
> I currently have a WMS service in place which I need to run Harvest operation and be able to update the GetCapabilities of the CSW however, I have not found the right way to do it.<br>
><br>
> Could someone please provide me with a methodological guide to be able to run the Harvest operation to a WMS?<br>
><br>
<br>
You can run a CSW-T Harvest XML POST request with the following XML request:<br>
<br>
<a href="https://github.com/geopython/pycsw/blob/master/tests/functionaltests/suites/harvesting/post/Harvest-wms-run1.xml" rel="noreferrer" target="_blank">https://github.com/geopython/pycsw/blob/master/tests/functionaltests/suites/harvesting/post/Harvest-wms-run1.xml</a><br>
<br>
Here, you would replace the <Source> element content with your WMS<br>
base URL.  To invoke XML POST requests, see the following<br>
FAQ item: <a href="https://pycsw.org/faq/#how-can-i-make-csw-post-xml-requests" rel="noreferrer" target="_blank">https://pycsw.org/faq/#how-can-i-make-csw-post-xml-requests</a><br>
<br>
Hope this helps.<br>
<br>
..Tom<br>
<br>
> Q: I'm currently using Mapserver 7.7.0-dev in windows.<br>
><br>
> Regards.<br>
><br>
</blockquote></div>