Dashboard > Metasoft Development Network > Welcome to Metasoft Web Services > Adobe Flex
  Metasoft Development Network Log In | Sign Up   View a printable version of the current page.  
  Adobe Flex
Added by Brant Levinson, last edited by Brant Levinson on Aug 14, 2008
Labels: 
(None)

The request to the services is done via the Flex tag of "mx:WebService". We can point directly to the webservice wsdl file and specify what operation that we would like to respond in.

<mx:WebService id="TVA"
    	wsdl="http://www.mediaaddiction.com:8081/metasoft/services/MetasoftTVAService?wsdl"
    	useProxy="false" result="getResponse()">

		<mx:operation name="getData" resultFormat="xml">
			<mx:request format="xml">

We then specify the schema files that we are referencing.

<tns:get_Data xmlns:xml="http://www.w3.org/XML/1998/namespace"
		  				xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
		  				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		  				xmlns:xsd="http://www.w3.org/2001/XMLSchema"
		  				xmlns:mpeg7="urn:tva:mpeg7:2005"
		  				xmlns:tva="urn:tva:metadata:2005"
		  				xmlns:tns="urn:tva:transport:2005"
		  				xmlns:tva2="urn:tva:metadata:extended:2005"
		  				xmlns:tvap="urn:tva:profile:2005">

Then specify the query constraints that we want.

<tns:QueryConstraints>
	            		<tns:PredicateBag type="AND">
			               <tns:BinaryPredicate fieldID="Genre" fieldValue="Fiction" test="contains"/>
			            </tns:PredicateBag>
			         </tns:QueryConstraints>
			                 <tns:RequestedTables>
			            <tns:Table type="ProgramInformationTable"/>
			         </tns:RequestedTables>
			      </tns:get_Data>

This should all come together like this:

Sample.mxml
<mx:WebService id="TVA"
    	wsdl="{http://www.mediaaddiction.com:8081/metasoftservices/MetasoftTVAService?wsdl"
    	useProxy="false" result="getResponse()">

		<mx:operation name="getData" resultFormat="xml">
			<mx:request format="xml">
	  			<tns:get_Data xmlns:xml="http://www.w3.org/XML/1998/namespace"
		  				xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
		  				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		  				xmlns:xsd="http://www.w3.org/2001/XMLSchema"
		  				xmlns:mpeg7="urn:tva:mpeg7:2005"
		  				xmlns:tva="urn:tva:metadata:2005"
		  				xmlns:tns="urn:tva:transport:2005"
		  				xmlns:tva2="urn:tva:metadata:extended:2005"
		  				xmlns:tvap="urn:tva:profile:2005">
	         		<tns:QueryConstraints>
	            		<tns:PredicateBag type="AND">
			               <tns:BinaryPredicate fieldID="Genre" fieldValue="Fiction" test="contains"/>
			            </tns:PredicateBag>
			         </tns:QueryConstraints>
			                 <tns:RequestedTables>
			            <tns:Table type="ProgramInformationTable"/>
			         </tns:RequestedTables>
			      </tns:get_Data>
			</mx:request>
		</mx:operation>
	</mx:WebService>

Please examine our console application. Go ahead and register yourself in the application.

sPcbgl <a href="http://zqrlcxbvjfzt.com/">zqrlcxbvjfzt</a>, [url=http://kvbzkliutgfh.com/]kvbzkliutgfh[/url], [link=http://ybcovnyahqox.com/]ybcovnyahqox[/link], http://ezhhdgbeqsrj.com/

Posted by Anonymous at Nov 04, 2008 13:13 | Permalink

UcxRRB <a href="http://yfityfxntogi.com/">yfityfxntogi</a>, [url=http://yuhmleyjjaip.com/]yuhmleyjjaip[/url], [link=http://umvmvuscyerp.com/]umvmvuscyerp[/link], http://yagyiddyzree.com/

Posted by Anonymous at Nov 15, 2008 12:24 | Permalink

ACjxB5 <a href="http://lyjrxwvcgowr.com/">lyjrxwvcgowr</a>, [url=http://syehzhzvvywm.com/]syehzhzvvywm[/url], [link=http://dwfhtgigykgy.com/]dwfhtgigykgy[/link], http://oiectrbrsmcp.com/

Posted by Anonymous at Nov 18, 2008 05:28 | Permalink

UqWYgT <a href="http://zvczikeqleqg.com/">zvczikeqleqg</a>, [url=http://agznmcdtsckz.com/]agznmcdtsckz[/url], [link=http://iqxszqkbdwhd.com/]iqxszqkbdwhd[/link], http://xuuxwsvvlqas.com/

Posted by Anonymous at Nov 18, 2008 14:13 | Permalink
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.3 Build:#641 Jan 13, 2007) - Bug/feature request - Contact Administrators