3.1.4.11 ExpandCollapseOutline

This operation is used to toggle the outline state in the workbook.

 <wsdl:operation name="ExpandCollapseOutline">
   <wsdl:input wsam:Action="http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/ExpandCollapseOutline" message="tns:ExcelServiceSoap_ExpandCollapseOutline_InputMessage"/>
   <wsdl:output wsam:Action="http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/ExpandCollapseOutlineResponse" message="tns:ExcelServiceSoap_ExpandCollapseOutline_OutputMessage"/>
   <wsdl:fault wsam:Action="http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/ExpandCollapseOutlineExcelServerMessageFault" name="ExcelServerMessageFault" message="tns:ExcelServiceSoap_ExpandCollapseOutline_ExcelServerMessageFault_FaultMessage"/>
 </wsdl:operation>

The protocol client sends an ExcelServiceSoap_ExpandCollapseOutline_InputMessage request message, and the protocol server responds with an ExcelServiceSoap_ExpandCollapseOutline_OutputMessage response message, as follows:

§ The protocol server expands the outline state if the outline is in a collapsed outline state. The protocol server collapses the outline state if the outline is in an expanded outline state.

This operation is a state changing operation on the protocol server.

In the event of an application error on the protocol server during this operation, a SOAP fault is returned, as specified in section 2.2.2. The Id element of the ExcelServerMessage SHOULD<16> be one of the values specified in section 2.2.2.1.