Posts

ASP.NET Web API Tutorial for Beginners

ASP.NET Web API Tutorial for Beginners 1.  What is ASP.NET Web API  |  Text  |  Slides 2.  Creating a Web API Project  |  Text  |  Slides 3.  HTTP GET PUT POST DELETE  |  Text  |  Slides 4.  ASP.NET Web API and SQL Server  |  Text  |  Slides 5.  ASP.NET Web API Content Negotiation  |  Text  |  Slides 6.  ASP.NET Web API MediaTypeFormatter  |  Text  |  Slides 7.  Implementing post method in ASP.NET Web API  |  Text  |  Slides 8.  Implementing Delete method in ASP.NET Web API  |  Text  |  Slides 9.  Implementing Put method in ASP.NET Web API  |  Text  |  Slides 10.  Custom method names in ASP.NET Web API  |  Text  |  Slides 11.  ASP.NET Web API query string parameters  |  Text  |  Slides 12.  From...

File Net Insert Document

public static void insertDocument ( Connection conn , String domainName ) { // Get domain. Domain domain = Factory . Domain . fetchInstance ( conn , domainName , null ); ObjectStoreSet osColl = domain . get_ObjectStores (); // Get each object store. Iterator iterator = osColl . iterator (); while ( iterator . hasNext ()) { // Get next object store. ObjectStore objStore = ( ObjectStore ) iterator . next (); // Get the display name of the object store. String objStoreName = objStore . get_DisplayName (); System . out . println ( "Object store name = " + objStoreName ); // Create a document instance. Document doc = Factory . Document . createInstance ( objStore , ClassNames . DOCUMENT ); // Set document properties. doc . getProperties (). putValue ( "DocumentTitle" , "New Document via Java API" ); doc . set_Mi...

Filnet P8 Connection

Image
Renaming the C# Source File When you created the project, Visual Studio generated a C# source file,  Program.cs , by default. Rename this file to better reflect its purpose. In the Solution Explorer pane, right-click  Program.cs  and click  Rename . Type over the existing name, for example,  P8Connector.cs . In the prompt for renaming all project references to this file, click  Yes . Coding the Connection If the C# source file is not already open, double-click its name in the Solution Explorer pane. In the code pane, immediately above the  namespace  line (such as  namespace P8ApiSample ), insert the following code, replacing the existing  using statements. using System; using System.Collections.Generic; using System.Diagnostics; using FileNet.Api.Authentication; using FileNet.Api.Core; using FileNet.Api.Util; In the code pane, within the class definition (such as within  class P8Connector ), insert the followi...