<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Chris,<br>
<br>
this is the sample MAP file I have just used to test this approach. I
can do a GetFeature request to my localhost server and get the GML
returned by the DM Solutions WFS service:<br>
<br>
<a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&request=GetFeature&service=WFS&version=1.0.0&typename=park">http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&amp;request=GetFeature&amp;service=WFS&amp;version=1.0.0&amp;typename=park</a><br>
<br>
This is the MAP file used:<br>
<br>
NAME DEMO<br>
STATUS ON<br>
SIZE 400 300<br>
EXTENT -2594561 -712631 3467361 3840000<br>
UNITS METERS<br>
SHAPEPATH "../data"<br>
IMAGECOLOR 255 255 255<br>
TRANSPARENT FALSE<br>
<br>
WEB<br>
&nbsp; IMAGEPATH "/ms4w/tmp/ms_tmp/" <br>
&nbsp; IMAGEURL "/ms_tmp/"<br>
&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; wfs_onlineresource
<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&">"http://localhost/cgi-bin/backup/mapserv_46.exe?map=c:\ms4w\apps\chameleon\samples\map\samplewfs.map&amp;"</a><br>
&nbsp;&nbsp;&nbsp; wfs_title "test wfs"<br>
&nbsp; END<br>
END<br>
<br>
PROJECTION<br>
&nbsp;&nbsp;&nbsp; "init=epsg:42304"<br>
END<br>
<br>
LAYER<br>
&nbsp; CONNECTION <a class="moz-txt-link-rfc2396E" href="http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?">"http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?"</a><br>
&nbsp; CONNECTIONTYPE WFS<br>
&nbsp; NAME park<br>
&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; wfs_typename "park"<br>
&nbsp;&nbsp;&nbsp; wfs_title "park layer"<br>
&nbsp;&nbsp;&nbsp; wfs_version "1.0.0"<br>
&nbsp; END<br>
&nbsp; TYPE POLYGON<br>
&nbsp; DUMP TRUE<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 0 0<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
&nbsp; STATUS ON<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; "init=epsg:42304"<br>
&nbsp; END<br>
END<br>
<br>
END<br>
<br>
Hope this helps.<br>
<br>
Best regards,<br>
Bart<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:chris@narx.net">chris@narx.net</a> wrote:
<blockquote cite="mid1130830599.43671b079ab55@webmail.narx.net"
 type="cite">
  <pre wrap="">Hi Bart, thanks for the reply.

Care to submit a small mapfile sample of what you think may work ? :)

I have played around with the metadata such as the online resource url but no
such luck

Thanks :)

Quoting Bart van den Eijnden <a class="moz-txt-link-rfc2396E" href="mailto:bartvde@XS4ALL.NL">&lt;bartvde@XS4ALL.NL&gt;</a>:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

this could be done I think. On your middle tier, you would have a
Mapserver WFS client layer, which you also expose as a WFS server layer
on the middle tier. The middle tier will then request the remote
Mapserver WFS.

So in summary, on your middle tier you would have a WFS Client layer in
your MAP file, and you would also expose your middle tier as a WFS
server using the appropriate wfs server metadata.

Does this make sense :-) ?

Best regards,
Bart

Chris Tweedie wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">Morning list,

A current work in progress requires extensive use of mapserver's WMS service
chaining. My question is that as far as i can tell, there is no way to do a
similar method using remote WFS services.

To clarify, i am not after MS as a WFS Client (eg. render the WFS response
      </pre>
    </blockquote>
    <pre wrap="">as an
    </pre>
    <blockquote type="cite">
      <pre wrap="">image) but simply forward the response on to the client. For example,

1. Client (WFS Request) --&gt; Core Mapserver (Forward request) --&gt; Remote
Mapserver

2. Remote Mapserver (GML Response) --&gt; Core Mapserver (Forward request) --&gt;
Client

I hope mapserver could be enabled as a sort of pseudo OWS "proxy" but I have
      </pre>
    </blockquote>
    <pre wrap="">had
    </pre>
    <blockquote type="cite">
      <pre wrap="">a look around without much success,

Ideally, if there was a new meta tag such as

"wfs_response_method"    "GML"

or something similar attached to the layer, then this would suit my purpose
exactly. Since the response is currently stored as a GML file in the ms_tmp
directory anyway, it seems a simple manner of just forwarding on the request
instead of rendering it using GDAL/OGR.

Any feedback would be appreciated,

Chris Tweedie

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


  </pre>
</blockquote>
<br>
</body>
</html>