incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370381 - in /incubator/flex/trunk/mustella/tests/rpc: ./ WebService/ WebService/DotNetDataSets/ WebService/DotNetDataSets/Methods/ WebService/DotNetDataSets/SWFs/ WebService/DotNetDataSets/services/
Date Tue, 07 Aug 2012 17:37:11 GMT
Author: pent
Date: Tue Aug  7 17:37:10 2012
New Revision: 1370381

URL: http://svn.apache.org/viewvc?rev=1370381&view=rev
Log:
Mustella submission

Added:
    incubator/flex/trunk/mustella/tests/rpc/
    incubator/flex/trunk/mustella/tests/rpc/WebService/
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetArraySQLTest.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetComplexSQLTest.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetEmptySQLTest.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleSQLTest.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleXMLTest.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableArraySQLTest.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableSingleSQLTest.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTypeSurveySQLAsDSTest.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/SWFs/
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/SWFs/dataSetMain.mxml
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/CustomerList.asmx
    incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/phonenumbers.xml

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetArraySQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetArraySQLTest.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetArraySQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetArraySQLTest.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="rpc/WebService/DotNetDataSets/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataSetMain.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+            import mx.core.FlexGlobals;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+	    public var expectVal:String='"Number of rows: 25""Number of rows: 25""Number of rows: 25"';
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+                exec(nwCL.getDataSetArray);
+            }
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = {};
+                for (var i:int=0;i<event.result.length;i++)
+                {
+                    ds[i] = event.result[i];
+                    for each (var tbl:Object in ds[i].Tables)
+                    {
+                        displayTable(tbl);
+                        rowsLength = tbl["Rows"].length;
+                        dump("Number of rows: " + tbl["Rows"].length);
+                    }
+                }
+            }
+
+            private function displayTable(tbl:Object):void
+            {
+                application.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.txt.text += ObjectUtil.toString(obj);
+            }
+            public function verifyResult(actual:String, expect:String):String
+            {
+            	if (actual==expect) return "";
+            	else return "actual="+actual+";expect="+expect;
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getDataSetArray" description="test that value = 25, 25 and 25 rows" keywords="[rpc]">
+            <setup>
+                <ResetComponent target="dg" className="mx.controls.DataGrid" waitTarget="dg" waitEvent="updateComplete" />
+                <ResetComponent target="txt" className="mx.controls.TextArea" waitTarget="txt" waitEvent="updateComplete" />
+                <RunCode code="initApplication()" />
+                <Pause timeout="2000"/>
+                <WaitForEvent numExpectedEvents="-1" eventName="updateComplete" target="dg" timeout="2000" />
+            </setup>
+        	<body>
+        		<AssertMethodValue method="value=verifyResult(FlexGlobals.topLevelApplication.txt.text,expectVal)" value=""/>
+		</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetComplexSQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetComplexSQLTest.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetComplexSQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetComplexSQLTest.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="rpc/WebService/DotNetDataSets/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataSetMain.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+            import mx.core.FlexGlobals;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+                exec(nwCL.getCustomersAsComplexDS)
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getCustomersAsComplexDS" description='test that value = "Number of rows: 91""Number of rows: 91"' keywords="[rpc]">
+            <setup>
+			    <ResetComponent target="dg" className="mx.controls.DataGrid" waitTarget="dg" waitEvent="updateComplete" />
+                <ResetComponent target="txt" className="mx.controls.TextArea" waitTarget="txt" waitEvent="updateComplete" />
+                <RunCode code="initApplication()" />
+                <Pause timeout="2000"/>
+                <WaitForEvent numExpectedEvents="-1" eventName="updateComplete" target="dg" timeout="2000" />
+            </setup>
+        	<body>
+			     <AssertPropertyValue propertyName="text" target="txt" value='"Number of rows: 50"' />
+			</body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetEmptySQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetEmptySQLTest.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetEmptySQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetEmptySQLTest.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="rpc/WebService/DotNetDataSets/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataSetMain.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+                exec(nwCL.getEmptyDS)
+                
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+	<testCases>
+        <TestCase testID="getEmptyDS" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+			    <ResetComponent target="dg" className="mx.controls.DataGrid" waitTarget="dg" waitEvent="updateComplete" />
+                <ResetComponent target="txt" className="mx.controls.TextArea" waitTarget="txt" waitEvent="updateComplete" />
+                <RunCode code="initApplication()" />
+                <Pause timeout="2000"/>
+                <WaitForEvent numExpectedEvents="-1" eventName="updateComplete" target="dg" timeout="2000" />
+            </setup>
+			<body>
+			     <AssertPropertyValue propertyName="text" target="txt" value='"Number of rows: 0"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleSQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleSQLTest.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleSQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleSQLTest.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="rpc/WebService/DotNetDataSets/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataSetMain.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+	<testCases>
+        <TestCase testID="getCustomersAsDS" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+			    <ResetComponent target="dg" className="mx.controls.DataGrid" waitTarget="dg" waitEvent="updateComplete" />
+                <ResetComponent target="txt" className="mx.controls.TextArea" waitTarget="txt" waitEvent="updateComplete" />
+                <RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getCustomersAsDS)"   waitEvent="updateComplete" waitTarget="dg" />
+            </setup>
+			<body>
+			     <AssertPropertyValue propertyName="text" target="txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleXMLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleXMLTest.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleXMLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataSetSingleXMLTest.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="rpc/WebService/DotNetDataSets/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataSetMain.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getXMLDataSet" description="test that value = 3 rows" keywords="[rpc]">
+            <setup>
+			    <ResetComponent target="dg" className="mx.controls.DataGrid" waitTarget="dg" waitEvent="updateComplete" />
+                <ResetComponent target="txt" className="mx.controls.TextArea" waitTarget="txt" waitEvent="updateComplete" />
+                <RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getXMLDataSet)"   waitEvent="updateComplete" waitTarget="dg" />
+            </setup>
+			<body>
+			     <AssertPropertyValue propertyName="text" target="txt" value='"Number of rows: 3"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableArraySQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableArraySQLTest.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableArraySQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableArraySQLTest.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="rpc/WebService/DotNetDataSets/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataSetMain.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = {};
+                for (var i:int=0;i<event.result.length;i++)
+                {
+                    ds[i] = event.result[i];
+                    for each (var tbl:Object in ds[i].Tables)
+                    {
+                        displayTable(tbl);
+                        rowsLength = tbl["Rows"].length;
+                        dump("Number of rows: " + tbl["Rows"].length);
+                    }
+                }
+            }
+
+            private function displayTable(tbl:Object):void
+            {
+                application.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getDataTableArray" description="test that value = 30 rows 3 x" keywords="[rpc]">
+            <setup>
+			    <ResetComponent target="dg" className="mx.controls.DataGrid" waitTarget="dg" waitEvent="updateComplete" />
+                <ResetComponent target="txt" className="mx.controls.TextArea" waitTarget="txt" waitEvent="updateComplete" />
+                <RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getDataTableArray)"   waitEvent="updateComplete" waitTarget="dg"  />
+            </setup>
+            <body>
+        	     <AssertPropertyValue propertyName="text" target="txt" value='"Number of rows: 30""Number of rows: 30""Number of rows: 30"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableSingleSQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableSingleSQLTest.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableSingleSQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTableSingleSQLTest.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="rpc/WebService/DotNetDataSets/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataSetMain.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                var done:Boolean = false;
+                for each (tbl in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+
+            private function displayTable(tbl:Object):void
+            {
+                application.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getCustomersAsDT" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+			    <ResetComponent target="dg" className="mx.controls.DataGrid" waitTarget="dg" waitEvent="updateComplete" />
+                <ResetComponent target="txt" className="mx.controls.TextArea" waitTarget="txt" waitEvent="updateComplete" />
+                <RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getCustomersAsDT)"   waitEvent="updateComplete" waitTarget="dg" />
+            </setup>
+			<body>
+			    <AssertPropertyValue propertyName="text" target="txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTypeSurveySQLAsDSTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTypeSurveySQLAsDSTest.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTypeSurveySQLAsDSTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/Methods/DataTypeSurveySQLAsDSTest.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="rpc/WebService/DotNetDataSets/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="dataSetMain.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+	<testCases>
+        <TestCase testID="getDatTypeSurveyAsDS" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+			    <ResetComponent target="dg" className="mx.controls.DataGrid" waitTarget="dg" waitEvent="updateComplete" />
+                <ResetComponent target="txt" className="mx.controls.TextArea" waitTarget="txt" waitEvent="updateComplete" />
+                <RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getDatTypeSurveyAsDS)" />
+                <Pause timeout="2000"/>
+                <WaitForEvent numExpectedEvents="-1" eventName="updateComplete" target="dg" timeout="2000" />
+            </setup>
+			<body>
+			     <AssertPropertyValue propertyName="text" target="txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/SWFs/dataSetMain.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/SWFs/dataSetMain.mxml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/SWFs/dataSetMain.mxml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/SWFs/dataSetMain.mxml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF"  xmlns="*" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
+    <mx:DataGrid id="dg"/>
+    <mx:TextArea id="txt" width="600" height="600" />
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/CustomerList.asmx
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/CustomerList.asmx?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/CustomerList.asmx (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/CustomerList.asmx Tue Aug  7 17:37:10 2012
@@ -0,0 +1,222 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+<%@ WebService Language="C#" CodeBehind="CustomerList.asmx.cs" Class="CustomerList" %>
+using System.Xml;
+using System.Web;
+using System.Web.Services;
+using System.Web.Services.Protocols;
+using System.Web.Services.Description;
+using System.Data;
+using System.Data.SqlClient;
+using System;
+
+
+public class CustomerList : WebService
+{
+    //Privies
+    private const String _colCustomerID = "CustomerID";
+    private const String _colCompanyName = "CompanyName";
+    private const String _colContactName = "ContactName";
+    private const String _colContactTitle = "ContactTitle";
+    private const String _colAddress = "Address";
+    private const String _colCity = "City";
+    private const String _colRegion = "Region";
+    private const String _colPostalCode = "PostalCode";
+    private const String _colCountry = "Country";
+    private const String _colPhone = "Phone";
+    private const String _colFax = "Fax";
+
+    //Datatables
+    private DataTable _dtCustomers = new DataTable();
+    private DataSet _dsCustomers = new DataSet("Customers");
+
+
+    //Construction and init
+    public CustomerList()
+    {
+    }
+
+    private void ClearAndFillTable(Int32 rows)
+    {
+        String[] columns = new String[] { _colCustomerID, _colCompanyName, _colContactName, _colContactTitle, _colAddress, _colCity, _colRegion, _colPostalCode, _colCountry, _colPhone, _colFax };
+
+        ClearAndFillUniqueTable(columns, rows);
+    }
+
+    private void ClearAndFillUniqueTable(String[] columns, Int32 rows)
+    {
+        _dtCustomers = new DataTable();
+        _dsCustomers = new DataSet();
+
+        //Add concerned cols
+        for (Int32 i = 0; i < columns.Length; i++)
+        {
+            _dtCustomers.Columns.Add(new DataColumn(columns[i], typeof(String)));
+        }
+
+        //Fill with data
+        for (Int32 i = 0; i < rows; i++)
+        {
+            DataRow dr = _dtCustomers.NewRow();
+
+            for (Int32 j = 0; j < columns.Length; j++)
+            {
+                dr[columns[j]] = columns[j] + "_" + j.ToString();
+            }
+
+            _dtCustomers.Rows.Add(dr);
+        }
+
+        //Associate table and set
+        _dsCustomers.Tables.Add(_dtCustomers);
+    }
+
+
+
+    [WebMethod]
+    public DataTable getCustomersAsDT()
+    {
+        this.ClearAndFillTable(10);
+
+        return (this._dtCustomers);
+    }
+
+    [WebMethod]
+    public DataTable getDataTypeSurveyAsDT()
+    {
+        this.ClearAndFillTable(10);
+
+        return (this._dtCustomers);
+    }
+
+    [WebMethod]
+    public DataSet getDatTypeSurveyAsDS()
+    {
+        this.ClearAndFillTable(10);
+
+        return (this._dsCustomers);
+    }
+
+    [WebMethod]
+    public DataSet getEmptyDataTypeSurveyDS()
+    {
+        this.ClearAndFillTable(0);
+
+        return (this._dsCustomers);
+    }
+
+    [WebMethod]
+    public DataSet getEmptyDS()
+    {
+        this.ClearAndFillTable(0);
+
+        return (this._dsCustomers);
+    }
+
+    [WebMethod]
+    [SoapDocumentMethod(
+    Use = SoapBindingUse.Literal,
+    ParameterStyle = SoapParameterStyle.Wrapped)]
+    public DataSet getCustomersAsDS()
+    {
+        this.ClearAndFillTable(10);
+
+        return (this._dsCustomers);
+
+    }
+
+    [WebMethod]
+    public DataSet getCustomersAsComplexDS()
+    {
+        this.ClearAndFillUniqueTable(new String[] { _colCustomerID, _colCompanyName }, 50);
+
+        return (this._dsCustomers);
+    }
+
+
+    [WebMethod]
+    public DataSet getXMLDataSet()
+    {
+        DataSet xds = new DataSet();
+        XmlDocument xdoc = new XmlDocument();
+
+        xdoc.AppendChild(xdoc.CreateElement("Root"));
+
+        for (Int32 i = 0; i < 10; i++)
+        {
+            xdoc.DocumentElement.AppendChild(xdoc.CreateElement("PhoneNumber")).InnerXml = "415-832-222" + i.ToString();
+        }
+
+        XmlTextReader reader = new XmlTextReader(xdoc.OuterXml, XmlNodeType.Element, null);
+
+        xds.ReadXml(reader, XmlReadMode.InferSchema);
+
+        return (xds);
+    }
+
+    [WebMethod]
+    public DataTable[] getDataTableArray()
+    {
+        DataTable[] dtArr = new DataTable[3];
+
+        this.ClearAndFillUniqueTable(new String[] { _colCustomerID, _colCompanyName }, 30);
+
+        dtArr[0] = this._dtCustomers;
+        dtArr[1] = this._dtCustomers;
+        dtArr[2] = this._dtCustomers;
+
+        return (dtArr);
+    }
+
+    [WebMethod]
+    public DataSet[] getDataSetArray()
+    {
+        DataSet[] dsArr = new DataSet[3];
+
+        this.ClearAndFillUniqueTable(new String[] { _colCustomerID, _colCompanyName }, 25);
+
+        dsArr[0] = this._dsCustomers;
+        dsArr[1] = this._dsCustomers;
+        dsArr[2] = this._dsCustomers;
+
+        return (dsArr);
+    }
+
+    [WebMethod]
+    [SoapDocumentMethod(
+    Use = SoapBindingUse.Literal,
+    ParameterStyle = SoapParameterStyle.Wrapped)]
+    public DataTable getCustomersRaiseError(string customerId)
+    {
+        string sqlAllCustomers = "SELECT * FROM Customers WHERE CustomerID = '" + customerId + "'"; //WHERE CustomerID = 'ALFKI'
+        string cnStr =
+       @"Data Source=(local);Initial Catalog=northwind;Integrated Security=False;User='northwind';Password='';";
+        using (SqlConnection cn = new SqlConnection(cnStr))
+        {
+            cn.Open();
+            SqlCommand cmd = new SqlCommand(sqlAllCustomers, cn);
+            SqlDataAdapter adpt = new SqlDataAdapter(cmd);
+            DataTable dtCust1 = new DataTable("Customers");
+            adpt.Fill(dtCust1);
+            return dtCust1;
+        }
+    }
+}
+

Added: incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/phonenumbers.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/phonenumbers.xml?rev=1370381&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/phonenumbers.xml (added)
+++ incubator/flex/trunk/mustella/tests/rpc/WebService/DotNetDataSets/services/phonenumbers.xml Tue Aug  7 17:37:10 2012
@@ -0,0 +1,39 @@
+<?xml version="1.0" standalone="yes"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<NewDataSet>
+  <PhoneNumbers>
+    <name>Jeff Somebody</name>
+    <home>555-111-2222</home>
+    <mobile>555-111-3333</mobile>
+    <netWorth>Negligible</netWorth>
+  </PhoneNumbers>
+  <PhoneNumbers>
+    <name>Bill Richguy</name>
+    <home>555-222-2222</home>
+    <mobile>555-222-3333</mobile>
+    <netWorth>33.6 Billion</netWorth>
+  </PhoneNumbers>
+  <PhoneNumbers>
+    <name>Steve Lotsamoney</name>
+    <home>555-444-2222</home>
+    <mobile>555-333-3333</mobile>
+    <netWorth>15.1 Billion</netWorth>
+  </PhoneNumbers>
+</NewDataSet>
\ No newline at end of file



Mime
View raw message