0
San4opa
20.06.20
✎
18:15
|
Добрый день
Настраиваю очередной обмен, в этот раз проблемы с веб службой:
Сборку сделал на .NET, далее настроил подключение через NetObjectToIDispatch45 но на последней строке кода пишет что метод не найден, на сторонней программе работает метод работает, в чем может быть проблема?
врап=новый COMОбъект("NetObjectToIDispatch45");
ServiceBKI = врап.ПолучитьТипИзСборки("BKIObmen.ServiceBKI.ServiceClient",Объект.ПутьКСборке);
BasicHttpBinding = Врап.ПолучитьТипИзСборки("System.ServiceModel.BasicHttpBinding", "System.ServiceModel.dll");
//ServicePointManager=врап.ПолучитьТип("System.Net.ServicePointManager");
//SecurityProtocolType=врап.ПолучитьТип("System.Net.SecurityProtocolType");
//ServicePointManager.SecurityProtocol = врап.OR(SecurityProtocolType.Ssl3 , SecurityProtocolType.Tls , SecurityProtocolType.Tls11 , SecurityProtocolType.Tls12);
Binding = Врап.СоздатьОбъект(BasicHttpBinding);
//Binding.AllowCookies = Истина;
Binding.MaxReceivedMessageSize = 1000000;
Address = Врап.СоздатьОбъект("System.ServiceModel.EndpointAddress",";);
client = Врап.СоздатьОбъект(ServiceBKI,Binding,Address);
ОтветЗапроса = client.RejectedClient(inn);
Скрины ошибок:
|
|