Close

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

REST service with basic authentication

Basic Authentication for your service does not allow you to override the IIS behavior and intercept those credentials using a custom username/password validator. This is because IIS is handling the authentication prior to the WCF service being called. To summarize: • IIS does the authentication before WCF receives the request. • By default IIS uses…

LoadUserProfile on AppPool

If you deploy the REST service to communicate to a remote transactional queue on a separate webserver (not on the BizTalkServer) there’s an extra gotcha. In my case I determined the MSMQ to send to via a business rule. That means I had to run my service under a user account that has rights to access the…

Remote access to the business rule engine

Suppose you have developed a REST service which sole responsibility is to write messages to a message queue. The queue to write to is determined using a business rule. Now – for reasons of scalability and performance – you want to move the webservice from the BizTalk Server to a separate IIS webserver. Question is,…

System.ServiceModel.Channels.Message

When you call a REST service, behind the scenes the network message is wrapped in an object that the rest of the WCF infrastructure can understand. This object is an instance of System.ServiceModel.Channels.Message. Although Message is modeled somewhat after a SOAP message pattern, with a header and a body, it isn’t necessarily tied to the…