0 Replies Latest reply on Jun 8, 2010 3:40 PM by iamcootis

    Using Cairngorm with a WSDL

    iamcootis Level 1

      I have used Cairngorm before using BlazeDS and a remote service, but I am now trying to do the same thing using a WSDL.

       

      First, I used the "connect to WebService WSDL" and it created my services classes and value objects.

      My super service class looks like this:

       

      internal class _Super_Provisioning extends com.adobe.fiber.services.wrapper.WebServiceWrapper

       

      My Services.mxml looks like this:

       

      <cairngorm:ServiceLocator xmlns:cairngorm="http://www.adobe.com/2006/cairngorm"
          xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:provisioning="com.application.business.provisioning.*">
          <provisioning:Provisioning id="provisioningService"/>
      </cairngorm:ServiceLocator>

       

      Provisioning extends _Super_Provisioning

       

      In my businessdelegate ctr, my code looks like this:

       

      private var service:Provisioning;

       

      public function ApplicationBusinessDelegate(responder:IResponder) {     
                 
                  service = ServiceLocator.getInstance().getService("provisioningService");
                  this.responder = responder;
              }

       

      I am getting the error:
      1067: Implicit coercion of a value of type mx.rpc:AbstractService to an unrelated type com.application.business.provisioning:Provisioning.

       

       

      In an example I am using as a guide, the person service class extends AbstractWebService, so I'm assuming he didn't use the WSDL wizard.

      public class BaseGlobalWeather extends AbstractWebService

       

      Does anyone have any experience using Cairngorm and using the WSDL wizard to create your services? What is the best way to implement this?