com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Validating WSDLs Offline

Users can upload WSDL files to the WSO2 Governance Registry. During the uploading process, the Governance Registry validates each WSDL file during its first addition. However, in order to do that, there should be an active internet connection on the machine which is running the Governance Registry. This page explains the process to follow in order to add and validate WSDLs using Governance Registry on a machine without having an internet connection.

When validating the WSDL, the Governance Registry connects to ws-i.org site, in order to get few resources. See here for more information.

There can be problems and delays in validating WSDL, if the machine doesn't have an active internet connection at the moment. So, as a workaround for this issue, the following sections explain how to host those required resources locally and validate WSDLs using those locally hosted resources without using an internet connection:

Install and Run Apache Web Server

If you are not already installed the Apache web server, please refer to this download page to download the latest version of the Apache web server.

For Windows installations, you should download the Windows version of Apache (the file with the .msi extension). For Linux based environments, binary releases are not often up-to-date. Therefore you can build Apache web server from its source in order to get the latest version. See here for a more detailed explanation on how to build the Apache web server from its source for Linux based environments.

To install and run, please refer the relevant section on Apache Web Server official documentation. For Windows installations please refer to the Apache Windows Installations documentation.

At the time when writing this article, the latest Apache web server version is 2.4. Therefore the instructions and references used in this article are related to the latest Apache server documentation version (2.4).

To verify the installations run the Apache server and locate the following link on your browser.

Your browser displays content related to Apache web server. If not, you may have to check the error logs of the Apache web server and resolve issues.

Publish Files on Apache Server

Please refer the Apache documentation to locate the "web site publish directory" of the Apache server.

E.g., for Linux it is "/var/www" and for Windows it can be "C:\Program Files (x86)\Apache Group\Apache2\htdocs".

As mentioned earlier in this page, WSO2 Governance Registry connects to ws-i.org to download resources (two XML files). Manually download these resources (XML files) and publish them on the Apache web server.

To do so, download the following XML files from a computer, which is having an internet connection. When we are adding WSDL through Governance Registry to complete the validation Governance Registry needs these XML files.

After downloading above files, save them inside your "web site publish directory" of the Apache web server. Please remember to save these files under the corresponding folder structure (that matches the url resource path of ws-i.org site) inside your "web site publish directory" of the Apache web server.

E.g., for a Linux environment it should be:

/var/www/Testing/Tools/2004/12/AP10_BP11_SSBP10_TAD.xml

/var/www/Testing/Tools/2005/01/SSBP10_BP11_TAD_1-0.xml

The above resource files (TAD - Test Assertion Documents) contain test assertions for WS-I profiles. These test assertions are used by the analyzer tool (inside the WSO2 Governance Registry when validating WSDL file), in order to determine the conformance of the Web Service.

To verify what we have done so far, please locate the following links on your browser.

The above links display the content of the TAD XML files in the browser.

Editing the Hosts File

Hosts file is a text file that contains entries to map host names to IP addresses. By editing this file it is possible to redirect requests (by the WSO2 Governance Registry) requesting ws-i.org site resources to out locally hosted Apache web server resources. In Linux environment, the hosts file is located at:

/etc/hosts

In Windows it is under:

%SystemRoot%\system32\drivers\etc\hosts.

Please see here to get more information about hosts file paths on different environments. Open the hosts file on your machine and add the following entries to it.

127.0.1.1 www.ws-i.org

127.0.1.1 ws-i.org

It is always best to take a backup of the host file before modifying it. In this page we assume that Apache web server and WSO2 Governance Registry is installed on the same machine. However, if required, you can install Apache web server on another machine with appropriate changes to the host file (which is in the machine which runs the WSO2 Governance Registry). You can point to the Apache web server machine using the host file.

Verifying the Steps

To verify these steps, locate the following link on your browser (on the machine which is not having an internet connection),

If you are able to see the content of the above .xml file, that means WSO2 Governance Registry is ready to validate WSDL on a machine which does not have an internet connection.

To add WSDLs to the WSO2 Governance Registry:

  1. Start up WSO2 Governance Registry and log into it with credentials.
  2. Refer to the Managing WSDLs section to add WSDLs.
  3. If you have followed the above steps correctly, then you should be able to add and validate WSDL resources successfully with the WSO2 Governance Registry which runs on a machine that does not have an internet connection.

This WSDL validation can be skipped by setting the disableWSDLValidation property to true on the corresponding handler configuration (you can edit handler configurations by editing the registry.xml file which is located in the GREG_HOME/repository/conf/). If it is possible for you to skip this validation, then you do not need internet connection since those TAD files are required only during the validating phase ( to check the conformance of the Web Service). Please refer to Managing WSDLs for more information.

 

 

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.