Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Engineering


Topic: SOAP Adobe Collaboration .Net Web Service
Conf: (P-PDF) Engineering, Msg: 164959
From: Seenuvasan
Date: 3/11/2008 12:50 AM

I've written a web service in .Net to store the comments for the PDF documents. But, the SDKSoap Sample is not calling the ReadFile function. Can you please anyone help me to find out the error.

Please find the code below (VB.Net).

Imports System.IO
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols

_
_
_
Public Class Service
Inherits System.Web.Services.WebService
Private Function GetErrTxtPathNameas() As String
Dim errTxtPathNameas As String = ConfigurationManager.AppSettings.GetValues("FilePath")(0)
Return errTxtPathNameas
End Function

Public Function ReadFile(ByVal strFileName As String) As String
Try
Dim sr As StreamReader
sr = New StreamReader(GetErrTxtPathNameas() & strFileName & ".txt")
Return sr.ReadToEnd() '(IIf(sr.ReadToEnd() <> "", sr.ReadToEnd(), ""))
Catch ex As Exception
Return "Good" ' Err.Description
End Try
End Function

Public Function WeiteFile(ByVal strText As String, ByVal strFileName As String) As String
Try
writeLog(GetErrTxtPathNameas() & strFileName & ".txt")
writeLog(strText)

Dim sw As StreamWriter
'sLogFormat used to create log files format
'this variable used to create log filename format "
sw = New StreamWriter(GetErrTxtPathNameas() & strFileName & ".txt", True)
sw.WriteLine(strText)
sw.Flush()
sw.Close()
Return strText
Catch ex As Exception
Return Err.Description
End Try
End Function
Public Function writeLog(ByVal strText As String) As String
Dim sw As StreamWriter
'sLogFormat used to create log files format
'this variable used to create log filename format "
sw = New StreamWriter(GetErrTxtPathNameas() & "log.txt", True)
sw.WriteLine(strText)
sw.Flush()
sw.Close()
Return ""
End Function
End Class

Thanks in advance.


PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: Presidential finger puppets

With the presidential election approaching in a couple of months, excitement is building in the US. What could make the wait easier to bear? How about fold-them-yourself presidential candidate finger puppets?

September 04, 2008
Search Planet PDF
more searching options...




PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

FileOpen PDFNet SDK: PDF Component. Cross-platform PDF library

PDF Converter: Create, Convert PDF to Word/Excel Solid Documents - PDF to Word Converter

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

Adobe Acrobat & PDF Central Conference 2008

September 23 - 25, 2008 - Minneapolis, Minnesota

Dedicated exclusively to Adobe Acrobat and PDF, the 2008 Adobe Acrobat and PDF Central Conference presents a unique opportunity to broaden your understanding of how PDF technologies can positively affect your business productivity.

Discover the new features of Acrobat 9 and expand your knowledge of PDF technology. Participate in various educational seminars, such as Acrobat Form Fundamentals, Acrobat Security, Creating PDF Portfolios, Scripting with the new Flash Annotation in PDF, JavaScript for Acrobat, and much more.

PDF Store Categories