Package org.apache.axis2.jibx.library.wrapped.client

Examples of org.apache.axis2.jibx.library.wrapped.client.LibraryStub.addBook()


   
    @Test
    public void test1() throws Exception {
        LibraryStub stub = new LibraryStub(UtilServer.getConfigurationContext(), "http://127.0.0.1:" + UtilServer.TESTING_PORT + "/axis2/services/library");
       
        stub.addBook("Paperback", "0618918248", new String[] { "Richard Dawkins" }, "The God Delusion");
       
        Book book = stub.getBook("0618918248");
        assertNotNull(book);
        assertEquals("Paperback", book.getType());
        assertEquals("0618918248", book.getIsbn());
View Full Code Here


   
    @Test
    public void test() throws Exception {
        LibraryStub stub = new LibraryStub(UtilServer.getConfigurationContext(), "http://127.0.0.1:" + UtilServer.TESTING_PORT + "/axis2/services/library");
       
        stub.addBook(new AddBookRequest(new Book("Paperback", "0618918248", "The God Delusion", new String[] { "Richard Dawkins" })));
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.