How to use WCF services in Flex 3 ria

Source: Internet
Author: User
Tags soap web services

These two days should need to study the next WCF service and Flex 3 RIA related development technology, and handwriting on some of the code, found that before the consideration of a number of detailed issues to be noted, resolved, intends to use this continuously updated article to record, will be through the Flex 3 RIA application to use the WCF service process The problems and solutions found are documented in the form of notes. Is the so-called chastened wiser, also please share, together to add.

1. SOAP version used by WCF service

2. "Provider com.bea.XML.stream.MXParserFactory not Found" exception

3. Enable session support for "BasicHttpBinding" binding

SOAP version used by WCF service

The currently released Flex 3.2.0 build 3958 version only supports communication with WEB services that use the SOAP 1.1 protocol, so if you want to use WCF services in Flex 3 RIA applications, you must configure the WCF service to use the SOAP 1.1 protocol pass for the underlying Letter. The specific method can be accomplished by changing the service profile web.config.

XML code

<services>
<service behaviorConfiguration="CEELS.Service.BaseBehavior" name="CEELS.Service.CEELSSvc">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ICEELSSvc" contract="CEELS.Service.ICEELSSvc">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>

<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ICEELSSvc" allowCookies="true" />
</basicHttpBinding>
</bindings>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.