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…

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,…