This commit is contained in:
Phillip Webb
2014-06-09 15:20:37 -07:00
parent 3975f8c931
commit f0c0f00089
10 changed files with 27 additions and 7 deletions

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package sample.ws;
import org.springframework.boot.SpringApplication;
@@ -28,4 +29,5 @@ public class SampleWsApplication {
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleWsApplication.class, args);
}
}

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package sample.ws;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
@@ -52,4 +53,5 @@ public class WebServiceConfig extends WsConfigurerAdapter {
public XsdSchema countriesSchema() {
return new SimpleXsdSchema(new ClassPathResource("META-INF/schemas/hr.xsd"));
}
}

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package sample.ws.endpoint;
import java.text.SimpleDateFormat;
@@ -76,4 +77,5 @@ public class HolidayEndpoint {
this.humanResourceService.bookHoliday(startDate, endDate, name);
}
}

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package sample.ws.service;
import java.util.Date;
@@ -20,4 +21,5 @@ import java.util.Date;
public interface HumanResourceService {
void bookHoliday(Date startDate, Date endDate, String name);
}

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package sample.ws.service;
import java.util.Date;
@@ -31,4 +32,5 @@ public class StubHumanResourceService implements HumanResourceService {
this.logger.info("Booking holiday for [{} - {}] for [{}] ", startDate, endDate,
name);
}
}