Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Your Projector account may be hosted on any of a number of servers. Your web service calls must be directed to the server that hosts your Projector account. This web service allows you to programmatically determine the correct URL for subsequent web services requests. This call may be directed to https://secure.projectorpsa.com (the full URL for the web services is https://secure.projectorpsa.com/OpsProjectorWebSvc/OpsProjectorSvc.asmx), and will return a URL that you can then use to make web services request to access your data. Please refer to the sample C# code shown below as an illustration.

SOAP Connection Example
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


Please note that while you can ascertain the correct URL for your company's data and directly use that URL, bypassing this web service, we do not recommend that approach. Using this web service will ensure that your programs will always work, even in the event that your account is moved to a different server.

Request

The service request contains no inputs.

Response


The service returns the following results:

Name

Data Type

Discussion

WebServiceUrl

string

The URL of the server to direct web service calls to. Note that you need to append the location of the web services (/OpsProjectorWebSvc/OpsProjectorSvc.asmx) to this value. This may be null, in which case you do not need to re-point the web services.


  • No labels