Search in sources :

Example 1 with Address

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

the class JAXWSBenchmarkComplex method getInvalid.

private Customer getInvalid(long id) {
    Address address = new Address();
    address.setCity("New York");
    address.setState("New York");
    address.setZip("10010");
    address.setStreet("Park Street");
    PhoneNumber number1 = new PhoneNumber();
    number1.setAreaCode("555");
    number1.setExchange("867");
    number1.setLine("5309");
    Customer customer = new Customer();
    customer.setAddress(address);
    customer.getContactNumbers().add(number1);
    customer.setId(id);
    return customer;
}
Also used : Address(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address) InvoiceCustomer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer) Customer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Customer) PhoneNumber(org.jboss.test.ws.jaxws.benchmark.test.complex.types.PhoneNumber)

Example 2 with Address

use of org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address 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 Address

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

the class JAXWSBenchmarkComplex method getAlCapone.

private Customer getAlCapone(int r) {
    Name name = new Name();
    name.setFirstName("Al");
    name.setLastName("Capone");
    Address address = new Address();
    address.setCity("Chicago");
    address.setState("Illinois");
    address.setZip("60619");
    address.setStreet("7244 South Prairie Avenue.");
    PhoneNumber number1 = new PhoneNumber();
    number1.setAreaCode("888");
    number1.setExchange("722");
    number1.setLine("7322");
    Customer customer = new Customer();
    customer.setName(name);
    customer.setAddress(address);
    customer.getContactNumbers().add(number1);
    customer.setId(r + 1);
    return customer;
}
Also used : Address(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address) InvoiceCustomer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer) Customer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Customer) 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 4 with Address

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

the class JAXWSBenchmarkComplex method getFredJackson.

private Customer getFredJackson(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");
    Customer customer = new Customer();
    customer.setId(r - 1);
    customer.setName(name);
    customer.setAddress(address);
    customer.getContactNumbers().add(number1);
    customer.getContactNumbers().add(number2);
    return customer;
}
Also used : Address(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address) InvoiceCustomer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer) Customer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Customer) 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 5 with Address

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

the class ComplexTest method getAlCapone.

private Customer getAlCapone() {
    Name name = new Name();
    name.setFirstName("Al");
    name.setLastName("Capone");
    Address address = new Address();
    address.setCity("Chicago");
    address.setState("Illinois");
    address.setZip("60619");
    address.setStreet("7244 South Prairie Avenue.");
    PhoneNumber number1 = new PhoneNumber();
    number1.setAreaCode("888");
    number1.setExchange("722");
    number1.setLine("7322");
    Customer customer = new Customer();
    customer.setName(name);
    customer.setAddress(address);
    customer.getContactNumbers().add(number1);
    customer.setId(125);
    return customer;
}
Also used : Address(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address) InvoiceCustomer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer) Customer(org.jboss.test.ws.jaxws.benchmark.test.complex.types.Customer) 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

Address (org.jboss.test.ws.jaxws.benchmark.test.complex.types.Address)10 InvoiceCustomer (org.jboss.test.ws.jaxws.benchmark.test.complex.types.InvoiceCustomer)10 PhoneNumber (org.jboss.test.ws.jaxws.benchmark.test.complex.types.PhoneNumber)10 QName (javax.xml.namespace.QName)8 Customer (org.jboss.test.ws.jaxws.benchmark.test.complex.types.Customer)8 Name (org.jboss.test.ws.jaxws.benchmark.test.complex.types.Name)8