Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleSOAP Connection Example
borderStylesolid
OpsProjectorSvc svc = new OpsProjectorSvc ();
svc.OpsAuthenticationHeaderValue = new OpsAuthenticationHeader ();
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

...