0 Replies Latest reply on Jan 9, 2007 6:33 AM by headjoog2

    TypeError on WebService - Bug?

    headjoog2
      I am attempting to call a web service and getting the TypeError: Error #1034. The service includes a "login" and "logout" operation. Did someone post a message in the forum regarding a bug when attempting to use a web service with operations named "logout" ? I am getting the following error message. I note that "logout()" appears in the error message even though I am not calling in my <mx:operation> tag - I call the "login" service:

      ================
      MXML

      <mx:WebService id="ws_Init" showBusyCursor="true" wsdl=" http://servername/services/session?wsdl">
      <mx:operation name="login" >
      <mx:request>
      <User>
      {txt_User.text}
      </User>
      <Password>
      {txt_Pwd.text}
      </Password>
      </mx:request>
      </mx:operation>
      </mx:WebService>

      ===========================================
      ERROR MESSAGE:

      TypeError: Error #1034: Type Coercion failed: cannot convert MC{mx.rpc.soap.mxml::WebService@4bf71a1 mx.rpc::AbstractService/logout()}@4d2c219 to mx.rpc.soap.Operation.
      at mx.rpc.soap::WebService/mx.rpc.soap:WebService::createOperationsFromPort()[C:\dev\enterpr ise_gmc\frameworks\mx\rpc\soap\WebService.as:768]
      at mx.rpc.soap::WebService/mx.rpc.soap:WebService::setPort()[C:\dev\enterprise_gmc\framework s\mx\rpc\soap\WebService.as:734]
      at mx.rpc.soap::WebService/ http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()[C:\dev\enterprise_gmc\frameworks \mx\rpc\soap\WebService.as:647
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc.soap::WSDLParser/dispatchEvent()[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\WSDL Parser.as:788]
      at mx.rpc.soap::WSDLParser/mx.rpc.soap:WSDLParser::parseCompleted()[C:\dev\enterprise_gmc\fr ameworks\mx\rpc\soap\WSDLParser.as:305]
      at mx.rpc.soap::WSDLParser/ http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()[C:\dev\enterprise_gmc\fram eworks\mx\rpc\soap\WSDLParser.as:181
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\dev\enterprise_gmc\frame works\mx\rpc\AbstractInvoker.as:145
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\dev\enterprise_gmc\framewor ks\mx\rpc\AbstractInvoker.as:167
      at mx.rpc::Responder/result()[C:\dev\enterprise_gmc\frameworks\mx\rpc\Responder.as:48]
      at mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AsyncRequest.a s:82]
      at DirectHTTPChannel.as$135::DirectHTTPMessageResponder/completeHandler()[C:\dev\enterprise_ gmc\frameworks\mx\messaging\channels\DirectHTTPChannel.as:359]
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::onComplete()