From 5a1997fc2395916a54533715753db1b4fc8ff554 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Mon, 23 Apr 2007 19:50:47 +0000 Subject: [PATCH] --- src/docbkx/tutorial.xml | 2 +- src/docbkx/why-contract-first.xml | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/docbkx/tutorial.xml b/src/docbkx/tutorial.xml index 7a1de46d..8da5a83f 100644 --- a/src/docbkx/tutorial.xml +++ b/src/docbkx/tutorial.xml @@ -519,7 +519,7 @@ </web-app> - We could have made the servlet more restrictive by using the url pattern /holidayService, + We could have made the servlet more restrictive by using the url pattern /humanresources, but this will suffice for now. diff --git a/src/docbkx/why-contract-first.xml b/src/docbkx/why-contract-first.xml index 210ce181..a0e58896 100644 --- a/src/docbkx/why-contract-first.xml +++ b/src/docbkx/why-contract-first.xml @@ -172,10 +172,20 @@ public class Passenger {
Fragility - If you use a contract-last development style, you will have no guarantee that the contract stays - constant over time. Each redeployment of the service can possibly result in a different contract. - Additionally, an upgrade of the SOAP stack used, or a migration to a different SOAP stack can also - change said contract. + As mentioned earlier, the contract-last development style results in your web service contract + (WSDL and your XSD) being generated from your Java contract (usually an interface). If you are using + this approach, you will have no guarantee that the contract stays constant over time. Each time you + change your Java contract and redeploy it, there might be subsequent changes to the web service + contract. + + + Aditionally, not all SOAP stacks generate the same web service contract from a Java contract. This + means changing your current SOAP stack for a different one (for whatever reason), might also change + your web service contract. + + + When a web service contract changes, users of the contract will have to be instructed to obtain + the new contract and potentially change their code to accommodate for any changes in the contract. In order for a contract to be useful, it must remain constant for as long as possible. If a contract