5 Replies Latest reply on Mar 23, 2009 10:35 PM by LPVOID32

    generated code problem   

    LPVOID32 Level 1
      hi
      i imported an asp.net service to my flex application,
      the web service is consumed by many module , and after compiling (in strict mode) i got the following error:
      (99 error )1067: Implicit coercion of a value of type QName to an unrelated type QName.
      all of them reside in generated webservice dir/basexxxservice.as

      =================================================
      BaseahnServiceService = new WSDLService("BaseahnServiceService");
      BaseahnServicePort = new WSDLPort("BaseahnServicePort",BaseahnServiceService);
      BaseahnServiceBinding = new WSDLBinding("BaseahnServiceBinding");
      BaseahnServicePortType = new WSDLPortType("BaseahnServicePortType");
      BaseahnServiceBinding.portType = BaseahnServicePortType;
      BaseahnServicePort.binding = BaseahnServiceBinding;
      BaseahnServiceService.addPort(BaseahnServicePort);
      BaseahnServicePort.endpointURI = " http://localhost:2883/AHN/ahnservice.asmx";

      var validUser:WSDLOperation = new WSDLOperation("validUser");
      //input message for the operation
      requestMessage = new WSDLMessage("validUser");
      ==8 error (error:1067 - Implicit coercion of a value of type QName to an unrelated type QName)=======
      requestMessage.addPart(new WSDLMessagePart(new QName(" http://localhost:2883/AHN/","name"),null,new QName(" http://www.w3.org/2001/XMLSchema","string")));
      requestMessage.addPart(new WSDLMessagePart(new QName(" http://localhost:2883/AHN/","password"),null,new QName(" http://www.w3.org/2001/XMLSchema","string")));
      ===============================================================
      requestMessage.encoding = new WSDLEncoding();
      requestMessage.encoding.namespaceURI=" http://localhost:2883/AHN/";
      requestMessage.encoding.useStyle="literal";
      requestMessage.isWrapped = true;
      ==2 error (error:1067 - Implicit coercion of a value of type QName to an unrelated type QName)=======
      requestMessage.wrappedQName = new QName(" http://localhost:2883/AHN/","validUser");
      ==========================================================================

      responseMessage = new WSDLMessage("validUserResponse");
      ==4error (error:1067 - Implicit coercion of a value of type QName to an unrelated type QName)=======
      responseMessage.addPart(new WSDLMessagePart(new QName(" http://localhost:2883/AHN/","validUserResult"),null,new QName(" http://www.w3.org/2001/XMLSchema","boolean")));
      ==========================================================================
      responseMessage.encoding = new WSDLEncoding();
      responseMessage.encoding.namespaceURI=" http://localhost:2883/AHN/";
      responseMessage.encoding.useStyle="literal";

      responseMessage.isWrapped = true;
      ==2 error (error:1067 - Implicit coercion of a value of type QName to an unrelated type QName)=======
      responseMessage.wrappedQName = new QName(" http://localhost:2883/AHN/","validUserResponse");
      ============================================================================
      validUser.inputMessage = requestMessage;
      validUser.outputMessage = responseMessage;
      validUser.schemaManager = this.schemaMgr;
      validUser.soapAction = " http://localhost:2883/AHN/validUser";
      validUser.style = "document";
      BaseahnServiceService.getPort("BaseahnServicePort").binding.portType.addOperation(validUse r);
      ------------------------------------------------------------------------------------------ -----------------------------------------
      simple webservice call:

      var myService:AhnService = new AhnService();
      myService.validUser(name,password);
      myService.addvalidUserEventListener(validUserHandler);
      myService.addAhnServiceFaultEventListener(connectionError);

      all (99 error) reside in the generated web service code(basexxxservice.as)
      and they are repeated for each imported web method
      i do n't have any error else where
      if i compile the code without strict mode the web service is working fine but my application is not stable(i got RTE)
      thanks in advance