Hi,
We are trying to develop a .Net web applicaiton that send requests to the Callback Assist Product by using CBA Web Services.
We imported this service into our .NET web application as a service reference and trying to make a request with this code block;
///
WebCallbackService.WebCallbackWs41Client service = new WebCallbackService.WebCallbackWs41Client();
service.ClientCredentials.UserName.UserName = "xx";
service.ClientCredentials.UserName.Password = "xx";
var binding = new WSHttpBinding(SecurityMode.TransportWithMessageCredential)
{
Security = new WSHttpSecurity()
};
service.Endpoint.Binding = binding;
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
binding.Security.Mode = SecurityMode.Message;
var result = service.getWebCallbackConfigurations();
////
WSDL url :http://192.168.48.14:8081/webcallback/WebCallback?wsdl
But we get this Communication error message when we run code block above;
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><soap:Fault><faultcode xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">ns1:VersionMismatch</faultcode><faultstring>A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint.</faultstring></soap:Fault></soap:Body></soap:Envelope>
We couldn't find any information to how to add this service with .Net Visiual Studio.
So could you please support us ?
Kind Regards,
|