I reviewed the different coding examples. I'm trying to pull backups via either perl or php from a ZTM via a server without Internet access. This managment server will only use https (not http) to provide access to wsdl files that are local to the box.
I've pulled the wsdl file from the ZTM to the local system.
I've had some success using the php virtual server name script example. I tweaked it to call the backup.wsdl file for testing.
The script can access the wsdl file and list the embedded functions.
$conn = new SoapClient( "full path to .../System.Backups.wsdl",
$function_names = $conn->__getFunctions();
this piece works to dump the functions using a 'for' loop on the array.
Then I get
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in ...
PHP example indicates that the wsdl file may need to directly call the ZTM.
For the test I updated the wsdl file soap:address to include the ZTM IP.
This is the first attempt to use soap to. I used the unmodified wsdl file, then added my specific ZTM IP, then added the user:password.
I've also added the 'login' and 'password' array elements to the PHP SoapClient call.
I tested the proxy_login/password and proxy_host (ZTM IP) elements in the SoapClient call as well. So far I can't get a connection. I'm sure I'm missing something very basic.
Using the Perl example I get "unknown function called" no matter what the perl script is configured for. I've pointed it at the ZTM for the wsdl, at the file system, at an https directory on the local server I'm running the script on.
I 'think' I'm closer to a php solution if I can figure out how to make the script access the ZTM since I can already read the wsdl file locally.