3.1.4.2.8 wxf:InvalidRepresentation

If a client sends a request for a Create or Put operation that would result in an invalid representation of an identity object, the server SHOULD reject the operation and return a SOAP fault with a fault subcode of wxf:InvalidRepresentation (as described in section 5.1 of [WXFR]).

If the representation was invalid because performing the operation would result in an identity object that violates a server-defined constraint, the server SHOULD return the fault with a fault reason and fault detail as specified in the following table.<24>

Element

Description

[Code]

soapenv:Sender

[Subcode]

wxf:InvalidRepresentation

[Action]

http://schemas.xmlsoap.org/ws/2004/09/transfer/fault

[Reason]

Constraint violation

[Details]

Implementation-defined and MAY be empty.<25>

If the representation was invalid because performing the operation specified a combination of identity attribute and identity attribute value that was already present on the identity object being targeted by the operation, the server SHOULD return the fault with a fault reason as specified in the following table. The fault detail MAY contain an AttributeTypeOrValueAlreadyExists element (section 2.2.3.5) as specified in the following table.<26>

Element

Description

[Code]

soapenv:Sender

[Subcode]

wxf:InvalidRepresentation

[Action]

http://schemas.xmlsoap.org/ws/2004/09/transfer/fault

[Reason]

The supplied attribute already exists.

[Details]

 <soapenv:Detail>       
       <AttributeTypeOrValueAlreadyExists>
           <AttributeTypeAndValue>
               <AttributeType>...</AttributeType>
               <AttributeValue>...</AttributeValue>
           </AttributeTypeAndValue>
           <AttributeTypeAndValue>
               <AttributeType>...</AttributeType>
           </AttributeTypeAndValue>
       </AttributeTypeOrValueAlreadyExists>
 </soapenv:Detail>

A server MAY<27> return the wxf:InvalidRepresentation fault for other server-defined reasons, with a fault detail of the server's choosing.

Element

Description

[Code]

soapenv:Sender

[Subcode]

wxf:InvalidRepresentation

[Action]

http://schemas.xmlsoap.org/ws/2004/09/transfer/fault

[Reason]

The supplied representation is invalid.

[Details]

Implementation-defined and MAY be empty.