Package addressbook.wsiftypes

Examples of addressbook.wsiftypes.Address


          "AddressBook");                                 // portTypeName

        AddressBook stub=(AddressBook)service.getStub(server+"Port", AddressBook.class);

        stub.addEntry(name1, addr1);
        Address resp1 = stub.getAddressFromName (name1);
        assertTrue(new AddressUtility(addr1).equals(resp1));
        assertTrue(expectedException==null);
       
      }
      catch (Exception e)
View Full Code Here


    }

    private void abAddEntry(ObjectMessage msg) throws JMSException {
       HashMap hm = (HashMap) msg.getObject();
       String name = (String)hm.get( "name" );   
       Address addr = (Address)hm.get( "address" );   
       ab.addEntry( name, addr );
       inout.addEntry( name, addr );
    }
View Full Code Here

    private void abAddEntryFL(ObjectMessage msg) throws JMSException {
       HashMap hm = (HashMap) msg.getObject();
       String first = (String)hm.get( "firstName" );   
       String last = (String)hm.get( "lastName" );   
       Address addr = (Address)hm.get( "address" );   
       ab.addEntry( first, last, addr );
       inout.addEntry( first, last, addr );
    }
View Full Code Here

      WSIFMessage output = operation.createOutputMessage();
      WSIFMessage fault = operation.createFaultMessage();

      doSyncOp( operation, input, output, context );
     
      Address addressResponse = (Address) output.getObjectPart("address");
      System.out.println("Found address = " + addressResponse);
      assertTrue( "doSyncOp addresses not equal!", addr1.equals(addressResponse) );

      // Executing executeRequestResponseOperation(input, output, fault )
      operation =
View Full Code Here

    private void address(Inout stub) throws Exception {
        stub.addEntry(name1.toString(), addr1);

        Mutablestring msName1 = new Mutablestring(name1);
        Address resp1 = stub.getAddressFromName(msName1);
        assertTrue(new AddressUtility(resp1).equals(addr1));

        Mutablestring msName = new Mutablestring("Pur*");
        resp1 = stub.getAddressFromName(msName);
        assertTrue(new AddressUtility(resp1).equals(addr1));
View Full Code Here

    }

    private void nullname(Inout stub) throws Exception {
        stub.addEntry(null, null);

        Address resp1 = stub.getAddressFromName((String) null);
        assertTrue(resp1 == null);

        Address resp2 = stub.getAddressFromName((Mutablestring) null);
        assertTrue(resp2 == null);

        // This next bit of code works with soap2.2 but not Axis. I've
        // commented it out because getAddressFromName((String)null) doesn't
        // work with either so I can't run this test with soap or axis.
View Full Code Here

    private void supc(WSIFService service, String portName) throws Exception {
        SubInout stub = (SubInout) service.getStub(portName, SubInout.class);

        stub.addEntry(name1, addr1);
        Mutablestring msName1 = new Mutablestring(name1);
        Address resp1 = stub.getAddressFromName(msName1);
        assertTrue(new AddressUtility(addr1).equals(resp1));

        boolean caught = false;
        try {
            stub.dubiousMethod();
        } catch (WSIFException e) {
            caught = true;
        }
        assertTrue(caught);

        stub.addEntry(name2, new SubAddress(addr2));
        Mutablestring msName2 = new Mutablestring(name2);
        Address resp2 = stub.getAddressFromName(msName2);
        assertTrue(new AddressUtility(addr2).equals(resp2));
    }
View Full Code Here

        GenericInout stub =
            (GenericInout) service.getStub(portName, GenericInout.class);

        stub.addEntry(name1, addr1);
        Mutablestring msName1 = new Mutablestring(name1);
        Address resp1 = stub.getAddressFromName(msName1);
        assertTrue(new AddressUtility(addr1).equals(resp1));
    }
View Full Code Here

     * ways.
     */
    private void whoami(Inout stub) throws Exception {
        float f = 1;
        int i = 1;
        Address a = new Address();
        SubAddress suba = new SubAddress();
        String resp;

        resp = stub.whoami("Hello");
        System.out.println("resp was " + resp + " expected String");
View Full Code Here

    private void inout(Inout stub) throws Exception {
        stub.addEntry(name1.toString(), addr1);

        Mutablestring msName1 = new Mutablestring(name1);
        Address resp1 = new AddressUtility(nulladdr).copy();
        boolean success = stub.getAddressFromName(msName1, resp1);
        assertTrue(success && new AddressUtility(resp1).equals(addr1));
    }
View Full Code Here

TOP

Related Classes of 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.