ScannerVision Web Server

<back to all web services

PostQuestion

Requires Authentication
The following routes are available for this service:
POST/{Brand}/question/{TemplateGuid}/{QuestionGuid}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class PostQuestion : QuestionRequestDto()
{
    var QuestionValueReturned:String? = null
    var QuestionValueDisplayed:String? = null
    var SelectedFolder:String? = null
}

open class QuestionRequestDto : RequestBase()
{
    var TemplateGuid:String? = null
    var QuestionGuid:String? = null
    var Parent:String? = null
    var FolderBrowser:String? = null
}

open class RequestBase : DtoBase()
{
}

open class DtoBase
{
    var Brand:Brand? = null
}

enum class Brand
{
    Desktop,
    Hp,
    Kyocera,
    NeaScan,
    Samsung,
    FujiXerox,
    Ta,
    Utax,
    Epson,
    ScanFront400,
    Sharp,
    Ricoh,
    FujiFilm,
}

Kotlin PostQuestion DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /{Brand}/question/{TemplateGuid}/{QuestionGuid} HTTP/1.1 
Host: buildmax.org 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PostQuestion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ScannerVision.WebService.ServiceModel">
  <Brand>Desktop</Brand>
  <FolderBrowser>String</FolderBrowser>
  <Parent>String</Parent>
  <QuestionGuid>String</QuestionGuid>
  <TemplateGuid>String</TemplateGuid>
  <QuestionValueDisplayed>String</QuestionValueDisplayed>
  <QuestionValueReturned>String</QuestionValueReturned>
  <SelectedFolder>String</SelectedFolder>
</PostQuestion>