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

    Services-config.xml example for web service

      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"?>
      <service id="MyService"

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

      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)