updatePurchaseOrder()
void updatePurchaseOrder(PurchaseOrder purchaseOrder)
This method updates information in a purchase order.
Parameters
- purchaseOrder
- Format: PurchaseOrder XML
Example: Update a purchase order
This example shows a PurchaseOrder XML document containing the details to update in purchase order number PO987712.
<PurchaseOrder xmlns="http://xml.inomial.com/smile/2.xsd">
<AccountUSN>2142426747</AccountUSN>
<Number>PO987712</Number>
<Object/>
<Subscriptions>
<SubscriptionUSN>2142428503</SubscriptionUSN>
<SubscriptionUSN>2142428511</SubscriptionUSN>
</Subscriptions>
<ExclusiveInvoice>true</ExclusiveInvoice>
<PurchaseOrderId>2be191ff-9152-451f-8cb5-53c6633464f2</PurchaseOrderId>
<Deprecated>false</Deprecated>
</PurchaseOrder>
Results
This method does not return any output. There are no messages defined by this method.
Faults
NoSuchItemExceptionThis fault is returned when:
InvalidRequestException
- an account with the given AccountUSN can not be found
- a subscription with the given SubscriptionUSN can not be found
This fault is returned when:
- the USN provided is not an account
- the purchase order number is empty
- the object type values are invalid
- any subscriptions to be added to the purchase order does not belong to the account
- the purchase order number already exists in the account
Java client syntax
java -cp build/smilewsv2-client.jar [options]
com.inomial.smile.client.v2.examples.UpdatePurchaseOrder filename
- filename
- Purpose: Defines the filename of the PurchaseOrder XML document.
Note: For more information about the Java client and the options it
accepts, see Java client syntax.