How to consume ConvertAllFileTypesToPDFService web service using Flexbuilder and Action Scripting




I am trying to call the invoke_send() method from the ConvertAllFileTypesToPDFService web service, whenever i call the web method i get a SOAP fault message:

aultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://server:8080/soap/services/ConvertAllFileTypesToPDF" errorID=2032]. URL: http://server:8080/soap/services/ConvertAllFileTypesToPDF'

the following code snippet has the actual web method call.


public var cPDF:ConvertAllFileTypesToPDFService = new ConvertAllFileTypesToPDFService();

cPDF.getWebService().setCredentials('admin', 'pword', null);

cPDF.addEventListener(ResultEvent.RESULT, myResultHandlingFunction);

cPDF.addEventListener(FaultEvent.FAULT, myFaultHandlingFunction);

var cPDFReq:Invoke_request = new Invoke_request();

cPDFReq.fileName =;

cPDFReq.inputDocument = iBLOB;

cPDFReq.fileTypeSettings = 'pdfa save check box change';

cPDFReq.pdfSettings = 'PDFA1b 2005 RGB';

cPDFReq.securitySettings = 'No Security';

cPDFReq.settingsDocument = null;

cPDFReq.xmpDocument = null;

cPDF.invoke_request_var = cPDFReq;


public function myResultHandlingFunction(event:InvokeResultEvent): void


var oArray:ByteArray = new ByteArray();

oArray = event.result.binaryData;


public function myFaultHandlingFunction(event:FaultEvent): void



Can someone please help me troubleshoot the issue. Thanks.