0 Replies Latest reply on Nov 13, 2006 4:10 AM by Hobbitville

    Configuring web service name

    Hobbitville
      Hi, we bought Flex Builder 2 with Charting
      I'm trying to configure web service name using flex-config.xml
      In the .mxml file I wrote this code:
      ...
      <mx:WebService id="AnalyticsWS" destination="AnalyticsWS" showBusyCursor="true">
      ...

      About flex-config.xml, should I use the one in the Flex Builder installation adding just the web-service-proxy tags?
      Or should I create a new empty one with just flex-confg and web-service-proxy tags (and the code, of course)?
      I put flex-config.xml in the WEB-INF\flex directory.
      The code I added in the flex-config.xml file is:
      ...
      <web-service-proxy>
      <whitelist>
      <named>
      <service name="AnalyticsWS">
      <wsdl> http://localhost:9091/Analytics/LAWebService?WSDL</wsdl>
      <endpoints>
      <endpoint> http://localhost:9091/Analytics/LAWebService</endpoint>
      </endpoints>
      </service>
      </named>
      </whitelist>
      </web-service-proxy>
      ...
      But it doesn't work. Every time I call application via browser, I have this error:
      [RPC Fault faultString="[MessagingError message='Unknown destination 'AnalyticsWS'.']" faultCode="InvokeFailed" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (null)"]

      Could you please help me?
      Thanks a lot in advance.
      Marco