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.*;

public class dtos
{

    public static class PostQuestion extends QuestionRequestDto
    {
        public String QuestionValueReturned = null;
        public String QuestionValueDisplayed = null;
        public String SelectedFolder = null;
        
        public String getQuestionValueReturned() { return QuestionValueReturned; }
        public PostQuestion setQuestionValueReturned(String value) { this.QuestionValueReturned = value; return this; }
        public String getQuestionValueDisplayed() { return QuestionValueDisplayed; }
        public PostQuestion setQuestionValueDisplayed(String value) { this.QuestionValueDisplayed = value; return this; }
        public String getSelectedFolder() { return SelectedFolder; }
        public PostQuestion setSelectedFolder(String value) { this.SelectedFolder = value; return this; }
    }

    public static class QuestionRequestDto extends RequestBase
    {
        public String TemplateGuid = null;
        public String QuestionGuid = null;
        public String Parent = null;
        public String FolderBrowser = null;
        
        public String getTemplateGuid() { return TemplateGuid; }
        public QuestionRequestDto setTemplateGuid(String value) { this.TemplateGuid = value; return this; }
        public String getQuestionGuid() { return QuestionGuid; }
        public QuestionRequestDto setQuestionGuid(String value) { this.QuestionGuid = value; return this; }
        public String getParent() { return Parent; }
        public QuestionRequestDto setParent(String value) { this.Parent = value; return this; }
        public String getFolderBrowser() { return FolderBrowser; }
        public QuestionRequestDto setFolderBrowser(String value) { this.FolderBrowser = value; return this; }
    }

    public static class RequestBase extends DtoBase
    {
        
    }

    public static class DtoBase
    {
        public Brand Brand = null;
        
        public Brand getBrand() { return Brand; }
        public DtoBase setBrand(Brand value) { this.Brand = value; return this; }
    }

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

}

Java 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>