PHP
PHP calling .NET - PHP to WCF calls with parameters
In my last post I provided an example of PHP calling a .NET windows communication foundation web service. The PHP invoked the .NET service with no parameters, getting the time on server.
Sometime (well, most of the times) you need to pass parameters to the .NET web service. for example you might want to pass a client ID and get back its account balance.
Here is what you do:
PHP calling .NET - PHP to WCF communication
I am done doing my first PHP to .NET interoperability example. In this example a PHP page calls a windows communication foundation (WCF) service in .NET
Here is what we want to create:
First create a "out of the box" windows communication foundation (WCF) WCF service library project.
Language syntax's, performance, PHP, Ruby, Java and who's better? Ahhhh!
Language syntax's, performance, PHP, Ruby, Java and who's better? Ahhhh! -
I was reading on The Server Side and came across this post:
http://www.theserverside.com/news/thread.tss?thread_id=43020#221954
which is part of this overall discussion:
PHP calling .NET - Running WCF service with basicHttpBinding
I am Writing a PHP application that needs to run a back end .NET application. When creating a running the WCF web service out of the box, the PHP could not connect to the web service.
The problem:
The PHP returns "Caught exception: Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'."
The reason:
WCF is running a new version of web services than expected by the PHP.
Ajax persistent Data Objects - AjaxDo 1.1 released!
Release 1.1 adds a fully functional JAVA server-side implementation to the pre-existing PHP server-side implementation. Now, Ajaxdo, AJAX
persistent Data Objects, enables applications can work in a JSP/JDBC environment and port easily from PHP to JAVA and vise-versa.
Code, examples and documentation can be found here.
Drupal rocks!
I just re-created this site using Drupal open source project . It is super easy and very cool to configure. It is also very well supported in the forum and I found all the answers to my questions on site. Thanks Drupal !!


