W3C home > Mailing lists > Public > www-ws-desc@w3.org > May 2004

Proposal: map HTTP fault codes to interface faults

From: <paul.downey@bt.com>
Date: Thu, 27 May 2004 17:47:27 +0100
Message-ID: <2B7789AAED12954AAD214AEAC13ACCEF0FFF228F@i2km02-ukbr.domain1.systemhost.net>
To: <www-ws-desc@w3.org>

in fulfilment of my Action Item from today's telcon, here is a short 
proposal for mapping HTTP binding faults to WSDL interface faults.

Proposed Syntax

we copy/re-use the SOAP fault component as follows:

    <http:binding methodDefault="xsd:string"? />

    <fault ref="xs:QName"
           http:codes="list of xs:int" >
      <documentation />?


Whilst this doesn't provide wild-carding or ranges of fault codes, 
it does provide the ability for a list of individual fault codes to 
be grouped, described and targeted at an individual abstract fault.

I see this as being a low cost, but useful feature.


  - faults are a useful abstraction regardless of binding, it is 
    possible for a toolkit to present a fault code such as '403' as 
    something meaningful to an application.

  - describing HTTP faults at the abstract level is orthogonal 
    with our SOAP/HTTP binding.

  - this continues to encourage authors of WSDL documents to 
    describe faults at the abstract level for any binding, and not 
    just for SOAP bindings.

  - should we allow the HTTP binding be reused in another binding, 
    this would allow HTTP server generated errors such as BA failures,
    to be also translated into application level faults at the same
    level as the serialisation faults.

  - it is possible that an interface which relies upon faults is 
    presented as both a SOAP/HTTP and a HTTP binding or moved from
    SOAP/HTTP to another binding such as HTTP. Not being able to 
    generate the abstract level faults in HTTP may preclude this 

Paul Sumner Downey
Web Services Integration
BT Exact
Received on Thursday, 27 May 2004 12:47:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:54:48 UTC