0 Replies Latest reply on Nov 14, 2006 12:37 PM by Kasem_Abotel

    Poblem with data services

    Kasem_Abotel
      Guys

      I have the following code to get to a web service

      <mx:WebService id="exec">
      <mx:operation name="Discover">
      <mx:request>
      <SOAP-ENV:Envelope xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" >
      <SOAP-ENV:Body>
      <Discover>
      <RequestType>MDSCHEMA_CUBES</RequestType>
      <Restrictions>
      <RestrictionList></RestrictionList>
      </Restrictions>
      <Properties>
      <PropertyList>
      <DataSourceInfo>default</DataSourceInfo>
      <Catalog>XSAMP01 </Catalog>
      <Format>Tabular </Format>
      </PropertyList>
      </Properties>
      </Discover>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>
      </mx:request>
      </mx:operation>
      </mx:WebService>
      <mx:Script>
      <![CDATA[
      import mx.rpc.AbstractOperation;
      import mx.rpc.soap.WSDL;
      import flash.events.*;
      import mx.rpc.*;
      private var listIndex:Number = 0;
      private function main () : void {
      exec.setRemoteCredentials(***, ***);
      exec.setCredentials(**,**);
      exec.useProxy = true;
      exec.loadWSDL("<web_service_url?wsdl");
      exec.Discover.send();
      }

      I get nothing in the last Result

      what is missing, I did not set the destination

      Thanks in advance for help

      Kasem