- Checkmarx Documentation
- Checkmarx SAST
- SAST API Guide
- CxSAST (SOAP) API
- Getting the SDK Web Service URL
Getting the SDK Web Service URL
In order to initiate a session to the SDK web service (which receives operative CxSAST requests), the API client must first retrieve its URL from the Resolver web service. The API client should do the following:
Create an instance of the Resolver generated proxy client (class: CxWSResolver), and set its URL to:
http://<server>/Cxwebinterface/CxWsResolver.asmx
where
<server>
is the IP address or resolvable name of the CxSAST server (in a distributed architecture: the CxManager server).Call the Resolver's single available method (GetWebServiceUrl) as below. The returned CxWSResponseDiscovery object's .ServiceURL field will contain the SDK web service URL.
CxWSResolver.GetWebServiceUrl Method
public CxWSResponseDiscovery GetWebServiceUrl( CxClientType ClientType, int APIVersion );
Parameters
ClientType: For API clients, the value is: SDK
APIVersion: The current API version is: 1
Return Value
The SDK web service URL, in CxWSResponseDiscovery.ServiceURL
Example
internal void Main(string [] args) { CxWSResolverSoapClient cxResolverProxy = new CxWSResolverSoapClient(); int APIVersion = 1; CxWSResponseDiscovery response= cxResolverProxy.GetWebServiceUrl(SDK, APIVersion); URL = response.ServiceURL; }