Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 123975

Forum Post: RE: Connect PHP to Dynamics CRM Online?

$
0
0

See if this script could solve your problem:

<?PHP

$client = new SoapClient("http://Your Wsdl Location", array("trace" => 0));

$HeaderSecurity = array("UsernameToken"=>array("Username"=>"YourUserName",

                                         "Password"=>"YourPassword",

                               )

);

$header[] = new SoapHeader("docs.oasis-open.org/.../oasis-200401-wss-wssecurity-secext-1.0.xsd","Security",$HeaderSecurity);

$client->__setSoapHeaders($header);

//$client->__setLocation("https://YourTargetLocation/"); if you have wsdl file you don't need to use this line

$REsponse = $client->YourRequest();

?>


Viewing all articles
Browse latest Browse all 123975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>