Close

Authorizing REST service using an API key

It’s quite common to use an API key as a means to authorize a REST service. The first step is to add a message handler in the Application_Start event of Global.asax: protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); GlobalConfiguration.Configuration.MessageHandlers.Add(new AuthorizationHeaderHandler()); } The AuthorizationHandler.cs file is contained in the App_Start folder. On initialization the apiKey and apiKeyEnabled setting…

Cannot use WebDeploy 3.6 on IIS 10.0

I am using IIS 10.0 on Windows Server 2016. I found that option Deploy -> “Export Web Application” (when you right-click a web application in IIS) was missing. The reason for this is, that there have been some security related changes to web deploy. Before downloading and installing web deploy 3.6, you will have to…

Client certificate by example

I never really dealt with client certificate validation. Therefore I try to explain in this post how to order and install a client certificate for use in BizTalk. In this case the client certificate was needed by a housing corporation named Stadgenoot. The client certificate was not requested by Stadgenoot, but by a trading partner…

WCF Authenticate Preemptively

Normally when you send a request to a service that uses basic authenication, you will initially send a service request without authorization header. The service will respond with a Http 500 error and will send the client an authentication request. This all happens automatically. The client will send the service request again. This time an…

Host WCF service in Azure

It’s possible to host a WCF service in Azure. First create a WCF service library for the service contract. I think it’ also possible to create a WCF Service Application since you wanna host the service in IIS. Then create a class library for the data contract. Finally add an ASP.Net Web Application. Use the…

SoapUI failed to add project

If you get an error when adding a new SOAP project in SoapUI, it’s best to try and open the wsdl in a browser first. That way you can see the errors related to the wsdl file. Don’t forget to set customErrors to Off in the web.config file. <system.web> <customErrors mode=”Off” /> </system.web> You can…

Test Soap Service via Postman

I found an interesting post on the Postman Blog, which was almost correct. For easy reference, I give the correct approach here: You can easily make any HTTP SOAP request using Postman by following these simple steps: 1. Give the SOAP endpoint (not necessarily the WSDL) as the URL. If you use a WCF service hosted on…