To use QAComplete SOAP API in .NET applications, you need to add a web service reference to your Microsoft Visual Studio project. This will generate proxy classes for calling web service operations, so you will not have to handle raw SOAP XML messages and HTTP requests and responses.
-
Open your project in Visual Studio.
-
In Solution Explorer, right-click the project and select Add Service Reference.
-
Enter the WSDL URL in the Address box.
For QAComplete SaaS (hosted on qacomplete.smartbear.com):
http://soap.qacomplete.smartbear.com/psWS.asmx?WSDL
For QAComplete On-Premises (hosted on your company-owned server):
http://[yourserver]/psws/psws.asmx?WSDL
-
Enter the Namespace for the proxy classes. The full namespace will be ProjectNamespace.ProxyNamespace.
-
Click OK.
Now, you can connect to the QAComplete web service and call its operations like this:
C#
ServiceSoapClient service = new ServiceSoapClient();
string version = service.GetVersion();
Console.WriteLine(version);