Package com.tuscanyscatours.emailgateway

Examples of com.tuscanyscatours.emailgateway.EmailType


            String status = creditCardPayment.authorize(customer.getCreditCard(), amount);

            com.tuscanyscatours.emailgateway.ObjectFactory emailFactory =
                new com.tuscanyscatours.emailgateway.ObjectFactory();
            EmailType email = emailFactory.createEmailType();
            email.setTitle("Payment Received");
            email.setTo(customerId);

            emailGateway.sendEmail(email);

            return status;
        } catch (CustomerNotFoundException ex) {
View Full Code Here


    @Test
    public void testEmailGateway() {
        SCAClient client = (SCAClient)node;
        EmailGateway cc = client.getService(EmailGateway.class, "EmailGatewayClient");
        ObjectFactory objectFactory = new ObjectFactory();
        EmailType email = objectFactory.createEmailType();
        email.setTo("Fred");
        email.setTitle("An email");
        email.setBody("A message");
        System.out.println(cc.sendEmail(email));
    }
View Full Code Here

        String status = creditCardPayment.authorize(ccDetails, amount);

        com.tuscanyscatours.emailgateway.ObjectFactory emailFactory =
            new com.tuscanyscatours.emailgateway.ObjectFactory();
        EmailType email = emailFactory.createEmailType();
        email.setTitle("Payment Received");
        email.setTo(customerId);

        emailGateway.sendEmail(email);

        return status;
    }
View Full Code Here

TOP

Related Classes of com.tuscanyscatours.emailgateway.EmailType

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.