Monday, December 10, 2012

BizTalk 2013 Intorduction

http://blogs.msdn.com/b/biztalk_server_team_blog/archive/2012/11/06/announcing-biztalk-server-2013-beta.aspx
http://biztalkadmin.com/biztalk-2013-sql-2012-and-server-2012/
http://www.zdnet.com/microsofts-biztalk-2013-enterprise-integration-server-hits-beta-7000007054/

Thursday, December 6, 2012

Can we do method overloading in WCF services


The soap xml not support OOPs and WCF generate proxy and it'll not follow method overloading.
Inside the WCF service code it'll allow us Method Overloading.

By default overload operations (methods) are not supported in WSDL based operation. However by using Name property of OperationContract attribute

Sample:
[ServiceContract]
public interface IService1
{
[OperationContract(Name="GetData")]
string GetData(int value);

[OperationContract(Name="GetData1")]
string GetData(int value, int value1);

}

public class Service1 : IService1
{
public string GetData(int value)
{
return string.Format("You entered: {0}", value);
}

public string GetData(int value, int value1)
{
return string.Format("You entered: {0}, {1}", value, value1);
}
}

Notice that both method name in the above interface is same (GetData), however the Name property of the OperationContract is different. In this case client proxy will have two methods with different name GetData() and GetData1().