Hi,
Captured from a gis.stackexchange question http://gis.stackexchange.com/questions/123754/problem-with-connecting-remote-wms-connection-to-geoserver, this WMS server can't be cascaded with Geoserver.:
http://mapy.geoportal.gov.pl/wss/service/pub/guest/kompozycjaG2_TBD_WMS/MapServer/WMSServer?
The error is
Connection test failed: Content type is required for org.geotools.data.wms.response.WMSGetCapabilitiesResponse
I could not connect the service with OpenJUMP either. It gives an error
IOException: org.sax.SAXParseException; Premature end of life.
However, I can read GetCapabilities with browser and document was reported valid by a web service at xmlvalidation.com.
I studied with Fiddler what happens. Geoserver is sending the following request but gets never anything back. I could have something to do with the headers and ESRI server wants to get something more than it gets now
GET http://mapy.geoportal.gov.pl/wss/service/pub/guest/kompozycjaG2_TBD_WMS/MapServer/WMSServer?REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS HTTP/1.1
Accept-Encoding: gzip
User-Agent: Java/1.7.0_67
Host: mapy.geoportal.gov.pl
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Proxy-Connection: keep-alive
Browsers gets an answer and it is sending the request this way:
GET http://mapy.geoportal.gov.pl/wss/service/pub/guest/kompozycjaG2_TBD_WMS/MapServer/WMSServer?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: fi-FI
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Proxy-Connection: Keep-Alive
Host: mapy.geoportal.gov.pl
I wonder if this could be some common java http issue because exactly the same happens with OpenJUMP: program sends the GetCapabilities request but ESRI server sends back only this empty response
HTTP/1.1 200 OK
Server: BigIP
Content-Length: 0
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Age: 0
Date: Fri, 28 Nov 2014 10:05:36 GMT
What is this " Server: BigIP"? In the good response to request from browser the headers are
HTTP/1.1 200 OK
Content-Type: text/xml
Date: Fri, 28 Nov 2014 09:52:11 GMT
Content-Length: 218715
Vary: Accept-Encoding
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Age: 0
-Jukka Rahkonen-