Created
March 11, 2016 14:05
-
-
Save tahaipek/287df26f53e3164fde40 to your computer and use it in GitHub Desktop.
PHP, WCF Soap 1.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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