Hexagon Geospatial
MENU

WebGIS

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 36
Registered: ‎05-11-2017

CSW search in Geospatial Portal

Hi all,

 

I am using Geospatial Portal 2018 and Geonetwork Metadata Catalogue.

 

I want to use Search for data (metadata) function from portal to make search for metadata from my geonetwork.

 

I have registered CSW from Geonetwork in Geospatial Portal instance, but any search returns no results.

 

Is there somebody who know what can be a problem with metadata search.

 

Best regards,

Micko

Highlighted
Technical Evangelist
Posts: 1,033
Registered: ‎09-11-2015

Re: CSW search in Geospatial Portal

Hi Micko,

 

Please enable DEBUG logging in Portal's web.config (log4net section), reload the Portal and try the request again. You should see the request sent by Portal and its response in the log afterwards. This should give you some idea what's happening in the background.

 

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Contributor
Posts: 36
Registered: ‎05-11-2017

Re: CSW search in Geospatial Portal

Thanks for tip Jan,

 

I have enabled DEBUG logging in Portal's web.config.

According to log file Metadata serach is  forbiden.

 

 

2019-01-09 12:15:07,665 [709] WARN  Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: Exception: 
System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()
   at Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchResultsReader.GetAdvancedMetadataSearchResultsReader(IDictionary`2 searchParams, IDictionary`2 cswParams, String typeName, String outputSchema)
   at Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler.ProcessRequest(HttpContext context)

I will investigate what could be a reason.

 

Regards,

Micko

 

Technical Evangelist
Posts: 1,033
Registered: ‎09-11-2015

Re: CSW search in Geospatial Portal

Few lines before this WARN there should be the actual request and which method was used for it (GET vs. POST). It may be, that the CSW provider doesn't accept one of them.

 

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Occasional Visitor
Posts: 1
Registered: ‎04-10-2019

Re: CSW search in Geospatial Portal

Hi Micko,

 

I have the same problem. I registered CSW from Geonetwork but the search does not produce results. Do you know what the problem is? My debug file is below..

 

2019-03-27 15:02:57,889 [7] DEBUG Application.Global [(null)] - language code: http://213.149.105.121/Geoportal01/AdvancedMetadataSearch.WebClient.ashx "sr"
2019-03-27 15:02:57,891 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: Processing request
2019-03-27 15:02:57,891 [7] INFO Intergraph.WebSolutions.Core.WebClient.MapManager.Security.CsrfChecker [(null)] - Token value: 80rQ4St5WwFQgiVhBtai5QtGcHiQ/X/PbavazTCb3a10Qi8YAY7s86B74E37rSl4p3X8HWdmQz8TLCTNMnsOdA==
2019-03-27 15:02:57,891 [7] INFO Intergraph.WebSolutions.Core.WebClient.MapManager.Security.CsrfChecker [(null)] - Cookie value: 80rQ4St5WwFQgiVhBtai5QtGcHiQ/X/PbavazTCb3a10Qi8YAY7s86B74E37rSl4p3X8HWdmQz8TLCTNMnsOdA==
2019-03-27 15:02:57,891 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: Loading mapService 11ab933a-fad9-406a-87c6-8d0f0aef8370.
2019-03-27 15:02:57,891 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: Getting GetRecords GET url from service operations.
2019-03-27 15:02:57,891 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: Getting GetRecords POST url from service operations.
2019-03-27 15:02:57,891 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: Getting GetRecordById GET url from service opearations.
2019-03-27 15:02:57,891 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: ID value is null or empty
2019-03-27 15:02:57,912 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchResultsReader [(null)] - CSW: Building filter elements
2019-03-27 15:02:57,912 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchResultsReader [(null)] - CSW: Building filter string.
2019-03-27 15:02:57,912 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchResultsReader [(null)] - CSW: Performing request. Posted data: <GetRecords service="CSW" version="2.0.2" maxRecords="100" startPosition="1" resultType="results" outputFormat="application/xml" outputSchema="http://www.opengis.net/cat/csw/2.0.2" xmlns="http://www.opengis.net/cat/csw/2.0.2" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"><Query typeNames="csw:Record"><ElementSetName typeNames="csw:Record">full</ElementSetName><Constraint version="1.1.0"><ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogc:PropertyIsLike escapeChar="\" singleChar="?" wildCard="%"><ogc:PropertyName>AnyText</ogc:PropertyName><ogc:Literal>Ortofoto</ogc:Literal></ogc:PropertyIsLike></ogc:Filter></Constraint></Query></GetRecords>.
2019-03-27 15:02:57,915 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchResultsReader [(null)] - CSW: Getting CSW response.
2019-03-27 15:02:57,916 [7] WARN Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: Exception:
System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()
   at Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchResultsReader.GetAdvancedMetadataSearchResultsReader(IDictionary`2 searchParams, IDictionary`2 cswParams, String typeName, String outputSchema)
   at Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler.ProcessRequest(HttpContext context)
2019-03-27 15:02:57,917 [7] DEBUG Intergraph.WebSolutions.Core.SDIPortal.CSW.MetadataSearch.AdvancedMetadataSearchHandler [(null)] - CSW: Unfinished result dump: {}

Best regards,

Nenad

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.