Documentum Foundation Services service pack is coming. It will contain many performance improvements, as well as .NET layer support which will allow DFS developers to create .NET proxies for their custom services and invoke services through similar to DFS Java API.
Here is rough example of .NET client written in C#:
……
ContextFactory contextFactory = ContextFactory.Instance;
IServiceContext serviceContext = contextFactory.NewContext();ContentTransferProfile transferProfile = new ContentTransferProfile();
transferProfile.TransferMode = ContentTransferMode.MTOM;RepositoryIdentity repoId = new RepositoryIdentity(repository, username, password, domain);
serviceContext.AddIdentity(repoId);
serviceContext.SetProfile(transferProfile);// Registering context into Context Registry Service
IServiceContext registeredContext = contextFactory.Register(serviceContext);// Now we create and call a service
ServiceFactory factory = ServiceFactory.Instance;
ICustomService service = factory.GetRemoteService<ICustomService>(registeredContext);// Finally we invoke service’s method.
service.SomeMethod();
……
As you can see, working with DFS through .NET is much easier now, than working with bare WSDL. I will provide complete example soon.
One Response
Custom DFS service development. .NET Client. Part 3. by DFS Notes
November 20th, 2007 at 4:08 pm
1[…] is source code which creates and invokes HelloWorldService. As I said in my previous post DFS 6.0 SP1 is coming, Java and .NET DFS API’s are very similar to each other, there is no conceptual differences […]
RSS feed for comments on this post · TrackBack URI
Leave a reply
You must be logged in to post a comment.