У меня есть служба Java, которая общается с HTTPS. Я хочу подключиться к этой службе от C#. < /P>
Я получаю это исключение: < /p>
System.serviceModel.FaulTexception:
wsdoallReceiver: входящее сообщение делает
не содержит требуемый заголовок безопасности. < /p>
< /blockquote>
/>
Кто -то знает, что не так?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();
Подробнее здесь: https://stackoverflow.com/questions/392 ... ity-header