1 Reply Latest reply on Jan 19, 2006 11:18 AM by (thinkjohn)

    Web Service Call Returns Error Message "unsupported scheme: c". **Building Proof-of-Concept for Biz

      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?

      Thank in advance.