Skip to content

Instantly share code, notes, and snippets.

@tahaipek
Created March 11, 2016 14:05
Show Gist options
  • Save tahaipek/287df26f53e3164fde40 to your computer and use it in GitHub Desktop.
Save tahaipek/287df26f53e3164fde40 to your computer and use it in GitHub Desktop.
PHP, WCF Soap 1.1
#PHP Code
<?php
$url = "http://localhost/WCF.Integration.Services/ITestService.svc?wsdl";
ini_set("soap.wsdl_cache_enabled", "1");
$client = new SoapClient($url);
try
{
$info = $client->TestMethod(array('methodParameter' => "Test"));
var_dump($info);
}
catch (SoapFault $fault)
{
var_dump($fault);
$xml=$fault->faultstring;
die;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment