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…

Creating a https webservice

Om een http webservice te creeëren, heb je eerst een self signed certificate nodig. Run Visual Studio Command Prompt as an administrator en voer de volgende commando’s uit: //Create self-signed certificate for the root authority makecert -n “CN=Erpobizzw004CA” -r -sv Erpobizzw004CA.pvk Erpobizzw004CA.cer -sky exchange //Als er gevraagd wordt om een password, typ dan bijvoorbeeld password:…

REST Service voorbeeld

Kies in Visual Studio project type WCF / WCF Service Application (niet WCF Service Library) DataContract: Je hebt alleen een referentie nodig naar System.ServiceModel. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace RESTServices { [DataContract] public class Student { [DataMember] public string StudentName { get; set; } [DataMember] public int…