Skip to content

Instantly share code, notes, and snippets.

@seedprod
Created April 7, 2011 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seedprod/907696 to your computer and use it in GitHub Desktop.
Save seedprod/907696 to your computer and use it in GitHub Desktop.
Hannon Hill Web Service Call
<?php
//include("web_services_util.php");
$client = new SoapClient ( "https://server:8443/ws/services/AssetOperationService?wsdl", array ('trace' => 1 ) );
$auth = array ('username' => 'username', 'password' => 'password' );
$id = array ('type' => 'page', 'id' => '261f20de8a4e31910086b7bbfb175968' );
$params = array ('authentication' => $auth, 'identifier' => $id );
// publish asset
$reply = $client->publish ( $params );
?>
@hortonew
Copy link

hortonew commented Apr 7, 2011

Things to modify:

https/http
server
port #
username / password
page/folder
id
line 10: publish (any of the operators on your wsdl page)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment