4 Replies Latest reply on Mar 12, 2010 12:05 PM by shanflex

    HttpService POST json -  Error #2032

    shanflex

      Hi,

       

      I'm trying to POST json data to my Rest Service (please find code snippet below). On the faultHandler I get the following error

       

      message    "faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://135.123.128.9/mgmt/Users"]. URL: https://hostname/mgmt/Users'" 

       

       

      <code>

       

           private function clickHandler(event:ItemClickEvent):void {

                          var user:User=new User();
                          user.loginName= login.text;
                          user.surname= lastName.text;
                          user.givenName= firstName.text;
                          user.userPassword=password.text;
                          createUserHttpService.contentType="application/json";
                          createUserHttpService.send(JSON.encode(userCopy));

           }

       

            .....

       

            .....

            <mx:HTTPService id="createUserHttpService" 
                            useProxy="false" method="POST" result="userByUserIdServiceResultHandler(event);"
                             url="https://135.123.128.9/mgmt/Users"   fault="createUserServiceFaultHandler(event);" showBusyCursor="true" />                 

       

      </code>

       

       

      Thanks in advance

       

      ~Shankar