Data transfer multicompany using AIF services

Dear All,

public void SetSourceEndpointAndUser(string sourceEndpointName)

{

string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;

var addressHeader = AddressHeader.CreateAddressHeader(“SourceEndpointUser”, "">http://tempuri.org", userName);

var addressBuilder = new EndpointAddressBuilder (

new EndpointAddress (new Uri (“urn:” + sourceEndpointName), addressHeader));

var endpointAddress = addressBuilder.ToEndpointAddress();

OperationContext .Current.OutgoingMessageHeaders.From = endpointAddress;

}

Above i wrote code for setendpoint

but i got exception below,

Addressing Version ‘AddressingNone (schemas.microsoft.com/…/none)’’) does not support adding WS-Addressing headers.

Thanks,
Manikkam.