1 Reply Latest reply on Aug 31, 2006 12:13 PM by mcmcmark

    HELP!!  Major XML data saving issues

    mcmcmark
      Hello all. We have been trying to save some XML data back to our db server and are having zero luck. We have tried pretty much every example we have seen and can not get any data to properly go back to the server. We are able to retrieve and view data off the server fine, but sending back has just not worked at all.

      The closest we have gotten is the server seeing our request but not seeing the actual data we are sending. It does not seem to see the XML content at all. When we try using the contenttype parameter we always get a streaming error 2032.

      Here is the latest coding attempt.

      <mx:HTTPService id="srvsave" method="POST" resultFormat="e4x" />
        • 1. Re: HELP!!  Major XML data saving issues
          mcmcmark Level 1
          We arer still battling this issue, day 4 now!! here is the latet example we are trying and the error we are getting. ANY help would be hugely appreciated, we are beat up over here from this.


          <mx:HTTPService id="srvsave" url="" useProxy="false" method="POST"
          contentType="application/xml">
          <mx:request>
          <obj>{dataModel}</obj>
          </mx:request>
          </mx:HTTPService>

          <mx:XML id="dataModel" format="xmls">
          <physician>
          <test>abx</test>
          </physician>
          </mx:XML>

          private function storePhysician_Basics():void {
          srvsave.url=parentApplication.dataServerURL+"store?a=b";
          srvsave.send();
          }

          and we are getting the following error:

          Error: Error #1023: Stack overflow occurred.
          at mx.utils::ObjectUtil$/getClassInfo()
          at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
          at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
          at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
          at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
          at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
          at mx.rpc.xml::SimpleXMLEncoder/encodeValue()