Note that there are some explanatory texts on larger screens.

plurals
  1. POInvoking HTTPS webservice from flex
    text
    copied!<p>I have an https .net webservice. Invoking web methods using tools like soap UI works fine. I am unable to invoke the webmethod from flex. My WSDL loads up fine in flex.</p> <p>On deployment my flex application and the webservice are on the same server. When use the machine url and access from within the server it works fine, but not when I use the https url for the flex application.</p> <p>Eg - <a href="http://machinename/flex/flexApp.html" rel="nofollow">http://machinename/flex/flexApp.html</a> works fine with <a href="https://publicname/wservice/ws.asmx" rel="nofollow">https://publicname/wservice/ws.asmx</a> but <a href="https://publicname/flex/flexapp.html" rel="nofollow">https://publicname/flex/flexapp.html</a> fails to work.</p> <p>I have the crossdomain policy in place with full access and also I have a valid SSL certificate on the server.</p> <p>When I make the call from my local machine in debug mode I see the following in Fiddler-</p> <p>The WSDL call goes fine and returns back correctly and the Protocol is shown as HTTPS where as the webmethod call following it shows the protocol as HTTP and returns back with the error - I have been stuck on this for quite some time. Any help is greatly appreciated.</p> <p>Thanks, Nikhil.</p> <p>Here is my Flex code that calls it:</p> <pre><code>//business delegate public function BusinessDelegate(responder : IResponder):void { _responder = responder; _service = ServiceLocator.getInstance().getService("sqlWebService"); _service.loadWSDL(); } //Login User public function Login(userId:String,password:String):void { var asyncToken:AsyncToken = _service.LoginUser(userId,password); asyncToken.addResponder(_responder); } </code></pre> <p>and the service locator has the following tag where I set the URL from outside as https://....</p> <pre><code>&lt;mx:WebService id="sqlWebService" useProxy="false" concurrency="multiple" showBusyCursor="true" wsdl="{Url}"/&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload