1 Reply Latest reply on Feb 6, 2007 9:59 AM by scottpez

    post xml through a proxy

    scottpez
      Hi,

      I am wondering if it is possible to post xml to a url through a proxy using Flex Data Services. When my Flex project was just a regular Flex project, I had this working by using something like this:

      <mx:HTTPService id="annoService" url=" http://.../geoserver/wfs" useProxy="false" method="POST" contentType="application/xml" result="testResults(event);" resultFormat="e4x" showBusyCursor="true" />

      However, now I would like to use FDS and go through a proxy. So my code now looks something like this:

      <mx:HTTPService id="annoService" destination="wfsurl" useProxy="true" method="POST" contentType="application/xml" result="testResults(event);" resultFormat="e4x" showBusyCursor="true" />

      In proxy-config.xml I have something like this:


      <destination id="wfsurl">
      <properties>
      <url> http://.../geoserver/wfs</url>
      </properties>
      </destination>

      This does not currently seem to be working. I guess my first question is - Should this work? If that is the case perhaps I am doing something else wrong. Is there anything else I need to put in my proxy-config.xml file?

      Thanks in advance for any help on this.
      Scott