Sun Java Solaris Communities My SDN Account Join SDN
 
Round 4

Fault Test Specifications

 

Guidelines:

  • SOAP Version 1.1 will be used.

  • Fault code for all the faults thrown in 1., 2., 3. and 4. must be env:Server.

  • Content of the faults thrown by an operation are passed as parameter to the operation.

  1. simple-rpc-encoded - Faults (rpc/encoded) with members as simple types and arrays of simple types
  2. simple-doc-literal - Faults (doc/literal) with members as simples types and arrays of simple types
  3. complex-rpc-encoded - Faults (rpc/encoded) with members as complex types and arrays of complex types
  4. complex-doc-literal - Faults (doc/literal) with members as complex types and arrays of complex types
  5. soapfault - Fault codes as defined in sec 4.4.1 of SOAP 1.1 [1]

simple-rpc-encoded/simple-doc-literal

Method Description
echoEmptyFault Throws an empty fault
echoStringFault Throws fault with a xsd:string member.
echoIntArrayFault Throws fault with an xsd:int[] member.
echoMultipleFaults1 Throws empty fault when the parameter = 1 or not 2 or not 3.
Throws fault with a xsd:string member when the parameter =  2.
Throws fault with a xsd:float[] member when the parameter = 3.
echoMultipleFaults2 Throws fault with xsd:float member when the parameter = 1 or not 2 or not 3.
Throws fault with xsd:string member when the parameter = 2.
Throws fault with xsd:string[] parameters when the parameter = 3
echoMultipleFaults3 Throws two faults, each with xsd:string parameters and same part names. Each part name is bound to a different namespace.
Throws SimpleFault1 (with param1) when the parameter = 1 or not 2.
Throws SimpleFault2 (with param2) when the parameter = 2.
echoMultipleFaults4 Throws fault with xsd:int parameter when the parameter = 1 or not 2.
Throws fault with an int enumeration when the parameter = 2.

 

complex-rpc-encoded/complex-doc-literal

Method Description
echoSOAPStructFault Throws a fault with an embedded complex type.
echoBaseStructFault Throws a fault with a base complex type.
echoExtendedStructFault Throws a fault with an en extended complex type.
echoMultipleFaults1 Throws a fault with embedded complex type when parameter = 1 or not 2.
Throws a fault with another complex type (BaseStructFault) when parameter = 2.
echoMultipleFaults2 Throws a fault with a base complex type when parameter = 1 or not 2 or not 3.
Throws a fault with an extended complex type when parameter = 2.
Throws a fault with a double extended complex type when parameter = 3.

 

soapfault

Method Description
echoVersionMismatch Server must throw a fault with VersionMismatch fault code when finds an invalid namespace for the SOAP envelope.
echoMustUnderstandFault Server must throw a fault with MustUnderstand fault code when a mustUnderstand="1" header is not understood.

 

[1] http://www.w3.org/TR/SOAP/

For more information, please contact web master.

Related Links