GetTask

This method will load a task if available. The task must be in progress by current user or released for any user to access, otherwize an exception will be thrown.

Parameters

Input-SessionId

The current session id as base64-string. This type is mandatory.

Input-Id

The id of the task. This must be a numeric value. This type is mandatory.

Input-Count

The current call-count of the session. This must be a numeric value. This type is mandatory.

SOAP implementation

Content type

text/xml; charset="utf-8";

Header

Action: "http://www.pointsharp.com/netid/server/portal/IServiceSoap/GetTask"

Request
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <GetTask xmlns="http://www.pointsharp.com/netid/server/portal">
            <Info>
                <SessionId></SessionId>
                <Id>10448</Id>
                <Count>2</Count>
            </Info>
        </GetTask>
    </s:Body>
</s:Envelope>
Response
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <GetTaskResponse xmlns="http://www.pointsharp.com/netid/server/portal">
            <GetTaskResult>
                <Task>...</Task>
                <Status>
                    <Code>Success</Code>
                    <Description>Success</Description>
                </Status>
            </GetTaskResult>
        </GetTaskResponse>
    </s:Body>
</s:Envelope>

REST implementation

Content type

application/json; charset="utf-8";

Method

POST

URI

/api/task/get

Request
{
    "SessionId": "",
    "Id": "10448",
    "Count": "2"
}
Response
{
    "Task": {
        "..."
    },
    "Status": {
        "Code": "Success",
        "Description": "Success"
    }
}