Search in sources :

Example 1 with InvoiceCustomer

use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer in project jbossws-cxf by jbossws.

the class JAXWSBenchmarkComplex method testInvoiceRegistration.

public void testInvoiceRegistration(Registration port, int r) throws Exception {
    InvoiceCustomer customer = getInvoiceFredJackson(r);
    customer.getReferredCustomers().add(getJohnDoe(r));
    customer.getReferredCustomers().add(getAlCapone(r));
    port.registerForInvoice(customer);
}
Also used : InvoiceCustomer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer)

Example 2 with InvoiceCustomer

use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer in project jbossws-cxf by jbossws.

the class JAXWSBenchmarkComplex method getInvoiceFredJackson.

private InvoiceCustomer getInvoiceFredJackson(int r) {
    Name name = new Name();
    name.setFirstName("Fred");
    name.setMiddleName("Jones");
    name.setLastName("Jackson");
    Address address = new Address();
    address.setCity("Atlanta");
    address.setState("Georgia");
    address.setZip("53717");
    address.setStreet("Yet Another Peach Tree St.");
    PhoneNumber number1 = new PhoneNumber();
    number1.setAreaCode("123");
    number1.setExchange("456");
    number1.setLine("7890");
    PhoneNumber number2 = new PhoneNumber();
    number1.setAreaCode("333");
    number1.setExchange("222");
    number1.setLine("1234");
    InvoiceCustomer customer = new InvoiceCustomer();
    customer.setId(r - 1);
    customer.setName(name);
    customer.setAddress(address);
    customer.getContactNumbers().add(number1);
    customer.getContactNumbers().add(number2);
    customer.setCycleDay(10);
    return customer;
}
Also used : InvoiceCustomer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer) Address(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address) PhoneNumber(org.jboss.test.ws.jaxws.benchmark.test.complex.types.PhoneNumber) Name(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Name) QName(javax.xml.namespace.QName)

Example 3 with InvoiceCustomer

use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer in project jbossws-cxf by jbossws.

the class ComplexTest method testInvoiceRegistration.

public void testInvoiceRegistration(Registration port) throws Exception {
    InvoiceCustomer customer = getInvoiceFredJackson();
    customer.getReferredCustomers().add(getJohnDoe());
    customer.getReferredCustomers().add(getAlCapone());
    port.registerForInvoice(customer);
}
Also used : InvoiceCustomer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer)

Example 4 with InvoiceCustomer

use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer in project jbossws-cxf by jbossws.

the class ComplexTest method getInvoiceFredJackson.

private InvoiceCustomer getInvoiceFredJackson() {
    Name name = new Name();
    name.setFirstName("Fred");
    name.setMiddleName("Jones");
    name.setLastName("Jackson");
    Address address = new Address();
    address.setCity("Atlanta");
    address.setState("Georgia");
    address.setZip("53717");
    address.setStreet("Yet Another Peach Tree St.");
    PhoneNumber number1 = new PhoneNumber();
    number1.setAreaCode("123");
    number1.setExchange("456");
    number1.setLine("7890");
    PhoneNumber number2 = new PhoneNumber();
    number1.setAreaCode("333");
    number1.setExchange("222");
    number1.setLine("1234");
    InvoiceCustomer customer = new InvoiceCustomer();
    customer.setId(123);
    customer.setName(name);
    customer.setAddress(address);
    customer.getContactNumbers().add(number1);
    customer.getContactNumbers().add(number2);
    customer.setCycleDay(10);
    return customer;
}
Also used : InvoiceCustomer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer) Address(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address) PhoneNumber(org.jboss.test.ws.jaxws.benchmark.test.complex.types.PhoneNumber) Name(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Name) QName(javax.xml.namespace.QName)

Aggregations

InvoiceCustomer (org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer)4 QName (javax.xml.namespace.QName)2 Address (org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address)2 Name (org.jboss.test.ws.jaxws.benchmark.test.complex.types.Name)2 PhoneNumber (org.jboss.test.ws.jaxws.benchmark.test.complex.types.PhoneNumber)2