Call .net web service in php


Web Service Description Language(WSDL)

Call web service in php

<?php

$webService = new SoapClient(“http://localhost/foldername/webService.asmx?wsdl&#8221;);

$webServiceSelect = $webService->Select(array(“name”=>”abc”))->SelectResult);

print_r($webServiceSelect);

?>

Some helpful method of soap class

__getFunction – Returns a list of available soap functions
__getLastRequest – Returns last soap request
__getLastRequestHeaders – Returns the soap headers from the last request
__getLastResponse – Returns last soap respose
__getLastresponseHeader – Returns the soap he

Advertisements
Posted in php

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s