2 Replies Latest reply on Jul 25, 2007 1:18 AM by cunparis2day

    WebService document-literal service

    GaryThompson76
      I've done a number of apps accessing web services, I'm hitting problems accessing one written in Document-literal,
      the service is quite simple and return a list of files.
      heres the WSDL URL

      http://150.237.4.35/active-bpel/services/RepoWorkflowService?wsdl

      the WSDL Developer says the Soap message is being encoded wrong, the webservice works perfectly using
      Oxygen SOAP analyser.

      Help ! .

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">


      <mx:WebService id="RepoWorkFlowService"
      wsdl=" http://150.237.4.35/active-bpel/services/RepoWorkflowService?wsdl"
      useProxy="false"
      showBusyCursor="true">

      <mx:operation name="getFileVersions"
      resultFormat="e4x"
      result="GetFileVersionsResult();"
      fault="GetFileVersionsFault();">

      <mx:request xmlns=" http://repository.hull.ac.uk/xsd/RepoWorkflow/2007/01/RepoWorkflow.xsd">
      <getFileVersionsInput>
      <objectPID>hullwf:24</objectPID>
      <objectLabel>SimonsTest</objectLabel>
      </getFileVersionsInput>
      </mx:request>
      </mx:operation>
      </mx:WebService>

      <mx:Script>
      <![CDATA[
      public function SendRequest():void {
      Log.text = "RepoWorkFlowServiceRequest Sent" + "\r" + Log.text;
      RepoWorkFlowService.getFileVersions.send();

      }
      public function GetFileVersionsResult():void {
      Log.text = "GetFileVersions Result" + "\r" + Log.text;
      Log.text = RepoWorkFlowService.getFileVersions.lastResult.toString() + "\r" + Log.text;
      }

      public function GetFileVersionsFault():void {
      Log.text = "RepoWorkFlowService Fault" + "\r" + Log.text;
      Log.text = RepoWorkFlowService.getFileVersions.toString()+ "\r" + Log.text;
      }
      ]]>
      </mx:Script>

      <mx:TextArea x="10" y="92" width="289" height="80" id="Log" liveScrolling="true"/>
      <mx:Button x="108" y="35" label="Request" width="100" fillColors="[#ffffff, #ffffff]" enabled="true" id="Hit" click="SendRequest();"/>


      </mx:Application>