0 Replies Latest reply on Nov 2, 2010 12:57 PM by ls_to_2010

    2032 error when loading WSDL

    ls_to_2010

      Hello;

       

      I'm trying to do a Web Service integration with an application using Flex. A PHP, C and Java API already exist for this so I know its possible. Also when I call the WSDL file from a browser I get back a valid looking document (generated by Axis).

       

      However, when I try and load the WSDL using ActionScript or MMX I get the 2032 error:

       

       

      public function useWebService():void { 
                                      var ws:WebService = new WebService(); 
                                      ws.wsdl="http://username:password@localhost:8089/jasperserver-pro/services/repository?wsdl"; 
                                      ws.loadWSDL();
                              } 
      

       

       

      MMX:

       

       

      <s:WebService 
                     id="repository" 
                     wsdl="http://username:password@localhost:8089/jasperserver-pro/services/repository?wsdl"> 
                     
                     <s:operation name="list" resultFormat="object" result="listHandler(event)" fault="faultHandler(event)">
                          <s:request format="xml">
                               <request operationName="list"> 
                                    <resourceDescriptor name="" wsType="folder" uriString="/public" isNew="false">
                                         <label></label>
                                    </resourceDescriptor>
                               </request>
                          </s:request>
                     </s:operation>
                </s:WebService>
      

       

       

      I have created a crossdomain.xml file which is accessible from this URL: http://localhost:8089/jasperserver-pro/crossdomain.xml. Here is how the file looks:

       

      <?xml version="1.0" encoding="utf-8" ?>
      <!DOCTYPE cross-domain-policy SYSTEM
        "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
      <cross-domain-policy>
         <allow-access-from domain="*" />
         <allow-http-request-headers-from domain="*.*" headers="*" />
      </cross-domain-policy>
      

       

       

      I made all this in Flash Builder. Does anyone have any debugging tips? Does my crossdomain file look ok? Is it accessible from the correct URL?

       

      Any tips in general?

       

      Thanks,

       

      Luke