Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

RTSM Web Service API using c#

$
0
0

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?


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>