Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
SDK Documentation
General Reference
Excel Web Services
 Loop-Back SOAP Calls and Direct Lin...
Community Content
In this section
Statistics Annotations (1)
Loop-Back SOAP Calls and Direct Linking

If you are writing code within Windows SharePoint Services 3.0, for example, a custom Web Part, custom aspx page, and so on, you should make direct calls to Microsoft.Office.Excel.Server.WebServices.dll. You do this by linking directly to Microsoft.Office.Excel.Server.WebServices.dll.

Using Simple Object Access Protocol (SOAP) from a Web server to communicate with the same Web server is also known as using loop-back SOAP calls. It is strongly recommended that you do not attempt to use loop-back SOAP calls. If you are writing code within Windows SharePoint Services 3.0, you should not use SOAP to call the Excel Web Services. You should instead link to Microsoft.Office.Excel.Server.WebServices.dll locally and make calls to it as you would any local assembly.

Location of Microsoft.Office.Excel.Server.WebServices.dll

You can find Microsoft.Office.Excel.Server.WebServices.dll in one of the following locations:

  • [drive:]\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI

  • Global assembly cache

Adding a Reference to Microsoft.Office.Excel.Server.WebServices.dll

To link directly to Microsoft.Office.Excel.Server.WebServices.dll in your project and call it from your code, you add a reference to it. On the computer where you have installed Microsoft Office SharePoint Server 2007, using the Add Reference dialog box in Microsoft Visual Studio, you can do one of the following:

  • Select Excel Web Services from the Component Name list in the .NET tab.

  • Browse to Microsoft.Office.Excel.Server.WebServices.dll located in:
    [drive:]\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Correction -- custom workflow does not support direct linking.      Siew Moi Khor - MSFT   |   Edit   |  

Shahar Prish [MSFT] corrected a bug in this topic in his blog: http://blogs.msdn.com/cumgranosalis/archive/2007/01/25/msdn-documentation-correction-direct-linking-the-excel-web-services-assembly-does-not-work-in-sharepoint-workflow.aspx

<Excerpt>

If you try to do it, you will get the following exception:

Microsoft.Office.Excel.Server.WebServices.ExcelServerApiException: Excel Web Services could not determine the Windows SharePoint Services site context of the calling process.

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker