Article View: adobe.document.graphics.server
Article #278Adobe Document Server Web Service with dotnet
From: Thean_Teh
Date: Wed, 13 Dec 2006 06:31
Date: Wed, 13 Dec 2006 06:31
32 lines
2205 bytes
2205 bytes
Guys, am having problems...getting a "Could not complete this operation because the attempt to open file:///C:/Inetpub/wwwroot/AccessADSWebService/files/kb_record.fo for reading failed."
Here is my code...
Dim objResponse As response
Dim objADSWebService As Service
Dim objServiceRequest As AccessADSWebService.request
Dim objRequestFile(1) As RequestFileType
Dim strCommand As StringBuilder = New StringBuilder
Try
strCommand.Append("<?xml version=""1.0"" encoding=""UTF-8"" ?>" + ControlChars.Lf)
strCommand.Append("<commands resultOverwrite=""true"" >" + ControlChars.Lf)
strCommand.Append(ControlChars.Tab + "<loadContent source=""file:///C:/Inetpub/wwwroot/AccessADSWebService/files/kb_record.fo"" />" + ControlChars.Lf)
'strCommand.Append(ControlChars.Tab + "<loadContent source=""file:///C:/kb_record.fo"" />" + ControlChars.Lf)
strCommand.Append(ControlChars.Tab + "<formatXSL />" + ControlChars.Lf)
strCommand.Append("<saveContent name=""file:///C:/Inetpub/wwwroot/AccessADSWebService/files/kb_record"" appendExtension=""true"" />" + ControlChars.Lf)
strCommand.Append("</commands>" + ControlChars.Lf)
objADSWebService = New Service
objServiceRequest = New request
objResponse = New response
Response.Write(Server.HtmlEncode(strCommand.ToString))
objServiceRequest.commands = strCommand.ToString
objResponse = objADSWebService.Execute(objServiceRequest)
Catch ex As Exception
Response.Write(ex.StackTrace & " " & ex.Message)
End Try
Technical Details
Message-ID:
<3bc28df4.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 1effe5,a5aecef65ff9c0a6,start X-Google-Attributes: gid1effe5,public X-Google-Language: ENGLISH,ASCII-7-bit From: Thean_Teh@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.isoc.lu!webcrossing Newsgroups: adobe.document.graphics.server Subject: Adobe Document Server Web Service with dotnet Message-ID: <3bc28df4.-1@webcrossing.la2eafNXanI> Date: Tue, 12 Dec 2006 22:31:54 -0800 Lines: 43 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit