From: Simpson <asi...@i-...> - 2005-10-27 18:31:05
|
Greetings again, I am trying to connect to a WFS service (served by MapServer) and am getting: java.io.IOException: org.xml.sax.SAXException: Type not found for OnlineResource This is happening when getcapabilities is issued. Here is the top of the getcapabilities: <?xml version="1.0" encoding="ISO-8859-1" ?> <WFS_Capabilities version="1.0.0" updateSequence="0" xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-capabilities.xsd"> <!-- MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG --> <Service> <Name>MapServer WFS</Name> <Title>WFS for xxxxxx</Title> <OnlineResource>https://xxxx/xxxxx</OnlineResource> </Service> Reviewing the xml at http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-capabilities.xsd , I don't see any type declared for OnlineResource, so I think Geotools is rightfully complaining. I hunted around the Web for a different xsd, but they all seem to be missing a type for OnlineResource? I suppose I either need an xsd that'll pass the validation, a work around to stop validation, or skip validation for OnlineResource. Any suggestions? Thanks for any info, Drew. |