Close

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. Add a service reference to your WCF Service in a class library or another test project. Open the reference till you find file Reference.cs. Copy this file to a safe location Create a class library for the data contracts. Copy the data contracts from the Reference.cs…

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…

SvcUtil

I used SvcUtil to generate a service interface + data contracts from a WSDL using the following command: SvcUtil OpdrachtXOP.wsdl /l:cs /serializer:XmlSerializer /syncOnly Nothing special, the service contract and the datacontracts got generated. But, after I created a SOAP project in SoapUI, I saw a few very weird things: – The Order attribute in my…

Playing around with REST APIs

Based on the following video: https://www.youtube.com/watch?v=7YcW25PHnAA Just try the following: https:/graph.facebook.com/youtube You get JSON back, which contains like the number of likes Now use parameters: https:/graph.facebook.com/youtube?fields=id,name,likes Only id, name and likes are returned Now let’s call Google maps to get back the longitude and latitide geo location: maps.googleapis.com/maps/api/geocode/json Server is: maps.googleapis.com Resources are: maps, api,…

MessageService

In an earlier post (Remote Access BRE), I explained how you can remotely access the Business Rule Engine from an IIS server separate from the BizTalk Server. In order to do so, you need to reference the Microsoft.RuleEngine.dll. This may lead to a licensing issue that you may want to avoid. For that reason I…

Custom WCF ServiceHost

When you create a new WCF service and you view the markup of the .svc file, you will see the standard WCF host factory. Suppose you want to instantiate a class once when starting up the WCF host? In that case you can override the standard host factory and replace it by your custom implementation.…