Home

Spacebug open source initiative

Primary links

  • Get involved
Home

Navigation

  • Documentation
  • Projects
    • Ajaxdo
    • JComet
    • MantaRay
    • Spring-Dashboard
    • JNI.NET
  • Blogs
  • Downloads

Tag cloud

Architecture Ant Drupal eclipse JSP .NET Reviews JavaScript AJAX Tips Open source Java
more tags


Add to Google Reader or Homepage

Poll

Best for web dev:

Recent blog posts

  • Silverlight 2.0 Calculator Example Application
  • Useful tool - Vista Battery Saver
  • Does the open source professional services business model suck?
  • PHP calling .NET - PHP to WCF calls with parameters
  • Adding Spacebug to Technorati.
  • PHP calling .NET - PHP to WCF communication
  • Language syntax's, performance, PHP, Ruby, Java and who's better? Ahhhh!
  • Does Google want us to switch from Internet Explorer to Firefox?
  • PHP calling .NET - Running WCF service with basicHttpBinding
  • Tip: Visual Studio 2008 fails to debug WCF web service
more

User login

  • Create new account
  • Request new password

Interoperability

PHP calling .NET - PHP to WCF calls with parameters

Submitted by Amir Shevat on Wed, 07/30/2008 - 14:58
  • .NET
  • Interoperability
  • PHP
  • Software development

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:

  • Amir Shevat's blog
  • Add new comment
  • Read more

PHP calling .NET - PHP to WCF communication

Submitted by Amir Shevat on Tue, 07/29/2008 - 13:38
  • .NET
  • Interoperability
  • PHP
  • Software development

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:

php-wcf 

 

First create a "out of the box" windows communication foundation (WCF) WCF service library project.

  • Amir Shevat's blog
  • Add new comment
  • Read more

PHP calling .NET - Running WCF service with basicHttpBinding

Submitted by Amir Shevat on Wed, 07/23/2008 - 11:30
  • .NET
  • Interoperability
  • PHP
  • Tips
  • WCF
  • web services

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.

 

  • Amir Shevat's blog
  • 1 comment
  • Read more
Powered by Drupal, an open source content management system
Spacebug.com (c)2006
RoopleTheme