use of org.codice.alliance.nsili.mockserver.impl.requests.OrderRequestImpl in project alliance by codice.
the class OrderMgrImpl method order.
@Override
public OrderRequest order(OrderContents order, NameValue[] properties) throws ProcessingFault, InvalidInputParameter, SystemFault {
OrderRequestImpl orderRequest = new OrderRequestImpl();
try {
_poa().activate_object_with_id("order".getBytes(Charset.forName(ENCODING)), orderRequest);
} catch (ServantAlreadyActive | ObjectAlreadyActive | WrongPolicy e) {
LOGGER.warn("Order : Unable to activate orderRequest object.", e);
}
org.omg.CORBA.Object obj = _poa().create_reference_with_id("order".getBytes(Charset.forName(ENCODING)), OrderRequestHelper.id());
OrderRequest queryRequest = OrderRequestHelper.narrow(obj);
return queryRequest;
}
Aggregations