Forum Discussion
Philip_Baird
12 years agoCommunity Hero
Hi Fabricio, the Exception appears to be being thrown in the following code within the JIRA Script Extension:
try
{
status_text.Add(umsg_connect_to_server);
web_service_info = GetWebServiceInfo();
status_text.Add(umsg_connected_to_server);
}
catch(ex)
{
status_text.Add(ex.description);
status_text.Add(umsg_rpc_not_enabled);
EnableForm1Buttons(form);
return;
}
which in turn calls this function which appears to throw the Exception
function GetWebServiceInfo ()
{
return WebServices.CreateWebServiceInfo(m_server_name + m_path_to_wsdl, "JiraSoapServiceService", WebServices.svSoap11);
}
To test this, I created the following function in a Script Unit
function testGetWebServiceInfo() {
var m_server_name = "<Server Address>";
var m_path_to_wsdl = "/rpc/soap/jirasoapservice-v2?wsdl";
var info = WebServices.CreateWebServiceInfo(m_server_name + m_path_to_wsdl, "JiraSoapServiceService", WebServices.svSoap11);
Log.Message("Done");
}
I received the same 'WebServices' is undefined error.
As it turns out, a reference to the Test Complete WebServices Project Item was required in the Project from which the function GetWebServiceInfo() is called
1. Right click on the Project in the Project Explorer
2. Select the menu item Add | New Item
3. In the Create Project Item dialog, select Web Services and Click OK, WebServices will appear under Advanced
4. Try accessing JIRA, it will hopefully now work
Regards,
Phil Baird