Showing posts with label NuSOAP. Show all posts
Showing posts with label NuSOAP. Show all posts

Comparing Hello World

Friday, February 1, 2008

I posted Hello World Services and Hello World Clients with PHP SOAP extension, NuSOAP and WSF/PHP.

NuSOAP looks the most clean, with its natural mapping for PHP types to service request/response serialization. Native SOAP extension again can deal with PHP types, but there are problems when it comes to customizing element names the way we wish.

WSF/PHP code looks more bulky, because of the XML in-out model. However it has the advantage of being able to control the payload the way we wish.

The key point is that, as far as the API is concerned, the three alternatives are not that much apart. They look almost the same. For a service, you define a function and declare that function to be an operation of the service. For a client, you provide the service endpoint and send the request with the required parameters.

One thing to note with SOAP extension and NuSOAP is that you have to register the operations one by one. For small services this is fine. But if you have 5, 10 operations, this would mean multiple calls. With WSF/PHP, you can provide an array of operations.

Anyway, the bottom line is, all three are usable simple for the simple cases.

I would like to visit WS-Addressing with PHP in the near future and see how these Web services framework would support that spec.

NuSOAP Feature List

Thursday, January 24, 2008

I was looking for a feature list of NuSOAP. I could not find any. There is a chengelog file that comes with the source zip package, but that does not list the features as such.

The documentation zip package too does not mention anything on the current set of features, only the API docs are there.

The project page mentions:

It is a set of PHP classes - no PHP extensions required - that allow developers to create and consume web services based on SOAP 1.1, WSDL 1.1 and HTTP 1.0/1.1.

One of these days I will compose one to see just what it offers at a high level for the benefit of the new users.

WSDL with NuSOAP

Thursday, January 10, 2008

Yesterday I blogged about the WSDL generation capabilities of PHP Web services framework.

I found this article on NuSOAP WSDL support. Basically the article describes the WSDL mode equivalent supported by NuSOAP.

NuSOAP as well as WSO2 WSF/PHP are open source projects. NuSOAP comes with LGPL license and is implemented in PHP. WSO2 WSF/PHP is written in C and comes with the Apache 2.0 license.