From 8a6e0b356bad1fa5b04202bb26ebd92ab8fe7d54 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Sat, 12 May 2007 16:19:13 +0000 Subject: [PATCH] --- src/docbkx/tutorial.xml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/docbkx/tutorial.xml b/src/docbkx/tutorial.xml index e358d211..163d1033 100644 --- a/src/docbkx/tutorial.xml +++ b/src/docbkx/tutorial.xml @@ -515,8 +515,7 @@ - - + package com.mycompany.hr.ws; @@ -543,9 +542,6 @@ public class HolidayEndpoint extends AbstractJDomPayloadEndpoint { public HolidayEndpoint(HumanResourceService humanResourceService) { this.humanResourceService = humanResourceService; - } - - public void init() throws JDOMException { Namespace namespace = Namespace.getNamespace("hr", "http://mycompany.com/hr/schemas"); startDateExpression = XPath.newInstance("//hr:StartDate"); startDateExpression.addNamespace(namespace); @@ -571,11 +567,7 @@ public class HolidayEndpoint extends AbstractJDomPayloadEndpoint { The HolidayEndpoint requires the HumanResourceService business service to operate, so we use the constructor to inject it. - - - - - The initialization method init, which sets up XPath expressions + Next, we set up XPath expressions using the JDOM API. There are three expressions: //hr:StartDate for extracting the >StartDate< text value, //hr:EndDate for @@ -649,7 +641,7 @@ public class HolidayEndpoint extends AbstractJDomPayloadEndpoint { - +