Ongoing WMS logo

Ongoing WMS Developer

HandleWorkOrderEvent

Handles a work order event. Exactly what happens when this function is called depends on how the system has been set up. By default, the only thing that happens is that the call is logged.

Tags: HandleWorkOrderEvent, Operation, HandleWorkOrderEventResponse, HandleWorkOrderEventResult

Request XML

POST /xxx/automation.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/Automation/HandleWorkOrderEvent"

<?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>
        <HandleWorkOrderEvent xmlns="http://ongoingsystems.se/Automation">
            <UserName>string</UserName>
            <Password>string</Password>
            <Operation>
                <WorkOrderId>int</WorkOrderId>
                <OperationType>string</OperationType>
                <ComputerName>string</ComputerName>
            </Operation>
        </HandleWorkOrderEvent>
    </soap:Body>
</soap:Envelope>
+

Request specification

HandleWorkOrderEvent
UserName str(50) Req. Your username.
Password str(50) Req. Your password.
Operation object Req. An Operation object
Operation
WorkOrderId int Req. The id of the work order which you wish to send an event for.
OperationType str Req The type of operation. This should be a string to specify the type of event, it makes it possible to handle multiple different events.
ComputerName str(100) Optional Name of a computer defined in the system. Used when deciding which printer to print on.

Response XML

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>
        <HandleWorkOrderEventResponse xmlns="http://ongoingsystems.se/Automation">
            <HandleWorkOrderEventResult>
                <Success>boolean</Success>
                <Message>string</Message>
            </HandleWorkOrderEventResult>
        </HandleWorkOrderEventResponse>
    </soap:Body>
</soap:Envelope>
+

Response specification

HandleWorkOrderEventResponse
HandleWorkOrderEventResult obj A HandleWorkOrderEventResult object
HandleWorkOrderEventResult
Message str If the call failed, this field contains the error message
Success bool True if the call succeeded, false otherwise