2 Replies Latest reply on Aug 1, 2010 5:01 AM by zjankovsky

    Crossdomain.xml & Web Services

    mattcom Level 1



      I've tried several searches to resolve my issue but with no success.  Hopefully I'll find a good answer here.


      Here's my question:  I'm trying to load a SOAP web service in FlashBuilder 4 or Flex Builder 3 to access to SOAP for a Portabilling server.


      The WSDL url is https://vno.domain.com/wsdl/SessionAdminService.wsdl and I've placed a crossdomain.xml page at the root of the subdomain and I can't seem to load the service


      However, I can load this example service http://soamoa.org:9292/artistRegistry?WSDL and yet I can't find a http://soamoa.org:9292/crossdomain.xml or a http://soamoa.org/crossdomain.xml


      I am trying to develop the application on my laptop (localhost)



      The main difference that I can see is that one that works is /artistRegistry?WSDL and the one that doesn't is /SessionAdminService.wsdl


      If anyone can lend me some insight, I would appreciate it.


      Also, this is the error that's popping up in FlashBuilder 4 if it helps:


      There was an error during service introspection.
      WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'https://vno.interceltelecoms.com/wsdl/SessionAdminService.wsdl'.: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

        • 1. Re: Crossdomain.xml & Web Services
          mattcom Level 1

          Ok, so I've made some headway on this.  Hopefully it will help some others on the same path.  The real problem is not the crossdomain.xml, it had to do with the URI of the WSDL being an HTTPS and the site it was requesting the HTTPS from did not have a legitamate SSL certificate.  I tried downloading the self signed certificate and importing it into a keystore in JRE and also FlashBuilder's JRE.  Other's have found a solution that way, but I have not gotten FlashBuilder to successfully accept it even with the imported certificate.


          However, I did find a solution for those who are trying to import the Portabilling WSDL who are having the same problem with the SSL.  All I had to do was to import the WSDL into FlashBuilder / Flex through the URI of https://demo.portaone.com/wsdl/<whatever WSDL extension>.  This had a legitimate SSL and imported with no need for a crossdomain.xml.  After the Flex code was generated through the importing process I just went in and changed the URIs back to the domain that I was working with, and Viola!  I ran a login test and it was successful.

          • 2. Re: Crossdomain.xml & Web Services



            I tried to solve this problem too.


            I changed the cacerts file for JRE Flash Builder 4, and it worked - it could read the wsdl file, and FB created all of the objects.


            But then connection test doesn't pass. Yes, I got the answer of the server, but wrong answer. I don't know if FB is using POST or GET, and I don't know other details.  Can I check this somewhere?


            I would like to ask, where I can find the address of the server in generated files? I have found only wsdl address, but no other.


            I tried to catch the communication with Fiddler 2, but without success.


            Thank you for your reply.


            Zdenek J., CZ