I am using PB 12 for soapconnection via .net. I set
connection options - url, username and password. After calling first server function I receive response: "HTTP status 401: unauthorized". But username and password are correct. I can call the same function with SOAPUI.
Here is the script:
long ll_return
integer li_rc
SoapConnection sc
p_sberdatlpservice sber
p_zprava_odpoved_type odpoved
sc= create soapconnection
sber= create p_sberdatlpservice
li_rc=sc.CreateInstance(sber,sber.ClassName())
ls_string =
"Domain='Cd2d6600',userID='MyName',Password='MyPassword'"
ll_return = sc.SetOptions (ls_string)
dotaz= create p_app_info_dotaz_type
odp=create p_app_info_odpoved_type
try
odp = sber.getappinfo( dotaz)
catch ( SoapException e )
messagebox ("Error",e.text)
end try
Can anybody help?
connection options - url, username and password. After calling first server function I receive response: "HTTP status 401: unauthorized". But username and password are correct. I can call the same function with SOAPUI.
Here is the script:
long ll_return
integer li_rc
SoapConnection sc
p_sberdatlpservice sber
p_zprava_odpoved_type odpoved
sc= create soapconnection
sber= create p_sberdatlpservice
li_rc=sc.CreateInstance(sber,sber.ClassName())
ls_string =
"Domain='Cd2d6600',userID='MyName',Password='MyPassword'"
ll_return = sc.SetOptions (ls_string)
dotaz= create p_app_info_dotaz_type
odp=create p_app_info_odpoved_type
try
odp = sber.getappinfo( dotaz)
catch ( SoapException e )
messagebox ("Error",e.text)
end try
Can anybody help?