Skip navigation
learningflex
Currently Being Moderated

Calling a WCF service from Flex

Dec 8, 2009 10:25 AM

I was given a WCF AJAX Enabled Service providing data in JSON and XML

 

http://dev1/ytn/StatService.svc  which when open has a wsdl file

 

svcutil.exe http://dev1.choice.com/YTN/StatService.svc?wsdl

 

<?xml version="1.0" encoding="utf-8" ?>

- <wsdl:definitions name="StatService" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-uti lity-1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:i0="YTN" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">

<wsdl:import namespace="YTN" location="http://dev1.choice.com/YTN/StatService.svc?wsdl=wsdl0" />

<wsdl:types />

- <wsdl:binding name="WebHttpBinding_StatService" type="i0:StatService">

- <wsdl:operation name="GetDataJSON">

<wsdl:input />

<wsdl:output />

</wsdl:operation>

- <wsdl:operation name="GetDataListJSON">

<wsdl:input />

<wsdl:output />

</wsdl:operation>

- <wsdl:operation name="GetDataXML">

<wsdl:input />

<wsdl:output />

</wsdl:operation>

- <wsdl:operation name="GetDataListXML">

<wsdl:input />

<wsdl:output />

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="StatService">

<wsdl:port name="WebHttpBinding_StatService" binding="tns:WebHttpBinding_StatService" />

</wsdl:service>

</wsdl:definitions>

 

 

How do i call this wsdl from my flex application. The WCF service is in .NET. webHttpBinding and Restful Services and pure http. Please help

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points