Skip to content

Instantly share code, notes, and snippets.

@BryanWilhite
Last active August 29, 2015 14:09
Show Gist options
  • Save BryanWilhite/656e3b393a0576a38091 to your computer and use it in GitHub Desktop.
Save BryanWilhite/656e3b393a0576a38091 to your computer and use it in GitHub Desktop.
PHP: SoapClient Result Output As JSON
<?php
$client = new SoapClient($CFG->studioServicesCheckCodingSOAPWsdl);
$params = array(
'businessUnit' => $_REQUEST['businessUnit'],
'market' => $_REQUEST['market'],
'projectId' => $_REQUEST['projectId'],
'resourceType' => $_REQUEST['resourceType'],
'resourceCategory' => $_REQUEST['resourceCategory']
);
$operationResult = $client->CheckCoding($params);
echo json_encode($operationResult);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment