views:

134

answers:

1

My group is working with the GeoServer's GIS server, which provides the WFS service.

We are not sure how to make an HTTP POST request in Elips and send the following xml as part of the request:

<wfs:Transaction service="WFS" version="1.0.0"
  xmlns:wfs="http://www.opengis.net/wfs"
  xmlns:topp="http://www.openplans.org/topp"
  xmlns:gml="http://www.opengis.net/gml"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd http://www.openplans.org/topp http://localhost:8080/geoserver/wfs/DescribeFeatureType?typename=topp:tasmania_roads"&gt;
  <wfs:Insert>
    <topp:tasmania_roads>
      <topp:the_geom>
        <gml:MultiLineString srsName="http://www.opengis.net/gml/srs/epsg.xml#27354"&gt;
          <gml:lineStringMember>
            <gml:LineString>
              <gml:coordinates decimal="." cs="," ts=" ">
494475.71056415,5433016.8189323 494982.70115662,5435041.95096618
              </gml:coordinates>
            </gml:LineString>
          </gml:lineStringMember>
        </gml:MultiLineString>
      </topp:the_geom>
      <topp:TYPE>mytest</topp:TYPE>
    </topp:tasmania_roads>
  </wfs:Insert>
</wfs:Transaction>

How can this be done?

A: 

If this is the elips you are talking about

http://www.openplug.com/products/elips-studio

Then this seems to be more of an elips problem than a flex problem.

It seems that since Flash Player 5 there has been a relatively easy way to send XML via Post

http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary855.html

or are you stuck on how to make the XML. Does Elips have a special way of doing thing?

TheSteve0
Thx for your answer. I have found out how this is done in the Flex framework and it works fine with a WFS server. The problem is in Elips Studio. It's the same code, but it doesn't work on the WFS server. But Elips is still in Beta.
LencoTB