| All Verbs | /{Brand}/browse/{BrowseType}/ | ||
|---|---|---|---|
| All Verbs | /{Brand}/browse/{BrowseType}/{Path} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ScannerVision.WebService.ServiceModel
Namespace Global
Namespace ScannerVision.WebService.ServiceModel
Public Enum Brand
Desktop
Hp
Kyocera
NeaScan
Samsung
FujiXerox
Ta
Utax
Epson
ScanFront400
Sharp
Ricoh
FujiFilm
End Enum
Public Partial Class BrowseRequest
Inherits RequestBase
Public Overridable Property Path As String
End Class
Public Partial Class DtoBase
Public Overridable Property Brand As Brand
End Class
Public Partial Class RequestBase
Inherits DtoBase
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Brand}/browse/{BrowseType}/ HTTP/1.1
Host: buildmax.org
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BrowseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ScannerVision.WebService.ServiceModel">
<Brand>Desktop</Brand>
<Path>String</Path>
</BrowseRequest>