0 Replies Latest reply on May 17, 2010 8:59 PM by ketan79

    Flex integration with SharePoint - UpdateListItems


      Hi all,


      I am working on the project where we are integrating Flex with SharePoint through sharepoint Lists WebServices. I am able successfully call the GetListItems operation from SharePonit. But I am facing problems while executing the UpdateListItems operation. Here I am trying to inerst a new record through UpdateItemLists operation.But It's giving below error.

      Error - fault [FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:


      Please find my code below for adding a new record to the List. Can anybody please help me to debug this. Thanks!



        private function addRecord():void
         var viewName:String = "MyViewName";
         var batch:XML = <Batch OnError='Continue' ListVersion='0' ViewName='All Items'><Method ID='1' Cmd='New'><Field Name='field'>1-1</Field><Field Name='field2'>2</Field><Field Name='field3'>3</Field></Method></Batch>;
         ws.UpdateListItems("MyListName", batch);




      <mx:WebService id="ws" wsdl="MyWSDLURL" showBusyCursor="true">
        <mx:operation name="GetListItems" resultFormat="xml"
           <mx:operation name="UpdateListItems" resultFormat="xml"



      <mx:Button label="Add" click="addRecord()"/>