W3C home > Mailing lists > Public > xmlp-comments@w3.org > July 2002

Message in Example 2 in Primer doesn't match prose exactly

From: Peter Drayton <peter@razorsoft.com>
Date: Thu, 18 Jul 2002 23:08:02 -0700
To: <xmlp-comments@w3.org>
Message-ID: <001d01c22eea$a55d8630$56a6accf@razorsoft.com>

SOAP Version 1.2 Part 0: Primer, Section 2.2.1, Example 2:

The prose describing the message says that the message is returned from
the travel service, requesting clarification on the choice of airports
in the departing city. However, the message itself doesn't (a) contain
any indication that it is a request for clarification; (b) indicate if
the request pertains to the outbound leg or the inbound leg; (c)
indicate if the request pertains to the departure or arrival airport of
a specific leg.

It is possible to claim that the target node provides the context for
processing the message, i.e the message might be sent to different
endpoints depending on which leg & choice of arrival/departure requires
clarification, and the endpoints might know that they are participating
in a conversational exchange and understand the flow, but I don't think
this is very clear. It also seems strange to me that the same
<itinerary> element is sent in both directions, with different child
elements and meaning. I don't think this is as clear as it could be for
a primer.

I'd suggest modifying example 2 to make the flow of messages back and
forth clearer. For example:

<?xml version='1.0' ?>
<env:Envelope xmlns:env="http://www.w3.org/2002/06/soap-envelope"> 
  <m:reservation xmlns:m="http://travelcompany.example.org/reservation" 
  <n:passenger xmlns:n="http://mycompany.example.com/employees"
   <n:name>John Q. Public</n:name>
      JFK LGA EWR 
      JFK LGA EWR 

This structure mirrors the prose, presuming the prose meant "...namely
the choice of airports in the departing city *on both the outbound and
the inbound legs*". If the prose meant to only request clarification on
one of the legs, the sample could obviously be simplified.

Received on Friday, 19 July 2002 02:08:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:13 UTC