• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

cannot load WSDL outside FlexBuilder4

Guest
Jan 23, 2011 Jan 23, 2011

Copy link to clipboard

Copied

Hello,

Built a one-file "checkConnect" mxml program using "Connect to Data/Service..." to connect from a PC to our server WSDL.  The SOAP/WSDL works when launched from FB Run.  After Export-Release-Build put all files into bin-release the "checkConnect.html" file works when launched from FB with a right-click on the file and Open With->Web Browser (IE 32-bit version 8.0.).

Copied the "checkConnect" files to a folder.  Right-click on the file and Open With->Internet Explorer.  The program GUI works but the connection to WSDL fails with:

[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://liquidemr.dnsalias.com/qportal/service.asmx?wsdl)"]
at mx.rpc.wsdl::WSDLLoader/faultHandler()

Checked each file permissions and they seem to allow full usage.  The Windows 7 O/S does not recognize the .swf files, recommends opening with IE.  Two other engineering PCs threw similar errors, none connect to the WSDL.

Here is the principal source code, with an alias in our URL:

<?xml version="1.0" encoding="utf-8"?>

<s:Application

   xmlns:fx="http://ns.adobe.com/mxml/2009"

  xmlns:s="library://ns.adobe.com/flex/spark"

  xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"

  xmlns:service="services.service.*" >

<fx:Declarations>

  <mx:ArrayCollection id="deviceAC" />

  <s:WebService id="idPatientWebService"

    wsdl="http://some.url.com/qportal/service.asmx?wsdl">

    <s:operation name="PatientLogin"

      resultFormat="object"

      result="PatientLogin_result(event);"

      fault="Patient_fault(event);" />

    <s:operation name="PatientGetInfo"

      resultFormat="object"

      result="PatientGetInfo_result(event);"

      fault="Patient_fault(event);" />

  </s:WebService>

</fx:Declarations>

The server URL is invoked with:

private function button1_click():void {

  idPatientWebService.PatientLogin.send(stName, stPassword); }

Thanks for helping,

Bruce

Views

3.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 24, 2011 Jan 24, 2011

Copy link to clipboard

Copied

This is because when you run in FB, the output folder is automatically part of the trust and hence it works. Ideally it should work, if you deploy it on a webserver but since you tried it on a different untrusted location it is failing. You can either put that location in the trust location (look for FlashPlayerTrust directory in your users folder and edit the .cfg file there to include your location) or the recommended approach is to deploy it on a webserver and provide appropriate crossdomain.xml file as a security measure (more info http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ec8.html )

Thanks

-Sunil

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 24, 2011 Jan 24, 2011

Copy link to clipboard

Copied

Thank you for directions about Adobe FB development vs deployment.  Here are a couple follow-up questions:

Background: FB application developers download an Adobe Flash 32-bit debugger version to a Windows 7  64-bit PC.

1) So far, the Flash debugger does not co-exist with a Flash runtime version; each requires removing the other before installation.  Hence, developer PCs do not have both Flash versions.

2) When using FB4 and Flash debugger, this security folder is created.

C:\Users\{username}\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust

but no other FlashPlayerTrust folder is created.

The FlashPlayerTrust folder contains:

  air.1.0.trust.cfg // adding the program name.html does not help, adding PC IP address does not help

  flashbuilder.cfg // contains paths to metadata and other files, adding program name does not help

  flashbuilder.fbr // contains plugins, etc.

What is the correct file, program or IP address syntax?  Does the PC need rebooting after editing the file?

3) Documentation for deploying to a server and editing crossdomain.xml file looks complete

many thnaks,

Bruce

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 25, 2011 Jan 25, 2011

Copy link to clipboard

Copied

Any help from Adobe????

thanks,

BRuce

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 09, 2011 Dec 09, 2011

Copy link to clipboard

Copied

Hi Bruce,

Did you get the answer for your issue. I have similar one eventhou I deployed to webserver.

Regards

Wendra

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 10, 2011 Dec 10, 2011

Copy link to clipboard

Copied

fmoi, why use webservices instead of remote object?

why do you have so much in the one wsdl?

http://liquidemr.dnsalias.com/qportal/service.asmx?wsdl

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 11, 2011 Dec 11, 2011

Copy link to clipboard

Copied

we already have the webservice utilised via WSDL why bother create new one.. please anyone???

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 22, 2011 Dec 22, 2011

Copy link to clipboard

Copied

LATEST

You will need to use a crossdomain file and put it in your apache root documents directory for that server/port.    

That should resolve your security issues.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines