Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

soapconnection unathorized

Status
Not open for further replies.

Pumpa

Programmer
Joined
Mar 5, 2012
Messages
1
Location
CZ
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top