Database Reference
In-Depth Information
For more information on how to create wCF services, go to
http://blah.winsmarts.com/2008-4-Host_a_WCF_Service_in_IIS_7_-and-amp;
_Windows_2008_-_The_right_way.aspx .
Note
Creating the custom data provider project
Open Microsoft Visual Studio 2013, create a new project, and from the available
templates pick Visual C# ➤ Office/SharePoint ➤ SharePoint Solutions ➤ SharePoint
2013 - empty SharePoint Project. Make sure you choose .neT Framework 4.5.
Provide a name, Location, and Solution name, and click OK. Create the project name
as VisioDataService.
In the next screen, enter the SharePoint site UrL for debugging and choose Deploy
as a farm solution for the trust level. Click on Finish.
right-click on the project, select the properties, and make sure that the Assembly
name and default namespace fit your situation.
right-click on the project again and click on Add Class. name the class as
VisioDataService.cs.
right-click on the project and choose Add Service reference...
From the wizard, click Discover and make sure there's a reference to the wCF
service you built earlier. Alternatively, you can enter the wCF UrL
( http://localhost:<portnumber>/VisioWcfServices.svc ) in the Address
text box. Provide the namespace as WcfDataService and click OK.
right-click on the project and choose Add reference... From the Add reference
window .neT tab, choose the System.web component and click OK.
right-click on the project again and choose Add reference... From the Add
reference window Browse tab, browse to the folder :\Windows\assembly\GAC_
MSIL\Microsoft.Office.Visio.Server\14.0.0.0__71e9bce111e9429c\
and choose the file Microsoft.Office.Visio.Server.dll and click OK.
At this stage, the project structure should resemble the one shown in Figure 4-64 .
 
 
Search WWH ::




Custom Search