Rahkonen Jukka wrote:

Hi,

> It seems that WFS plugin works as it should: it is sending the first
> GetCapabilities request to the URL the user is giving.  For the following
> requests WFS plugin takes the URL included in the capabilities document.  So
> you cannot make it work with WFS plugin without modifying its code.

> I tried your link with Cadcorp SIS Map browser, that is a free demo download
> (need registration, though. It was not so strict with those odd characters and
> I was able to get the feature type. I believe Andreas in that basically the
> server configuration is bad and service provided should correct it to have
> properly formatted link.  Unfortunately WFS servers often are poorly
> configured, which gives trouble with strict clients.

I actually tried to make our WFS-Plugin more relaxed about this, but the
trouble is the underlying HTTP POST client. For fetching the capabilities we use
the Java internal HTTP client (which to my knowledge only supports GET), so that
part works.

GetFeature requests are sent by POST via the HTTP-Client from Apache
Commons. Unfortunately this client throws an exception when using the
problematic URL (even with the newest version of the library). So we'd have to
use a properly encoded URL. But without knowing which parts of the URL ought to
be encoded and which not (URL encoding also encodes slashes '/'), that's kind of
impossible.

So basically one option for our plugin would be to switch to a different HTTP
client library. But adding another library just to make it work with a broken
server setup is ... questionable.

The second option would be to scan the URLs for bad characters and try to fix
them. This might be a viable workaround one step before the HTTP client, but it
would require some more time. When I find the time, I might add something like
this.

In the meantime, maybe the administrators of the server in question could fix
the problem on their side? After all, other Java clients using Apache Commons
will run into the same problem.

Best regards, Andreas
--
l a t / l o n  GmbH
Aennchenstrasse 19           53177 Bonn, Germany
phone ++49 +228 18496-11     fax ++49 +228 1849629
http://www.lat-lon.de        http://www.deegree.org

Attachment: signature.asc
Description: Digital signature

_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users

Reply via email to