Proxies and WebxServices.

View: New views
2 Messages — Rating Filter:   Alert me  

Proxies and WebxServices.

by mweaver :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am try to use:
wms = WebMapService( ...
or wfs = WebFeatureService( ...

but I am unable to get past our proxy, as it needs authentication (error 407).
is there a way to get a username and password supplied to both the proxy and the wxs service that I wish to access? (https)

P.S. I am using windows XP & Python 2.6

Thanks Mike.

Re: Proxies and WebxServices.

by dominic.lowe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mike,

The WebMapService can take a username and password as a keyword argument:

wms=WebMapService('http://mywms.com, version='1.1.1',
username='me', password='mypassword')

I am not sure if this will work in your particular case or not...

This is pretty hard to test without being behind a similar proxy so I
would be interested to know if does.

btw, we haven't extended this to the other services (eg WFS) yet, but it
could be done fairly easily.

Thanks,
Dom


On 05/11/09 08:17, mweaver wrote:

>
> I am try to use:
> wms = WebMapService( ...
> or wfs = WebFeatureService( ...
>
> but I am unable to get past our proxy, as it needs authentication (error
> 407).
> is there a way to get a username and password supplied to both the proxy and
> the wxs service that I wish to access? (https)
>
> P.S. I am using windows XP&  Python 2.6
>
> Thanks Mike.

_______________________________________________
Community mailing list
Community@...
http://lists.gispython.org/mailman/listinfo/community