Search in sources :

Example 1 with Order

use of samples.services.xsd.Order in project camel by apache.

the class MarshalTest method createBuyStocksDocument.

private BuyStocksDocument createBuyStocksDocument() {
    BuyStocksDocument document = BuyStocksDocument.Factory.newInstance();
    BuyStocks payload = document.addNewBuyStocks();
    Order order = payload.addNewOrder();
    order.setSymbol("IBM");
    order.setBuyerID("cmueller");
    order.setPrice(140.34);
    order.setVolume(2000);
    return document;
}
Also used : Order(samples.services.xsd.Order) BuyStocks(samples.services.xsd.BuyStocksDocument.BuyStocks) BuyStocksDocument(samples.services.xsd.BuyStocksDocument)

Example 2 with Order

use of samples.services.xsd.Order in project camel by apache.

the class XmlBeansDslTest method createBuyStocksDocument.

private BuyStocksDocument createBuyStocksDocument() {
    BuyStocksDocument document = BuyStocksDocument.Factory.newInstance();
    BuyStocks payload = document.addNewBuyStocks();
    Order order = payload.addNewOrder();
    order.setSymbol("IBM");
    order.setBuyerID("cmueller");
    order.setPrice(140.34);
    order.setVolume(2000);
    return document;
}
Also used : Order(samples.services.xsd.Order) BuyStocks(samples.services.xsd.BuyStocksDocument.BuyStocks) BuyStocksDocument(samples.services.xsd.BuyStocksDocument)

Aggregations

BuyStocksDocument (samples.services.xsd.BuyStocksDocument)2 BuyStocks (samples.services.xsd.BuyStocksDocument.BuyStocks)2 Order (samples.services.xsd.Order)2