Stylus Studio XML Editor

Table of contents

Appendices

3.7 Specifying HTTP Error Codes for Faults

Specifying HTTP Error Codes for Faults

Description[top]

Description

For every Interface Fault component contained in an Interface component, an HTTP error code MAY be defined. It represents the error code that will be used by the service in case the fault needs to be returned.

Relationship to WSDL Component Model[top]

Relationship to WSDL Component Model

The HTTP Fault binding adds the following property to the WSDL component model (as defined in [WSDL-PART1]):

  • {http error status code}, an integer representing a error Status-Code as defined by [RFC2616], to the Binding Fault component. The value of this property identifies the error code that the service will use in case the fault is returned. If empty, no claim is made by the service.

XML Representation[top]

XML Representation
<definitions >
  <binding >
    <fault ref="xs:QName"
           whttp:code="xs:int" />
    </fault>*
  </binding>
</definitions>

The XML representation for binding a SOAP Fault are two attribute information items with the following Infoset properties:

  • whttp:code OPTIONAL attribute information item

    • A [local name] of code

    • A [namespace name] of http://www.w3.org/2004/08/wsdl/http

    • A type of wsdls:int

Mapping Between Component Properties and XML Representation[top]

Mapping Between Component Properties and XML Representation

See [tab_HTTP_Fault_Mapping].

1tab_HTTP_Fault_Mapping Mapping between Binding Fault Component Extension Properties and XML Representation Property Mapping
11{http error status code} 11The actual value of the whttp:code attribute information item.