Package org.apache.cxf.person

Examples of org.apache.cxf.person.Person


        ServerImpl svr = (ServerImpl)sf.create();

        // TEST POST/GETs

        Person p = new Person();
        p.setName("Dan");
        DataHandler handler = new DataHandler(new ByteArrayDataSource("foo".getBytes(),
                                                                      "application/octet-stream"));
        p.setPhoto(handler);
        impl.addPerson(p);

        byte[] res = doMethodBytes("http://localhost:9001/people", null, "GET", null);
        assertNotNull(res);
View Full Code Here


        ServerImpl svr = (ServerImpl)sf.create();

        // TEST POST/GETs

        Person p = new Person();
        p.setName("Dan");
        DataHandler handler = new DataHandler(new ByteArrayDataSource("foo".getBytes(),
                                                                      "application/octet-stream"));
        p.setPhoto(handler);
        impl.addPerson(p);

        byte[] res = doMethodBytes("http://localhost:9001/people", null, "GET", null);
        assertNotNull(res);
View Full Code Here

TOP

Related Classes of org.apache.cxf.person.Person

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.