2.2.4.9 ServiceResult

Namespace: http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Broadcast.Pipe.Interface

A complex type that specifies the result of a protocol method. The protocol server returns this type to the protocol client containing either a successful Result element or an Error element.

 <xs:complexType name="ServiceResult" xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:sequence>
     <xs:element minOccurs="0" name="Error" nillable="true" type="tns2:ServiceError"/>
     <xs:element minOccurs="0" name="Result" nillable="true" type="xs:anyType"/>
   </xs:sequence>
 </xs:complexType>

Error: An optional ServiceError (section 2.2.4.8) element that specifies an error result of a protocol message response. This element MUST be NULL if the Result element is not NULL.

Result: An optional xs:anyType ([XMLSCHEMA1/2] section 3.4.7) element that specifies a successful result of a protocol message response. This element MUST be NULL if the Error element is not NULL.