4 Replies Latest reply on Dec 11, 2006 7:17 AM by sylvain.emma

    Webservice with a  logout method

    sylvain.emma
      Hello,

      I'm trying to use a web service that has a logout method, but when i declare it i've got the message below.
      It seems to be because the web service has a method called "logout" that is reserved to the AbstractService class normally. The wsdl url is https://api.betfair.com/global/v3/BFGlobalService.wsdl if anybody want to try.
      How can i use this web service ?

      Thanks

      TypeError: Error #1034: Echec de la contrainte de type : conversion de MC{mx.rpc.soap.mxml::WebService@264cce1 mx.rpc::AbstractService/logout()}@278db29 en mx.rpc.soap.Operation impossible.
      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() https://api.betfair.com/global/v3/BFGlobalService.wsdl