3.1.4.8 CloseWorkbook

This operation is used to close a session (2) or leave an edit session on the protocol server.

 <wsdl:operation name="CloseWorkbook">
   <wsdl:input wsam:Action="http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/CloseWorkbook" message="tns:ExcelServiceSoap_CloseWorkbook_InputMessage"/>
   <wsdl:output wsam:Action="http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/CloseWorkbookResponse" message="tns:ExcelServiceSoap_CloseWorkbook_OutputMessage"/>
   <wsdl:fault wsam:Action="http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/CloseWorkbookExcelServerMessageFault" name="ExcelServerMessageFault" message="tns:ExcelServiceSoap_CloseWorkbook_ExcelServerMessageFault_FaultMessage"/>
 </wsdl:operation>

The protocol client sends an ExcelServiceSoap_CloseWorkbook_InputMessage request message, and the protocol server responds with an ExcelServiceSoap_CloseWorkbook_OutputMessage response message.

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<13> be one of the values specified in section 2.2.2.1.