[DAIS-WG] Inter-op doc issue 12 and faults

Mike Jackson michaelj at epcc.ed.ac.uk
Mon Aug 10 09:49:26 CDT 2009


Hi all,

Inter-op doc issue 12 states a requirement to add examples of XML 
for operation faults to complement the examples of operation arguments and 
return values. I'd an action to collect examples, so here, ahem, they 
are:

WS-DAI:

<ns1:InvalidResourceNameFault
   xmlns:ns1="http://www.ggf.org/namespaces/2005/12/WS-DAI"/>

<ns1:NotAuthorizedFault
   xmlns:ns1="http://www.ggf.org/namespaces/2005/12/WS-DAI"/>

<ns1:InvalidDatasetFormatFault
   xmlns:ns1="http://www.ggf.org/namespaces/2005/12/WS-DAI"/>

<ns1:InvalidExpressionFault
   xmlns:ns1="http://www.ggf.org/namespaces/2005/12/WS-DAI"/>

WS-DAIR examples:

<ns1:InvalidPositionFault
   xmlns:ns1="http://www.ggf.org/namespaces/2005/12/WS-DAIR"/>

<ns1:InvalidCountFault
   xmlns:ns1="http://www.ggf.org/namespaces/2005/12/WS-DAIR"/>

<ns1:InvalidSQLExpressionParameterFault
   xmlns:ns1="http://www.ggf.org/namespaces/2005/12/WS-DAIR"/>

They look more impressive on the wire:

<soapenv:Envelope
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
       <soapenv:Fault>
          <faultcode>soapenv:Server.generalException</faultcode>
          <faultstring/>
          <detail>
             <ns1:InvalidResourceNameFault 
xmlns:ns1="http://www.ggf.org/namespaces/2005/12/WS-DAI"/>
             <ns2:exceptionName 
xmlns:ns2="http://xml.apache.org/axis/">uk.org.ogsadai.service.axis.wsdai.core.InvalidResourceNameFaultType</ns2:exceptionName>
             <ns3:hostname 
xmlns:ns3="http://xml.apache.org/axis/">daiserver.epcc.ed.ac.uk</ns3:hostname>
          </detail>
       </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>

But as can be seen, it's virtually all SOAP-specific so inappropriate for 
the main body of the spec.

Cheers,

mike


More information about the dais-wg mailing list