January 30, 2012
Last week a reader mailed me with some questions about my “WCF over HTTPS” blog post, which I wrote almost 3 years ago.
I created some sample code to help him enable SSL for a WCF service. Last year this was my most popular article, so I thought it would make sense to create a new up-to-date version that shows you step-by-step how to enable SSL for a WCF service with as little fuss as possible.
Let’s get started…
September 4, 2011
You all know the default page you get when you enter a WCF service’s URL in a browser (e.g. http://localhost/Service.svc). You are greeted by a blue and white (mostly white) screen that informs you that you have just created a service.
(Sorry for the Dutch localization in the screenshot.)
So apart from informing you that you have created a service (handy if you suffer from alzheimer), it also tells you where you can find the WSDL (just append ?wsdl), how to generate proxy classes and how to use these proxies.
That’s all fine, but you know all of this stuff already. Besides, you don’t want to display this message on public-facing services. Time to get rid of it.
July 31, 2011
Suppose you have to create an application which consumes a couple of web services offered by a third party. For this post, let’s assume a bank offers a financial API and opted to expose it across multiple endpoints.
Imagine two simple services. One which allows you to withdraw money and another one for depositing money.
Both of these services use a collection of types that are shared between them. How can we make sure these types are also shared on the client side?
Let’s find out…
May 1, 2011
Continuing on the previous article, this post discusses the creation of a simple web application hosted by IIS Express using a feature which Cassini doesn’t support, namely HTTPS.
The built-in Cassini web server (ASP.NET Development Server) only supports HTTP. So if you want to, for instance, use HTTPS when developing a WCF service you are stuck and you’ll have to resort to hosting it in IIS.
Using IIS Express life gets simpler…
February 11, 2010
Magento is a PHP based open-source e-commerce web application which launched back in 2008. Created by Varien, based on the Zend Framework, it quickly became one of the most popular e-commerce platforms.
This article is not a primer on Magento, thus a basic understanding of its inner workings is advisable. Knowledge of PHP is not required, but you should at least have a Magento installation up and running.
The default installation of Magento comes bundled with a web services API, called the Magento Core API. This API allows interaction of third party applications with several sets of core data. You can either use SOAP or XML RPC protocols to communicate with the Magento API.
This is great for example if you want to build applications to manage Magento’s customers, orders, products…etc. You can write your own back-end application instead of using Magento’s default Admin Panel. You can also opt to import data into Magento’s database when migrating from another e-commerce platform. The API provides for countless other possibilities to meet your business needs.
This article focuses on communicating with the Magento Core API from .NET’s Windows Communication Foundation (WCF). So let’s get started…
August 20, 2009
Most of the time when I need to consume a web service I do so using a .NET client built upon the Windows Communication Foundation (WCF). In most cases the web service in question has also been developed using .NET’s WCF.
About 8 years ago I used PHP as my primary tool for building web sites. At the time I used versions 3 & 4. Recently I had the opportunity to brush up my PHP skills by building a couple of small sites using PHP 5. Besides lending itself more towards object orientend programming I noticed that they added support for SOAP by adding the SoapClient class.
As PHP is still widely used it is not unimaginable, but likely very probably that PHP developers out there need to consume a web service that has been developed with WCF. This article explains how to create WCF services that offer support for PHP clients and how such clients can consume these services.
Let’s start coding…