...
Code Block | ||||
---|---|---|---|---|
| ||||
OpsProjectorSvc svc = new OpsProjectorSvc (); svc.OpsAuthenticationHeaderValue = new OpsAuthenticationHeader (); svc.OpsAuthenticationHeaderValue.AccountName = "(sessionticket)"; //you can log in using your credentials directly, but we strongly discourage this approach. You should generate session tickets to log in. Direct credentials are fine for some simple tests //svc.OpsAuthenticationHeaderValue.AccountName = "(account-name)"; //svc.OpsAuthenticationHeaderValue.EmailAddress = "(user-name)"; //svc.OpsAuthenticationHeaderValue.Password = "(password)"; GetWebServiceUrlRq rq = new GetWebServiceUrlRq (); GetWebServiceUrlRs rs = svc.GetWebServiceUrl (rq); if (rs.WebServiceUrl != null) { svc.Url = string.Format("{0}/OpsProjectorWebSvc/OpsProjectorSvc.asmx", rs.WebServiceUrl); } // Use svc to invoke further web services |
...