Android Question HTTPS: and SOAP problem

svein berg

Member
Licensed User
Longtime User
Hi.
I try to connect to my web service with SOAP.
Using HTTP: is working fine, but excat same code is not working when calling HTTPS: ?

I have libraries;
Network 1.51
OKHttp 1.01

In Process_Global;
Dim myhttp As OkHttpClient
Dim Myreq As OkHttpRequest

In Create;
'myhttp.Initialize ("Http1")
myhttp.InitializeAcceptAll("Http1")


In a button click;
Myreq.InitializePost2("https://My.Adress/wip/wipv1.asmx",Autenticate("123","123").GetBytes("UTF-8"))
Myreq.SetContentEncoding ("UTF-8")
Myreq.SetContentType("application/soap+xml;charset=UTF-8;action=""http://My.Adress/wip/v1/AuthenticateEmployee""")
myhttp.Execute(Myreq,1)

This works fine with either of the .initialize i create.
But just changing the "Http:" in line 1 in button click to "Https:" and the APP isnt sending anything. ??
Can anyone help??

regards svein
 

Reviewnow

Active Member
Licensed User
Longtime User
Your web service first has to accept HTTPS and be a valid certificate
your soap web service code has to be changed
<WebService(Namespace:=https://My.Address)> _

Use the InitializeAcceptAll("Http1")
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top