Hi Claus:

I need to ask you to make a bug report :-) When we get down to the 
GetMapRequest we should be blindly doing what the capabilities documents lists 
(it lists a server and port for each operation as sometimes they are not the 
same as the source of the capabilities document.

In WMSComplextTypes (ie the parser) is the only point at which the setGetMap( 
... ) method is called.

Can you please check the *contents* of your capabilities document to ensure it 
is correct?
Jody



On 19/05/2010, at 5:29 PM, Weber, Claus wrote:

> 
> hi,
> 
> i guess i have found a bug in the wms section of the current geotools
> version 2.6.4:
> 
> geotools strips off the port number before sending a getMap request 
> which gets me an server exception (wrong port number)
> 
> 
> my case:
> 
> i try to access a wms server with a port number different from the
> default port 80 
> say something like 
> 
>       http://WMSSERVER:8080/...
> 
> 
> the server returns with a valid capability document: 
> 
>       WebMapServer wmserver = ...
>       WMSCapabilities wmscap = wmserver.getCapabilities();
>       
> 
> looking into the variable wmserver it shows the port number is here 8080
> as it should be
> but yet in wmscap the port number changes wrongly to -1 (the default
> port) 
> 
> and then trying to send a map request with
> 
>       GetMapRequest gmr = wmserver.createGetMapRequest();
>       GetMapResponse mapresponse = wmserver.issueRequest(gmr);
> 
> 
> i got an wrong port number exception by the server
> and it shows that in gmr the membervariable onlineResource also 
> has port -1 (default port) and not the correct port 8080
> so issueRequest got an exception
> 
> 
> in short:
> the two methods getCapabilities and createGetMapRequest of class
> WebMapServer strips off the port number wrongly
> which makes me contacting only wms servers by the default port 80
> 
> maybe someone could look into this
> and fix the bug for the next version
> 
> best regards
> 
> c.j
> 
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to