Contact eSortcode.com on +44 (0)845 094 2633  
 
Microsoft .Net

Getting started with .net

Using .net technology to consume the eSortcode web service is very simple.

Microsoft.net makes life easy for us by handling the SOAP communication and building a Proxy class to wrapper the web service.

There are code samples for both VB.net and C# languages. The first thing you will need to do within your .net project is add a reference to the eSortcode Web Service as follows:

At the Add Web Reference Dialog enter the following URL https://ws.esortcode.com/bankdetails.asmx and press the 'Go' button.
Change the Web reference name to eSortcodeWS:


Press the 'Add Reference' button.

When you add the Web Reference a proxy class is created and can be viewed by opening the Reference.cs (Reference.vb in VB.net) in code view.


In this example we are using the BranchDetails method of the eSortcode.BankDetails web service to return the Branch Details for a Sorting Code.

At the point in your code where you want to return the Branch Details put in the following code. For this example the code is inside the Click Event of a Button control as follows:

C# Example

VB.Net Example


If you have not already signed-up for an account click here Sign-Up Now.
You will receive your Access Codes by email and you will receive 50 free credits.

When you have your Access Codes ready, you will need to do the following to get the code above to work:

Change the XXXXXXXX value to be your eSortcode AccountName.
Change the XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX value to be your eSortcode GUID.

It's that simple.

The other methods of the eSortcode Web Service can be used in a similar way.

For a full technical description of the eSortcode web service and the 5 methods click on the following link Web Service Described.

If you have any questions feel free to contact us at the following link Contact Us.