NerdyHearn
Home
Blog

Contact
Mailing List

Software

Active Directory Products
Object Compare
Permission Compare

IPhone Products
Calls To Calendar
SMS To CSV
SMS To Gmail
Voicemail To Gmail

Sites
How Long For Me
SaveMySerials

Blog
Twitter

NerdyHearn - Blog


<< Back To All Blogs

Calling .NET WebService From PHP

Sunday, October 15th, 2006

Here is how you call a webservice written in .NET from PHP. Note the very important addition of the Result to the end of the function call while getting a resultset from a webservice call:

$client = new SoapClient("http://server/service.asmx?WSDL");
$params->param1 = "some value";
$params->param2 = "some other value";
$objectresult = $client->function($params);
$simpleresult = $objectresult->functionResult;
print($simpleresult);

Tags

PHP CSharp

Related Blogs

Parsing XML in PHP with SimpleXML
Implementing AJAX with PHP and MySQL
Simple encryption class for PHP
Netbeans and PHP: A promising future
Resolving CURLOPT_FOLLOWLOCATION cannot be activated with PHP and CURL

Comments

Currently no comments.

Add A Comment

Name:


URL:


Email Address: (not public, used to send notifications on further comments)


Comments:



Enter the text above, except for the 1st and last character:


NerdyHearn - Latest tech news relating to C#, ASP.NET, SharePoint, PHP, general development, and more. SaveMySerials - Protect yourself from theft, fire, natural disasters and more by recording your serial numbers