4 Replies Latest reply on Aug 13, 2007 9:51 AM by cxy007

    Will ASP.net SOAP service work with Flex

    cxy007
      Hi, I just downloaded flex builder 3 and try to use my SOAP service build with ASP.net, here is the code:
      <?xml version="1.0"?>
      <!-- Simple example to demonstrate the ColorPicker control. -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:WebService id="myService" wsdl=" http://www.nukeprice.com/AmazonPriceWatch/Service.asmx?WSDL">
      </mx:WebService>
      </mx:Application>

      I got this error even I am online:
      [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL ( http://www.nukeprice.com/AmazonPriceWatch/Service.asmx?WSDL)"
      at mx.rpc.wsdl::WSDLLoader/mx.rpc.wsdl:WSDLLoader::faultHandler()
      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()
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()
      at mx.rpc::Responder/fault()
      at mx.rpc::AsyncRequest/fault()
      at private::DirectHTTPMessageResponder/securityErrorHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()

      As you can see, the WSDL url is correct and I am using the service now which mean the soap service is working. I have no idea why flex can't connect to it.
      But if I switch the url to the example on the book: http://www.rightactionscript.com/states/webservice/StatesService.php?wsdl
      It work fine! Any help? Flex doesn't support SOAP build with asp.net????
      Thanks.