Hi,
I want to access Nodes managed by OMi thu web service using c#.
created web referance using wsdl"http://localhost:8080/axis2/services/UcmdbService?wsdl"
HPOMiUcmdbService.UcmdbService UcmdbService = new HPOMiUcmdbService.UcmdbService();
...
HPOMiUcmdbService.getCIsByTypeResponse res = UcmdbService.getCIsByType(type);
above code returned 401:unauthorized error.
update username & password using std method in c#
UsernameToken userToken = new UsernameToken("admin", "<PASSWORD>", PasswordOption.SendNone);
HPOMiUcmdbService.UcmdbService UcmdbService = new HPOMiUcmdbService.UcmdbService();
SoapContext requestContext = UcmdbService.RequestSoapContext;
requestContext.Security.Tokens.Add(userToken);
still same issue.
do I need to add any token to security header?