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, HandleWorkOrderEventOperation, 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 |
string(50) |
Req. |
Your username |
Password |
string(50) |
Req. |
Your password |
Operation |
HandleWorkOrderEventOperation |
Req. |
The operation object |
HandleWorkOrderEventOperation |
WorkOrderId |
int |
Req. |
The id of the work order which you wish to send an event for. |
OperationType |
string |
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 |
string(100) |
|
Name of a computer defined in the system. Used when deciding which printer to print on. |
Response XML
<?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 |
HandleWorkOrderEventResult |
|
HandleWorkOrderEventResult |
Success |
boolean |
True if the call succeeded, false otherwise |
Message |
string |
If the call failed, this field contains the error message |