[mapserver-users] WFS Client through Proxy and HTTP Authentication
bteluk at gmail.com
bteluk at gmail.com
Tue Aug 9 18:10:51 PDT 2011
Hi,
I have MapServer 5.6.0 running on RHEL5.5 (FGS9.5 MapServer package)
I'm behind a proxy (NTLM), and I want to access a WFS source outside that
requires HTTP Authentication. I'm using a WFS Client setup in my Map file,
and I'm accessing my MapServer using WFS too - eg. a WFS Client... all up a
sort of WFS Relay.
I can do it fine with WMS, however, I can't get it to work with WFS - is it
actually supposed to work? (not documented in the manual.) I tried using
"ows_" prefixed METADATA which works fine with WMS (to the same service.)
Here's my map file extract:
LAYER
NAME "TempDryBulb"
TYPE RASTER
STATUS ON
DEBUG ON
CONNECTIONTYPE WMS
CONNECTION "http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs?"
METADATA
# Source Data
"wfs_connectiontimeout" "30"
"wfs_maxfeatures" "10"
"wfs_typename" "IDY03103_dryblb"
"wfs_version" "1.0.0"
"wfs_srs" "EPSG:4283"
# Source Auth
"ows_auth_username" "mybomuser"
"ows_auth_password" "{secrethere}"
"ows_auth_type" "basic"
# EDN Proxy Auth
"ows_proxy_auth_type" "ntlm"
"ows_proxy_host" "httpgw.mycompany.com.au"
"ows_proxy_port" "8080"
"ows_proxy_type" "http"
"ows_proxy_username" "myuser"
"ows_proxy_password" "{secrethere}"
# Layer Outgoing Metadata
"wfs_title" "TempDryBulbWFS"
END # METADATA
...
Here's my errors:
[Tue Aug 9 14:01:18 2011].368922 HTTP: Starting to prepare HTTP requests.
[Tue Aug 9 14:01:18 2011].369001 Using
CURL_CA_BUNDLE=/home/maptools/fgs/share/curl/cacert.pem
[Tue Aug 9 14:01:18 2011].369101 HTTP request: id=0,
http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs?
[Tue Aug 9 14:01:18 2011].369260 HTTP: Before download loop
[Tue Aug 9 14:01:18 2011].373358 HTTP: After download loop
[Tue Aug 9 14:01:18 2011].373370 msHTTPExecuteRequests() timing summary per
layer (connect_time + time_to_first_packet + download_time = total_time in
seconds)
[Tue Aug 9 14:01:18 2011].373378 HTTP: request failed with curl error code
6 (Couldn't resolve host 'reg.bom.gov.au') for
http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs?[Tue Aug 9
14:01:18 2011].373387 msHTTPExecuteRequests(): HTTP request error. HTTP:
request failed with curl error code 6 (Couldn't resolve host
'reg.bom.gov.au') for
http://reg.bom.gov.au/cgi-bin/reg/ws/gis/users/bomg0022/wxs?
[Tue Aug 9 14:01:18 2011].373414 Layer 0: 0.000 + 0.000 + 0.000 = 0.000s
[Tue Aug 9 14:01:18 2011].373584 msWFSLayerWhichShapes(): WFS connection
error. Got HTTP status -6 downloading WFS layer TempDryBulbWFS
[Tue Aug 9 14:01:18 2011].374109 msWFSLayerWhichShapes(): WFS connection
error. Got HTTP status -6 downloading WFS layer TempDryBulbWFS
[Tue Aug 9 14:01:18 2011].374124 msWFSGetFeature(): WFS server error.
ms_error->code not found
Note: I used msencrypt for the passwords, and these did work fine for WMS.
Note2: using wget or curl from the command line on the server works fine
(with the proxy credentials specified.)
Thanks in advance!
Regards, Bill Teluk
-----
Regards, Bill Teluk
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Client-through-Proxy-and-HTTP-Authentication-tp6670451p6670451.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list