- René Ullrich
- PowerBuilder
- Wednesday, 5 September 2018 12:43 PM UTC
Hi,
I try to use a webservice using .NET engine in PB 2017 R2. The server requires a basic authentication.
My code is:
lsoap_connx = CREATE SoapConnection
lsoap_connx.CreateInstance(lnv_zeitdaten, "ztab_zeitdaten") // returns 0
lsoap_connx.SetBasicAuthentication ("", ls_username, ls_password) // returns 0
lnv_zeitdaten.webservicecall
The calls fails. The server returns a 401.
Username and Password are Ok.
I used Wireshark to log the traffic. Is simple HTTP. I can't find any authentication in the request header!?
What I'm doing wrong?
I also tried to set the domain name in SetBasicAuthentication and also to use setOptions.
The SOAPLog file is empty.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.