Hi,
I have java service which communicates over https. I want to connect to this service from C#.
I am getting this exception:
System.ServiceModel.FaultException: WSDoAllReceiver: Incoming message does not contain required Security header.
Someone knows what is wrong?
C# Code:
EndpointAddress address = new EndpointAddress(
new Uri("https://JavaStore:8443/JavaStore/services/B2BService"),
EndpointIdentity.CreateDnsIdentity("JavaStore"),
new AddressHeaderCollection()
);
BasicHttpBinding binding = new BasicHttpBinding();
binding.Security.Mode = BasicHttpSecurityMode.Transport;
var client = new ReharB2BService.B2BServicePortTypeClient(binding, address);;
client.Open();
client.getAllItems();