SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /fawapi.asmx HTTP/1.1
Host: 64.156.56.142
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.filesanywhere.com/ItemCommentUpdate"
string
string
int
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
string
boolean
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /fawapi.asmx HTTP/1.1
Host: 64.156.56.142
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
string
int
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
string
boolean
Sample Visual Basic.Net Code
Private Sub ItemCommentUpdate()
Dim FAWAPI As New WebReference.FAWAPI
Dim ItemCommentUpdateResult As New WebReference.ItemCommentUpdateResult
ItemCommentUpdateResult= FAWAPI.ItemCommentUpdate(Token,ItemComment,CommentId)
If ItemCommentUpdateResult.ErrorMessage IsNot Nothing Then
Msgbox ItemCommentUpdateResult.ErrorMessage
Exit Sub
End If
If ItemCommentUpdateResult.CommentUpdated IsNot Nothing Then
Msgbox ItemCommentUpdateResult.CommentUpdated
End If
ItemCommentUpdateResult = Nothing
FAWAPI = Nothing
End Sub
Request Arguments
Response
ItemCommentUpdateResult
ItemCommentUpdateResult Properties
Name
|
Data Type
|
Description
|
ErrorMessage
|
String
|
A description of the error, if any error was encountered while the ItemCommentupdate method was executed. If the ItemCommentUpdate call was successful, the ErrorMessage is blank or null.
|
CommentUpdated
|
Boolean
|
If comment is Updated successfully then this will return True else false.
|
ItemCommentsList
This method returns the comments list of a file/folder.
Syntax
ItemCommentsListResult = ItemCommentsList(Token,ItemPath)
Usage
Use the ItemCommentsList method to get the comments list of an item.
The following parameters are needed to make the ItemCommentsList call:
-
Token (The Token ID returned by the last AccountLogin call).
-
ItemPath (Name of the file/folder with the FilesAnywhere Path). The Path should be formatted, for file \UserVolume\FolderName\FileName and for folder path should be \UserVolume\FolderName\, where UserVolume is the FilesAnywhere UserName in whose account the item exists.
Share with your friends: |