2 Replies Latest reply on Sep 17, 2007 11:39 AM by Michael.Neel

    Services-config.xml example for web service

    Michael.Neel
      I am trying to figure out how one configures a web service in services-config.xml - simple enough. I cannot find an example of a complete config in any of the docs - if anyone has a link that would be great. My current (non-working) config looks like:

      <?xml version="1.0" encoding="utf-8"?>
      <services-config>
      <services>
      <service id="MyService"
      class="flex.messaging.services.WebService"
      messageTypes="flex.messaging.messages.SoapMessage">

      <destination id="MyServiceDest" adapter="soap-proxy">
      <adapter ref="soap-proxy" />
      <channels>
      <channel ref="my-http" />
      </channels>
      <properties>
      <wsdl> http://Server/Service.asmx?WSDL</wsdl>
      <soap> http://Server/Service.asmx</soap>
      </properties>
      </destination>
      </service>
      </services>
      <channels>
      <channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
      <endpoint uri=" http://Server/" class="flex.messaging.endpoints.HTTPEndpoint" />
      </channel-definition>
      </channels>
      </services-config>

      I think the class and messageTypes are the problem - Fiddler shows Flex not making any calls to the WSDL - but instead sending flex.messaging.messages.CommandMessage and flex.messaging.messages.HTTPMessage to the endpoint in the channel.

      (note my service is working fine if I use the wsdl attribute of mx:WebService, but not when I use destination)