Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script


Note

Applies to VoipNow 3 and higher!

This article describes what to do in case you need to store the WSDL files locally.

When you try to load a WSDL URL via HTTPS, an error like this may be returned:

Code Block
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://192.168.14.187:443/soap2/schema/3.5.0/Billing/Billing.wsdl' : failed to load external entity "https://192.168.14.187:443/soap2/schema/3.5.0/Billing/Billing.wsdl"

Step-by-step guide

Depending on the required WSDL, you must download the schema locally taking the steps below:

STEP 1: Log in to your server as root using either SSH from Linux or Putty from Windows.

STEP 2: Go to the SOAP schema folder.

Code Block
cd <VOIPNOW_ROOT_D>/admin/htdocs/soap2/schema

where <VOIPNOW_ROOT_D> is defined in /etc/voipnow/paths.conf.

STEP 3: Tar the desired schema version.

Code Block
tar -cvf soap_350.tar.gz 3.5.0/

STEP 4: Copy and untar that archive on your server, and then load the WSDL from there. To untar the archive type:

Code Block
tar -xzvf soap_350.tar.gz

STEP 5: In your .php file, the WSDL is requested from the local files:

Code Block
new SoapClient('local_path', $options);

Content by Label
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "KB"
labelskb-how-to-article

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.