EService


Click here for a complete list of operations.

AddProcess

Test

The test form is only available for requests from the local machine.

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 /amphorapro/eservice.asmx HTTP/1.1
Host: test.amphora.ee
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.amphora.ee/AddProcess"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddProcess xmlns="http://www.amphora.ee">
      <username>string</username>
      <pwdHash>string</pwdHash>
      <process>
        <Id>int</Id>
        <IsParallel>string</IsParallel>
        <Name>string</Name>
        <EndDate>string</EndDate>
        <ProcessTasks>
          <Id>int</Id>
          <PersonCode>string</PersonCode>
          <TaskPurpose>string</TaskPurpose>
          <TaskDescription>string</TaskDescription>
          <Deadline>string</Deadline>
          <StatusId>int</StatusId>
          <Status>string</Status>
          <EndDate>string</EndDate>
          <Rejected>string</Rejected>
          <Comments>string</Comments>
        </ProcessTasks>
        <ProcessTasks>
          <Id>int</Id>
          <PersonCode>string</PersonCode>
          <TaskPurpose>string</TaskPurpose>
          <TaskDescription>string</TaskDescription>
          <Deadline>string</Deadline>
          <StatusId>int</StatusId>
          <Status>string</Status>
          <EndDate>string</EndDate>
          <Rejected>string</Rejected>
          <Comments>string</Comments>
        </ProcessTasks>
      </process>
      <itemId>int</itemId>
      <guid>string</guid>
      <externalId>string</externalId>
    </AddProcess>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddProcessResponse xmlns="http://www.amphora.ee">
      <AddProcessResult>
        <Id>int</Id>
        <Guid>string</Guid>
        <Result>string</Result>
        <Message>string</Message>
        <ErrorCode>string</ErrorCode>
        <Error>string</Error>
        <FormId>string</FormId>
        <FormName>string</FormName>
        <RegNumber>string</RegNumber>
        <inputForm>
          <locale>string</locale>
          <title>string</title>
          <reciever>string</reciever>
          <sendTime>string</sendTime>
          <formFields>
            <xsd:schema>schema</xsd:schema>xml</formFields>
          <contactInfo>
            <senderPerson xsi:nil="true" />
            <senderOrganization xsi:nil="true" />
          </contactInfo>
          <Files>
            <File xsi:nil="true" />
            <File xsi:nil="true" />
          </Files>
        </inputForm>
        <AnswerDate>string</AnswerDate>
        <AnswerDeadline>string</AnswerDeadline>
        <ResponsibleParty>string</ResponsibleParty>
        <File>
          <id>string</id>
          <txtCaption>string</txtCaption>
          <txtDocAbstract>string</txtDocAbstract>
          <dateInput>string</dateInput>
          <txtDocType>string</txtDocType>
          <txtDocLang>string</txtDocLang>
        </File>
        <ProcessId>int</ProcessId>
        <FileObject>
          <Id>string</Id>
          <guid>string</guid>
          <Name>string</Name>
          <Alias>string</Alias>
          <Description>string</Description>
          <CreationTime>string</CreationTime>
          <MimeType>string</MimeType>
          <Crc>string</Crc>
          <Size>long</Size>
          <Compression>string</Compression>
          <ContentBase64>string</ContentBase64>
        </FileObject>
        <Form>
          <locale>string</locale>
          <title>string</title>
          <receiver>string</receiver>
          <sendTime>string</sendTime>
          <fields>
            <label>string</label>
            <localizedlabel>string</localizedlabel>
            <type>string</type>
            <value>string</value>
            <field xsi:nil="true" />
            <field xsi:nil="true" />
          </fields>
          <fields>
            <label>string</label>
            <localizedlabel>string</localizedlabel>
            <type>string</type>
            <value>string</value>
            <field xsi:nil="true" />
            <field xsi:nil="true" />
          </fields>
        </Form>
        <Url>string</Url>
        <UrlPublic>string</UrlPublic>
      </AddProcessResult>
    </AddProcessResponse>
  </soap:Body>
</soap:Envelope>

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 /amphorapro/eservice.asmx HTTP/1.1
Host: test.amphora.ee
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AddProcess xmlns="http://www.amphora.ee">
      <username>string</username>
      <pwdHash>string</pwdHash>
      <process>
        <Id>int</Id>
        <IsParallel>string</IsParallel>
        <Name>string</Name>
        <EndDate>string</EndDate>
        <ProcessTasks>
          <Id>int</Id>
          <PersonCode>string</PersonCode>
          <TaskPurpose>string</TaskPurpose>
          <TaskDescription>string</TaskDescription>
          <Deadline>string</Deadline>
          <StatusId>int</StatusId>
          <Status>string</Status>
          <EndDate>string</EndDate>
          <Rejected>string</Rejected>
          <Comments>string</Comments>
        </ProcessTasks>
        <ProcessTasks>
          <Id>int</Id>
          <PersonCode>string</PersonCode>
          <TaskPurpose>string</TaskPurpose>
          <TaskDescription>string</TaskDescription>
          <Deadline>string</Deadline>
          <StatusId>int</StatusId>
          <Status>string</Status>
          <EndDate>string</EndDate>
          <Rejected>string</Rejected>
          <Comments>string</Comments>
        </ProcessTasks>
      </process>
      <itemId>int</itemId>
      <guid>string</guid>
      <externalId>string</externalId>
    </AddProcess>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AddProcessResponse xmlns="http://www.amphora.ee">
      <AddProcessResult>
        <Id>int</Id>
        <Guid>string</Guid>
        <Result>string</Result>
        <Message>string</Message>
        <ErrorCode>string</ErrorCode>
        <Error>string</Error>
        <FormId>string</FormId>
        <FormName>string</FormName>
        <RegNumber>string</RegNumber>
        <inputForm>
          <locale>string</locale>
          <title>string</title>
          <reciever>string</reciever>
          <sendTime>string</sendTime>
          <formFields>
            <xsd:schema>schema</xsd:schema>xml</formFields>
          <contactInfo>
            <senderPerson xsi:nil="true" />
            <senderOrganization xsi:nil="true" />
          </contactInfo>
          <Files>
            <File xsi:nil="true" />
            <File xsi:nil="true" />
          </Files>
        </inputForm>
        <AnswerDate>string</AnswerDate>
        <AnswerDeadline>string</AnswerDeadline>
        <ResponsibleParty>string</ResponsibleParty>
        <File>
          <id>string</id>
          <txtCaption>string</txtCaption>
          <txtDocAbstract>string</txtDocAbstract>
          <dateInput>string</dateInput>
          <txtDocType>string</txtDocType>
          <txtDocLang>string</txtDocLang>
        </File>
        <ProcessId>int</ProcessId>
        <FileObject>
          <Id>string</Id>
          <guid>string</guid>
          <Name>string</Name>
          <Alias>string</Alias>
          <Description>string</Description>
          <CreationTime>string</CreationTime>
          <MimeType>string</MimeType>
          <Crc>string</Crc>
          <Size>long</Size>
          <Compression>string</Compression>
          <ContentBase64>string</ContentBase64>
        </FileObject>
        <Form>
          <locale>string</locale>
          <title>string</title>
          <receiver>string</receiver>
          <sendTime>string</sendTime>
          <fields>
            <label>string</label>
            <localizedlabel>string</localizedlabel>
            <type>string</type>
            <value>string</value>
            <field xsi:nil="true" />
            <field xsi:nil="true" />
          </fields>
          <fields>
            <label>string</label>
            <localizedlabel>string</localizedlabel>
            <type>string</type>
            <value>string</value>
            <field xsi:nil="true" />
            <field xsi:nil="true" />
          </fields>
        </Form>
        <Url>string</Url>
        <UrlPublic>string</UrlPublic>
      </AddProcessResult>
    </AddProcessResponse>
  </soap12:Body>
</soap12:Envelope>