Using Web Services with Custom Panels

Custom pages that refer to xMatters web services must refer to the correct WSDL. xMatters 4.0 patch 014 and 4.1 patch 006 introduced a new WSDL which supports the use of country codes with text phone Devices.

Custom pages support both legacy and non-legacy modes, but you may need to add custom code to ensure that the JSP uses the correct web services URL and schema. The following is an example of a code snippet that you could add to a custom page to detemine whether or not the application has been set up to work with country codes:

String serviceUrl = "api/services/";
String serviceSchema;
if(deviceService.isTextPhoneUsingCountryCode())
{
  serviceUrl += "AlarmPointWebService/";
  serviceSchema = "http://www.alarmpoint.com/webservices/schema";
}
else
{
  serviceUrl += "xmatters-4.1.6/";
  serviceSchema = "http://www.xmatters.com/webservices/schema#4.1.6";
}
 

For more information about the new schema, see Web Services Description Language (WSDL).