• Home
  • About Me
  • AIR Central
  • AS3 Libs
  • Books
  • Flex Central
  • Resources
  • The Guru's
  •  

    WebService setup for FDS

    Updated for Flex FDS

    After struggling for a while to get my webservice setup under FES FDS, I finally got all working properly last week so I thought I would post some insight.

    Here is the config that you will need to use for FES FDS:

    Add an entry like this to your flex-proxy-service.xml proxy-config.xml file:
    <destination id=”myWS” adapter=”soap-proxy”>
    <properties>
    <wsdl>http://www.whatever.com/Mywebservice.wsdl</wsdl>
    <soap>http://www.whatever.com/Mywebservice*</soap>
    </properties>
    </destination>

    Now restart your FES FDS server.

    Next add a webservice tag to your application using the id as the  destination

    <mx:WebService id=”myWS”
    destination=”myWS”
    useProxy=”true”
    showBusyCursor=”true”
    concurrency=”single”
    result=”mx.controls.Alert.show( event.result )”
    fault=”mx.controls.Alert.show( event.fault)”>
    </mx:WebService>

    Call your methods using myWS as the identifier. Ex: myWS.myMethod();

    Note:  If you wish to use a named service within FlexBuilder (non FES FDS application) you will need to add an argument to your Flex Compiler arguments under the project properties:
    mxmlc –services=./mypath/to/flex-enterprise-services.xml etc

    One Response to “WebService setup for FDS”

    1. JoeService Says:

      Thnaks a lot

    Leave a Reply