News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ahmed Shreef's Blog:
Soap Web Services in PHP & hint on consuming from .Net
November 03, 2010 @ 14:57:16

Ahmed Shreef has a post he's written up about using SOAP services in PHP (specifically in a CakePHP-based application using some Zend Framework libraries) and drops in a helpful hint at the end about getting .NET clients to play nicely with it.

Last week, I was working on implementing a SOAP server for one of our projects at work, this web service was built to be consumed by some other software that is built using .Net . It wasn't that easy and I faced some problems that made me go crazy for some hours and I wanted to share them here with the solutions.

He includes two snippets of code from his application - one is the SoapController that handles the incoming actions and the other is the handler class with a sample "doSomething" method to return an array. This is where the problem lies. .NET doesn't seem to understand the "Array" return type so it was throwing errors. In order to resolve the problem, hehad to tell the Zend library that he wanted to render the result as a type of "Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex" for the conversion.

6 comments voice your opinion now!
dotnet soap webservice zendframework cakephp array


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: 10 PHP Tricks for Associative Array Manipulation

Reddit.com: PHP library authors: Have you considered to arrange security bug bounties?

Zend Developer Zone: Zend Framework Beta 0.9.1 Released

CodeSnipers.com: Perl vs. PHP - Datatypes[arrays|lists|hash|map]

The Bakery: Six New Components/Articles/Tutorials (SOAP, XHR, Tickets, Models, Releases & Flashes)


Community Events





Don't see your event here?
Let us know!


deployment developer introduction threedevsandamaybe podcast list opinion framework symfony language tips release interview library api series zendserver laravel bugfix community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework