I want to communicate with Adobe Air with a开发者_如何学C WCF Client. I have created the WCF service.
I have Flex Builder 3.0, but how do I communicate the WCF service using Adobe Air? Please guide me.
To generate the proxy, click File > Import > Flex Builder > WSDL
and select the WSDL url for your WCF service ("http://tempuri.org/v1/MyService.svc?wsdl").
A few things to be aware of:
- Give the proxy a unique package, like
org.tempuri.myService_v1
. The importer will generate classes likeBoolean
that will conflict if you import several services into the same package. - The generated code has real problems with enumerations and Guids, so avoid both if you can. This may not be an issue with WCF 4 since it did significant updates in WSDL compatibility, but I have not tested it.
精彩评论