cancelOrder()

void cancelOrder(string orderNumber)

This method cancels the given order and removes it from the group.

Parameters

orderNumber
Format: string
Purpose: Specifies the number of the order to cancel.

Results

This method does not return a result for a successful cancellation. An exception will be generated if the cancellation attempt fails.

There are no messages defined by this method.

Faults

NoSuchItemException

This fault is returned when the order group ID does not exist.

OrderException

This fault is returned when an error occurs trying to cancel the order.

InvalidRequestException

This fault is returned when the order cannot be cancelled because it has already been placed or cancelled.

Java client syntax

java -cp build/smilewsv2-client.jar [options]
 com.inomial.smile.client.v2.examples.CancelOrder orderNumber
orderNumber
Purpose: Specifies the number of the order to cancel.
Note: For more information about the Java client and the options it accepts, see Java client syntax.