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:
<mx:WebService id="TVA"
wsdl="{http:
useProxy="false" result="getResponse()">
<mx:operation name="getData" resultFormat="xml">
<mx:request format="xml">
<tns:get_Data xmlns:xml="http:
xmlns:soapenc="http:
xmlns:xsi="http:
xmlns:xsd="http:
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/