Groups > Software Support > Adobe Acrobat Elements Server > Web Service Call Returns Error Message




Web Service Call Returns Error Message

Web Service Call Returns Error Message
Thu, 8 Dec 2005 17:24:08 -0700
I have setup the Try-It version of AES and I am trying to get a web service call
for createPDF to work. I have set this up on IIS 5.1 with .Net Framework v1.1.
Create the vir dir to c:\program files\adobe\acrobat elements
server\apache\htdocs\aaes.wsdl and create my Web Reference in VS.Net C# project.
And finally my code for the call:

if (( MyFile.PostedFile != null ) && ( MyFile.PostedFile.ContentLength
> 0 ))
{
	FileName.InnerHtml = MyFile.PostedFile.FileName;
	FileContent.InnerHtml = MyFile.PostedFile.ContentType;
	FileSize.InnerHtml = MyFile.PostedFile.ContentType;
	UploadDetails.Visible = true;

	String strFileName = MyFile.PostedFile.FileName;
	String c = System.IO.Path.GetFileName(strFileName);
	String SaveLocation = Server.MapPath("files");

	try
	{
		MyFile.PostedFile.SaveAs(SaveLocation + "\\" + c);
		Span1.InnerHtml = "Your File Uploaded Successfully on the server as
" + c;
	}
	catch ( Exception ex )
	{
		Span1.InnerHtml = "Error uploading file: " + ex.Message;
	}
	localhost.AAES aaesWS = new localhost.AAES();
	string sourceURL;
	string jobOptions = "";
	string mimeType = "";
	string errorMessage;
	string jobID;
	sourceURL = SaveLocation + "\\" + c;
	aaesWS.createPDF(sourceURL,jobOptions,mimeType,out errorMessage,out jobID);
	Span1.InnerHtml = Span1.InnerHtml + "
sourceURL: " + sourceURL + "
Error: " + errorMessage + "
Job Id: " + jobID;
}
else
{
	Span1.InnerHtml = "Please browse for file to upload.";
}

Any ideas on the error?

Post Reply
about | contact