/**
 * ObjectRiver Inc, http://www.objectriver.net/
 * Copyright (c) 2002-2013, ObjectRiver(tm). All rights reserved.
 */
Application Nested = com.companyname {
    Endpoint  NestedInterface= 1 {
        Exception NestedException {};
        Enumeration MyMonth { Jan=1, Feb=2, Mar=3, Apr=4, May=5, Jun=6, Jul=7, Aug=8, Sept=9, Oct=10, Nov=11, Dec=12 };
        Enumeration MyDay { Sun=1, Mon=2, Tues=3, Wed=4, Thu=5, Fri=6, Sat=7 };
        Bean MyTime {
            int hours;
            int minutes;
            int seconds;
        };
        Bean MyDate {
            int year;
            MyMonth month;
            MyDay day;
        }   ;
        Bean MyDateTime {
            MyDate my_date; // date sfdc reserved
            MyTime my_time; // time sfdc reserved
        };

        Server Stateless {
            @Path("nested1")
            @Produces(JSON)
            @Consumes(JSON)
            @POST  MyDateTime[] nested1(@In MyDateTime arg1, @In MyDateTime arg2, @In MyDateTime arg3) raises NestedException ;

            @Path("nested2")
            @Produces(JSON)
            @Consumes(JSON)
            @POST  MyDateTime nested2(@In MyDateTime arg1, @In MyDateTime[] arg2, @In MyDateTime[] arg3) raises NestedException ;
        };
    };
};