0 Replies Latest reply on Sep 17, 2010 8:44 AM by trubel

    SharePoint List.asmx WebService

    trubel

      http://forums.adobe.com/message/2233480#488790

       

      This email is in reference to the above post.  I would like to know if this has been fixed, as I still can not execute GetListItems from lists.asmx

       

      I am running Flash Bulder 4. Version: 4.0.0.272416

       

      I am going to attach my MXML file that I extended from your example in the above listed article.  Can you help me figure out why I am getting an error Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. <errorstring xmlns='http://schemas.microsoft.com/sharepoint/soap" xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/....etc.. etc.......XMLSchema"> 0x82000000</errorcode>

       

       

      I was not able to attach the Adobe_example.mxml file.

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            xmlns:lists="services.lists.*">


      <!--list GUID  {6DD09CF0-C0DB-48F1-A6FB-D40CEE9247A4}
      -->
      <fx:Script>
        <![CDATA[
         import mx.containers.Tile;
         import mx.controls.Alert;
         import mx.events.ListEvent;
         import mx.rpc.events.ResultEvent;
        
         protected function dataGrid_creationCompleteHandler(event:Event):void
         {
          GetListCollectionResult.token = lists.GetListCollection();
         }
        
         protected function dataGrid2_creationCompleteHandler(event:Event):void
         {
          GetListResult.token = lists2.GetList(dataGrid.selectedItem.Name);
         }
       

          protected function dataGrid3_creationCompleteHandler(event:Event):void
         {
          //GetListItemsResult.token = lists2.GetListItems(listName, viewName, query, viewFields, rowLimit, queryOptions, webID);
          GetListItemsResult.token = lists3.GetListItems(String(dataGrid2.selectedItem.Name),'', <Query><OrderBy><FieldRef Name="Title" Ascending="True" /><FieldRef Name="ID" Ascending="True" /><FieldRef Name="AOR_ID" Ascending="False" /></OrderBy></Query>,'','','','');
         }
        
        
        ]]>
      </fx:Script>

       

      <mx:Button click="dataGrid_creationCompleteHandler(event)" label="Call" x="10" y="10"/>
      <mx:DataGrid id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{GetListCollectionResult.lastResult.Lists.List}"  change="dataGrid2_creationCompleteHandler(event)" x="10" y="63">
        <mx:columns>
         <mx:DataGridColumn headerText="ID" dataField="ID"/>
         <mx:DataGridColumn headerText="Name" dataField="Name"/>
         <mx:DataGridColumn headerText="Title" dataField="Title"/>
         <mx:DataGridColumn headerText="AllowDeletion" dataField="AllowDeletion"/>
        </mx:columns>
      </mx:DataGrid>
      <mx:DataGrid x="11" y="242" id="dataGrid2" dataProvider="{GetListResult.lastResult.List}" change="dataGrid3_creationCompleteHandler(event)">
      </mx:DataGrid>
      <mx:DataGrid x="15" y="451" id="dataGrid3" dataProvider="{GetListItemsResult.lastResult}">
      </mx:DataGrid>
      <s:Label x="15" y="431" text="{dataGrid2.selectedItem.ID}" />
      <!-- <mx:DataGrid x="11" y="429" id="dataGrid3" dataProvider="{GetListResult.lastResult}">
      </mx:DataGrid>-->

       

      <fx:Declarations>
        <mx:CallResponder id="GetListCollectionResult"/>
        <mx:CallResponder id="GetListResult"/>
        <lists:Lists id="lists3" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        <lists:Lists id="lists2" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        <lists:Lists id="lists" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        <s:CallResponder id="GetListItemsResult"/>
      </fx:Declarations>

       

      </s:Application>