Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Data Services
Viewing all articles
Browse latest Browse all 58696

How to consume ConvertAllFileTypesToPDFService web service using Flexbuilder and Action Scripting

$
0
0
Hello

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.

[Bindable]
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 = file.name.toString();
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;

cPDF.invoke_send();

public function myResultHandlingFunction(event:InvokeResultEvent): void
{
var oArray:ByteArray = new ByteArray();
oArray = event.result.binaryData;
}

public function myFaultHandlingFunction(event:FaultEvent): void
{
Alert.show(event.fault.message);
}

Can someone please help me troubleshoot the issue. Thanks.

Viewing all articles
Browse latest Browse all 58696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>