Our organization uses IBM FileNet as document management system. FileNet P8 comes with a web services API which can be used in .net
Has anyone of you guys tried this? If yes could you please direct me to any resources to kick start?
Thanks a ton in advance.
http://publib.boulder.ibm.com/infocenter/p8docs/v4r5m1/index.jsp?topic=/com.ibm.p8.doc/developer_help/content_engine_api/guide/gs_procedures.htm
The FileNet API comes in 5 flavors:
Java - jar reference, configure to use either http or iiop transport
.NET - .NET dll reference, configure for http transport
CEWS - Content Engine Web Services. Use only if you can't use the Java or .NET API
CMIS - web service conforming to the CMIS spec
COM - semi-legacy, not discussed in the docs, but it does exist
Although the .NET API uses web services in the background, your .NET project reference is to FileNet.Api.dll, rather than directly to the WSDL. So if you're a .NET shop, you want the .NET API, not the "Web Services API" (2012-02-03 edit: unless you opt for CMIS)
The best place to get started is the "Bulk Loader Sample Code" here: http://www-01.ibm.com/support/docview.wss?rs=3278&uid=swg27010422
You're in the right place for documentation related to the P8 .Net API. The only other "kick-start" link I can think of is http://www.ecmplace.com/.
I know how to create a session using the Java API for the CE, but I'm sorry to say that I haven't done it with the .Net API. However, I'm fairly certain that you'll find helpful examples on the ECM Place forum.
HTH!
Tom Purl
Related
I've tried, but I couldn't find any info about it.
Let's say that I have some webapis for my company that other devs (or qa) are going to use in theirs applications, and for easier use of my apis I'd like to create a library with client so that I can control how other devs are communicating with my api. So basically they can just install this package, add webapi url to configuration, inject necessary dependencies and use it. Is there any pattern, guidance etc. for creating such packages with client? I'm not talking about good practices how to create web api, rest api etc, but just this specific client package.
I've tried googling some tips or guidance about this (or maybe just generic instructions), but all I could find is how to create REST API...
You can use NSwag. With NSwag you can:
Generate Open API/Swagger specification from your Web API controllers. It is just a JSON document describing you API
Include an Html/JavaScript front end in your Web API application where users can see your API and invoke it.
Generate C# clients to invoke your web API.
Useful links:
https://github.com/RicoSuter/NSwag
https://learn.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-nswag?view=aspnetcore-7.0&tabs=visual-studio
What is the status of XACML/SAML .NET Framwork Classesd/Methods?
Will Microsoft provide an .NET XACML/SAML stack/framework now or in the near future?
Can MSDN provide today working examples that demonstrates how to use or implement an XACML/SAML environemtn, those securing a typical WCF client / WCF Service environment?
Given the Microsoft .NET Framwork does not have today (25. february 2014) a XACML/SAML implementation, what third party vendor products would Microsoft recommend to use joint with .NET Framework Classes in a WCF .NET environemnt?
Yes I've googled around, and no, not much helpful comes up.
There is a severe lacking of useful info on this subject out there.
Any of the following information you could share would be helpful:
1. Can anyone in this Forum or at MSDN Help Desk explain or lead me to documentation explaining the basic protocol flow used when securing a WCF client servevice with XACML? I hope this question fits MSDN Help DESK ;-)
2a). How do I setup a proper formatted XACML/SAML request at the client?
2b). How do I intercept and extract a properly formatted XACML/SAML request at the service?
2c). How do I pass itto the XACML/SAML processing framwork of .NET (if any) or
2d). any recommended XACML/SAML third party framework?
In general: How do I write an message interceptor and retrieve the SAML part in the header to be treated by the XACML service side implementation to receive a permission true/fals value based on policies?
What .NET Framework/Classes/Methods will help me to inject XACML/SAML data into a request/message
What .NET Framework/Classes/Methods will help me to retriev XACML/SAML data from a request/message
There are multiple locations where you could write a policy enforcement point (PEP) in C# .NET. Possible locations include:
HttpModule
WCF Web Service - Custom ServiceAuthorizationManager
REST API (ASP.NET Web API) - Custom AuthorizationFilter
ASP.NET MVC - Custom AuthorizationFilter
Axiomatics (disclaimer: I work for Axiomatics) provides all these integration points along with a XACML 3.0 PDP written in .NET and a .NET PEP SDK so that you can write your own PEPs.
Are there any frameworks that allow a RESTful API Server to be written in C#?
I have seen MVC 4, however this seems to be providing a view that you can see in the browser, I just require the API server and no view. It would be great if it was able to provide a streaming API too.
Thanks
If you are using .NET Framework 4.5 you can use Web API
If you are using .NET Framework 3.5 I highly recommend ServiceStack
If you are using .NET Core then you can use ASP.NET Core Web API
Nancy is a free REST framework for C#.
If you are working in .NET 4.0 or higher and looking for a pre-existing REST server solution that you can plug into (which it sounds like you are), you might want to check out Grapevine. You can get it using NuGet, and the project wiki has lots of sample code.
I am the project author, and I had a similar need as the one you described. Using resources I found here and elsewhere, I built Grapevine so that I would have a solution in my back pocket whenever I needed it again (DRY).
If you are ok with using IIS to host your app, WebAPI is the route to go, per the above answers. Not every solution is best in IIS however.
For executable apps (such as a windows service), consider using WebServicesHost. This page is a good example of how to implement it.
You can use web api, it is part of the .net MVC framework but it is relying on the razor engine (inly if you use the mvc templating engine cshtml).
If you are using .net 4.0 you can use web api 1,
If you are you .net 4.5 you can use web api 2
2022, no IIS/ASP answer:
Consider EmbedIO (and probably SWAN on top of that)
A tiny, cross-platform, module based, MIT-licensed web server for .NET Framework and .NET Core.
Please forgive me for this basic and a little theoretical question as I dont know much about web services.
I m not refering WCF service, I am reffering simple service in .net / C#. I want to know how to know is it soap or rest service ?
How we can change this type from Soap to Rest and vice versa ?
Thanks
XML Web Services (aka classic/legacy ASMX web services) should not be used for active development. If you must, there is a nice walkthrough on MSDN for adding Web references in more recent versions of Visual Studio (> 2005).
On the other hand, if your web service is truly Restful then you won't be able to create the equivalent of a service reference to it. You'll need to either use the HttpWebRequest, WebClient, or the new HttpClient from .NET 4.5 (also available from the Rest starter kit which is depreciated as well).
As an alternative if you are looking to implement a client that is able to handle both situations, I would recommend HttpWebRequest to POST to the SOAP (non-WCF) service. The problem with this method is you'll likely have to wrap the request in the SOAP wrapper yourself. Luckily there are examples of doing so on the net that you can at least use as a starting point.
ASMX services are build upon SOAP. REST is simply a HTTP based, You can access(or call) your business resources the way you access the normal URLs.
For ex in products catalog system, by using asmx you create set of functions to add,update,delete products. like addProduct(),updateProduct, etc..
But in REST, you will be having single point of access, like http:\mysystem\prodcuts. To retrieve,add,update,delete products, you will be using respective HTTP verbs (GET,POST,PUT,DELETE) on the same URL.
so,technically it's not possible to convert asmx(SOAP) service to rest...
First time poster so please take it a bit easy on me if I break any posting rules - I have read them and I think I'm right.
I've been searching for a while before posting and can't seem to find a guide on what I am trying to do so I thought I would post here.
I need to write a C# .NET 3.5 program to consume a web service developed in Java. I have practice consuming ASMX web services in .NET using Web References from my experience writing Dynamics CRM plugins and software but this has me stumped.
My first attempt was to use a Web Reference (yes, I know - not WCF) however the web service requires a PasswordDigest (SHA-1 with nonce and created), a username token and timestamp token in the SOAP header and I couldn't find a way to add these to the SOAP header using the Web Reference.
My second attempt was to use a Service Reference (I believe, but I am probably wrong haha, that this is WCF) however I don't have much practice with this and any tutorials I found online were not much help.
Each time when I try to use the WS, I get a rejection from the server for being unable to authenticate.
My question is how do I consume a Web Service with these requirements in C# .NET 3.5?
Thanks.
IIRC, Microsoft WSE (either 2.0 or 3.0) had something called UsernameToken, which you need to stuff somewhere in the outgoing SOAP message and you're all set. Granted, this answer leaves a lot to be desired, so I'll throw a couple links at you and hope you'll wade through:
http://www.codeproject.com/KB/webservices/WS-Security.aspx
http://www.reliablesoftware.com/articles/WSESecurity.html
http://www.devx.com/security/Article/15634
(And this all shows yet again how flawed SOAP and WSDL actually are).