Package de.netseeker.ejoe.test.client.stub.addressbook.wsiftypes

Examples of de.netseeker.ejoe.test.client.stub.addressbook.wsiftypes.Address


            // populate the input message
            input.setObjectPart( "firstName", "John" );
            input.setObjectPart( "lastName", "Smith" );

            // create an address object to populate the input
            Address address = new Address();
            address.setStreetNum( 20 );
            address.setStreetName( "Peachtree Avenue" );
            address.setCity( "Atlanta" );
            address.setState( "GA" );
            address.setZip( 39892 );
            Phone phone = new Phone();
            phone.setAreaCode( 701 );
            phone.setExchange( "555" );
            phone.setNumber( "8721" );
            address.setPhoneNumber( phone );

            input.setObjectPart( "address", address );

            // do the invocation
            System.out.println( "Adding address for John Smith..." );
View Full Code Here


            System.out.println( "Querying address for John Smith..." );
            if ( operation.executeRequestResponseOperation( input, output, fault ) )
            {
                // invocation succeeded
                // extract the address from the output message
                Address address = (Address) output.getObjectPart( "address" );
                assertNotNull( address );
                System.out.println( "Service returned the following address:" );
                System.out.println( address.getStreetNum() + " " + address.getStreetName() + ", " + address.getCity()
                        + " " + address.getState() + " " + address.getZip() + "; Phone: ("
                        + address.getPhoneNumber().getAreaCode() + ") " + address.getPhoneNumber().getExchange() + "-"
                        + address.getPhoneNumber().getNumber() );
            }
            else
            {
                fail( "invocation failed, check fault message" );
            }
View Full Code Here

TOP

Related Classes of de.netseeker.ejoe.test.client.stub.addressbook.wsiftypes.Address

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.