Hi, I have add a web reference and tried to call to the web services but i am getting the following error message Could not establish trust relationship for the SSL/TLS" error
What does this mean and how should i resolve this.
Thanks
@edwardkch said:
I assume you've read through the Xamarin API for SOAP and followed the instructions. If not please check your workings.
Hope it helps. Regards, N Baua
Hi Baua,
Yeap, i am trying to consume a WSDL not ASMX. I am new to this
@edwardkch said: Hi Baua, Yeap, i am trying to consume a WSDL not ASMX. I am new to this
@edwardkch said: Hi Baua,
What not a big difference is, Check the sample with WSDL
https://github.com/xamarin/xamarin-forms-samples/tree/master/WebServices/TodoASMX
Regards, N Baua
Thanks for the guide.
Found out that it doesnt have a signed cert. Any idea where should i put this code?
System.Net.ServicePointManager.ServerCertificateValidationCallback += (se, cert, chain, sslerror) => { return true; };
i tried on the onlick but didnt work
@edwardkch
You have to pop it in your platforms specific projects, I wouldn't use it in a production scenario though.
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Forms.Init(); ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; }
In Android stick it in MainActivity OnCreate.
Answers
I assume you've read through the Xamarin API for SOAP and followed the instructions. If not please check your workings.
Hope it helps.
Regards,
N Baua
Hi Baua,
Yeap, i am trying to consume a WSDL not ASMX. I am new to this
What not a big difference is,
Check the sample with WSDL
Regards,
N Baua
Thanks for the guide.
Found out that it doesnt have a signed cert. Any idea where should i put this code?
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
(se, cert, chain, sslerror) => { return true; };
i tried on the onlick but didnt work
@edwardkch
You have to pop it in your platforms specific projects, I wouldn't use it in a production scenario though.
In Android stick it in MainActivity OnCreate.