Hello Nacho, you are right. These strange characters prevents OJ from working with this server.
I patched my local source copy of OJ com.vividsolutions.wms.WMService#initialize() to resolve the problem: ... PushbackInputStream fake = new PushbackInputStream(inp); int x; while ((x = fake.read()) != -1 && x != '<'); if (x == -1) throw new IOException("EOF"); fake.unread(x); Parser p = new Parser(); cap = p.parseCapabilities(this, fake); ... This makes the server usable. But this is a bit of a workaround. I think it would be better to contact the server's owner to remove the characters in front of the XML document. Any other comments? BTW: A nice server to test my new SVG support for WMS. Thanks! :-) Kind regards, Sascha Nacho Uve schrieb: > Hello, > > WMS Service doesnt work in OpenJUMP: http://ideg.xunta.es/wms/request.aspx > This is a service of the Regional Governement Of Galicia (Spain) and I > would like use. > > The problem could be the answer to the GetCapabilities: > (http://ideg.xunta.es/wms/request.aspx?VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS& > <http://ideg.xunta.es/wms/request.aspx?VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS&>) > > **<?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE WMT_MS_Capabilities SYSTEM > "http://ideg.xunta.es/WMS/schemas/capabilities_1_1_1.dtd"[ <!ELEMENT > VendorSpecificCapabilities EMPTY>]> > <WMT_MS_Capabilities updateSequence="5" version="1.1.1"> > ..... > ..... > > > I suppous that strange characters in the head are the problem... Can we > solve the problem ignoring these characters? Thank you... > > Regards, > Nacho > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel