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: 2009 IRS income tax forms available for download

With less than a month to go until Americans will be scrambling to file their 2009 tax paperwork. Luckily, printable PDF versions of forms such as the 1040 can be downloaded for free from the IRS website.

March 18, 2010
Search Planet PDF
more searching options...







Download PDF Creator

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

ARTS PDF

Silver Sponsors

PDF-Tools QuickPDF: The Unrivaled PDF Developer Toolkit

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

No upcoming events

PDF Store Categories