Solution! (If not a FOSS4G devil's threesome. Integrators of the world
untie!)

 

This article and "product"
http://www.codeproject.com/KB/web-security/HTTPReverseProxy.aspx provided a
pretty workable solution for reading from WFS.GeoServer:8080 within a IIS:80
app. It lets me create an IIS webapp http://<iis-root>/ows which points at
my http://<geoserver-root>:8080/ows endpoint. I can successfully communicate
to http://smartmonkeys.ca/ows/ for WFS/WMS etc. 

 

(See http://dl.dropbox.com/u/1934092/IIS-Proxypng.png for a configuration
screenshot).

 

It works great for reading features, but I'm having some issues committing
to my feature stores, which I think might be due to the way that the proxy
has me configuring my layer:

 

        var vlayer = new OpenLayers.Layer.Vector(

                                "vector test",

                                {

                                strategies: [new
OpenLayers.Strategy.Fixed(), saveStrategy],

                                protocol: new OpenLayers.Protocol.WFS({

                                                url:
"/ows?service=wfs&version=1.1.0&request=getFeature&typeName=Water_Points",

                                                service: "wfs",

                                                version: "1.1.0",

                                                request: "getFeature",

                                                featureType: "Water_Points",

                                                featureNS:
"http://smartmonkeys.ca:8080/geoserver/";,

                                                srsName: "EPSG:4326"

                                })

                });

 

I basically have to put all of the request parameters into the protocol URL
or else I don't get anything back. If any of the parameters are left out,
Fiddler whines about the missing service, request, and typeName parameters
(respectively) until I include them in the URL. Furthermore, I have to leave
all of these parameters (plus the others) in as individual options as well.

 

When I go to commit DELETES, EDITS and UPDATES through my saveStrategy
nothing happens to individual features - Fiddler shows me getting the entire
set back, untouched, as a response.

 

Since this is starting to look like an OL/GeoExt issue, I've moved the
thread over to the OpenLayers Users' list. 

 

Peace. SFS

 

Samuel Smith 

Groundlevel Geographics [DBA]

 

From: Samuel Smith [mailto:[email protected]] 
Sent: Sunday, September 12, 2010 8:00 AM
To: 'Samuel Smith'; '[email protected]'
Subject: RE: 80 and GeoServer:8080 Proxy Config

 

Answered my own question with a bit of research / understanding. The
GeoServer proxy is not the droid I'm looking for.

 

Instead (as a lot of users with the same issue point out) I should be
looking at:

 

a)      Setting up a reverse proxy on my IIS to push certain URLs over to my
GeoServer:8080 instance, or

b)      Getting GeoServer set up in IIS

 

A) is possible most easily with Microsofts ISA server, otherwise with a
variety of URL rewriters which I'm in the process of evaluation. 

 

Longer term B) seems 86% more elegant. Does anyone have any experience
running GeoServer in IIS?

 

Cheers, Sam

 

Samuel Smith 

Groundlevel Geographics [DBA]

 

From: Samuel Smith [mailto:[email protected]] 
Sent: Sunday, September 12, 2010 6:38 AM
To: [email protected]
Subject: IIS:80 and GeoServer:8080 Proxy Config

 

List,

 

I'd be forever grateful for a hand configuring my GeoServer proxy.

 

I'm trying to effect this code .

        

        var vlayer = new OpenLayers.Layer.Vector(

                                "vector test", {

                                strategies: [new
OpenLayers.Strategy.Fixed()],

                                protocol: new OpenLayers.Protocol.WFS({

                                                url:
"http://smartmonkeys.ca:8080/geoserver/ows?";,

                                                version: "1.0.0",

                                                featureType: "Water_Points",

                                                featureNS:
"http://smartmonkeys.ca:8080/geoserver/ ",

                                })

                });

 

. on an html:80 page to my geoserver:8080.

 

Per the node here
(http://geoserver.org/display/GEOS/GeoServer+Proxy+Extension), I've
installed the GeoServer proxy extension and added smartmonkey.ca to my list
of hostnames.

 

That's where the smartmonkey runs out . Any pointers much appreciated, I'll
gladly contribute our success back into the project Docs.

 

SFS

 

Samuel Smith 

Groundlevel Geographics [DBA]

 

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to