W3C home > Mailing lists > Public > xml-dist-app@w3.org > January 2009

Using XML Name Value Pairs in Web Services

From: Brendan Laing <Brendan.Laing@hcl-axon.com>
Date: Tue, 27 Jan 2009 14:06:34 +0000
Message-ID: <CCA0A6D7ECC4B74C9CF222B0825F1FF003D45A76@UKISMC01.axongroup.co.uk>
To: <xml-dist-app@w3.org>
Hi, 

 

I'm looking for some advice. What are the drawbacks of implementing a
generic XSD for web services by using Name/Value Pairs as described
below:

 

<GenericServiceTicket>

 

 <ServiceTicketHeader>

  <TransactionID>80001234</TransactionID> 

  <Subject>WM18</Subject> 

  <UserStatus>E0001</UserStatus> 

  <Result>Result</Result> 

  <ExternalReference /> 

  <Channel>202</Channel>

 </ServiceTicketHeader>

 

 <ServiceSpecifics>

  <Value GroupID="" Name="JobTypeID">BULW</Value> 

  <Value GroupID="" Name="JobSubTypeID">TAIL</Value> 

  <Value GroupID="1" Name="BulkyCode">SOF</Value> 

  <Value GroupID="1" Name="Quantity">1</Value> 

 </ServiceSpecifics>

 

</GenericServiceTicket>

 

If we implemented these name/value pairs as full XSD schemas than we
would have 30-40 different schemas. By using Name/Value pairs we can
have one single generic schema. Intuitively this feels like misuse of
XML standards and the purpose of using XSD's and WSDL's but I have no
hard argument with our technical team since it is still XML. I would
like to be 100% certain that this will not create issues for support or
interoperability at some point in the future. 

 

Do you any experience implement this approach and later regretted it?

 

Brendan



DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect.

Axon Solutions Limited. Registered Office: Axon Centre, Church Road, Egham, Surrey, TW20 9QB, UK. Registered in England & Wales under Company No. 2976395. Axon Solutions Limited is a limited company.
Received on Tuesday, 27 January 2009 17:17:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:25 GMT