Showing posts with label rest. Show all posts
Showing posts with label rest. Show all posts

Wednesday, October 22, 2008

Book on RESTful PHP Web services

Aha! Another RESTful Web services book .. this time by WSO2's own Samisa Abeysinghe, father of Axis2/C and now our Director of Engineering. Gotta love it!



You RESTafarians out there have to check this out .. given Samisa's WS-* credentials I'm sure there'll be some people who try to dismiss it outright. Give it a read and see .. I'm sure Samisa would be happy to get feedback and respond to it appropriately!

This is now the 3rd book by a WSO2 person: Samisa's, Deepal's one on Programming Axis2 and the one I wrote (prior to WSO2) on Web services. The WSO2 people authored bookshelf is growing! AWESOME!!

CORRECTION:
Glen has reminded me that he, Paul and others wrote the Building Web Services in Java book too! So, that makes 4 (and counting)!

Tuesday, September 16, 2008

Blog on describing REST with WSDL 2.0

Check out Keith's blog on how to describe this REST scenario (posted by none other than Stefan) using WSDL 2.0. He does an existential proof of it showing not only how to describe it with WSDL 2.0 but how to implement it using the WSO2 Mashup Server.

Stefan, are you still not convinced that WSDL 2.0 can describe any REST scenario properly? If not please post another challenge.

I'd also like to challenge REST fans to show how the implementation Keith did is materially different from say a Java implementation that uses JAX-RS (Java API for RESTful Web Services - JSR 311) annotations (or any other Java programming model that you want).

Thursday, September 4, 2008

REST-* begins to take shape

See: AtomPub Multipart Media Resource Creation! Basically how to do SwA or MTOM type stuff with Atom.

Ah Tim, better start printing these out so that you can count the pages when REST-* is all said and done.

Sigh. Its really too bad that we are now going to re-invent it all around Atom.

Friday, July 25, 2008

Its over the hump Tim .. give it a rest

Sigh. Tim Bray didn't get the memo: REST is now beyond the peak of the hype curve and is sliding down. Waay down.

Just because I can't resist: so Tim, REST does need tools now?? Funny how the world turns, eh? I thought you and the rest of the REST fanatics have argued violently saying how REST doesn't require tools, doesn't require WSDL or equivalent etc. etc.. I guess we will end up with REST-* before its all said and done with.

The other topic Tim touches on is how the world is now not all about Java. On that we agree .. except:
"Up until two years ago, if you were a serious programmer you wrote code in either Java or .Net,"
Er, dude, which planet have you been on? Two years?? PHP has been kicking Java's butt for 5+ years!!!

The multi-language boat sailed a LONG time ago and Sun (as usual, I should add) kept sticking its head in the sand waiting for it to blow over. Of course it didn't and it will not. Now that Sun has finally started recognizing that not everyone will love Java, I guess its time for the mouthpieces to speak up and try to spin it positively saying they did it at the right time. Sorry, you guys missed the boat. Badly.

In any case, Sun still doesn't get it. Neither does IBM. The JVM will not be the only runtime to run languages - while its cool to implement PHP like syntaxes on the JVM etc., you are going to have to learn to live in a world where not everything runs on the JVM and all of those crappy JSRs that have been done in the last 10+ years have absolutely no meaning. (In fact, most of the JSRs only apply to Java the language .. making them even more irrelevant).

Of course there are (and will be) some great languages on the JVM: Groovy, JRuby and more. However, even if JRuby performs better on the JVM than Ruby native (which is of course because the Ruby impl ain't great) that doesn't mean that that strategy will work for all. Seriously, try doing JErlang in that case.

The world is inherently heterogeneous, even in languages and language runtimes. There are 3 core platforms in existence today: C, JVM and .Net CLR. Every language runs on top of one of those. Sticking your head in the sand in only one of those will automatically limit the market you can address.

(Plug for Axis2 & WSO2.) This is exactly why when we started the Axis2 project back in August 2004, we intentionally stayed away from burning Java JSRs into the core of it. That's also why we explicitly made design decisions that could be realized in both Java and C. I actually always wanted to do a .Net version of Axis2 too, but never quite got around to it. The idea was to cover all the bases.

This is also why when we started WSO2 in August 2005 that we decided to invest heavily in building Axis2/C in addition to Axis2/Java. We now have coverage for Java, Javascript, Jython, Groovy, Grails, Spring, C, C++, PHP, Perl, Ruby. Python is coming and Erlang too hopefully soon.

Oh yeah we support both WS-* and RESTful services. However, they won't meet the RESTafarian fanatics like Tim Bray's coolaid drunkenness level of REST .. but if you want to do pragmatic work with services and support either or both of WS-* and REST then take a look at Apache Axis2 (Java & C), WSO2 WSAS, WSO2 Mashup Server, WSO2 WSF/{C,C++,PHP,Perl} etc...

Tuesday, February 26, 2008

Balancing WS-* vs. REST

Interesting article about WS-* vs. REST .. worth the read (and not only because I'm metioned ;-)).

Wednesday, January 23, 2008

Blog about PHP Web services

Samisa, Nandika and the rest of the gang working on PHP Web services have a new blog - http://phpwebservices.blogspot.com/. If you want to keep an eye on PHP Web services (both WS-* style and RESTful stuff .. more to come on the latter) then subscribe!

Sunday, January 20, 2008

WS-* vs. REST again

ARGH. I wrote this piece back in September or October (I can't even remember)- way before the two talks I gave on WS-* vs. REST in November. They were supposed to publish it around then - for some reason they held it and published it now. I wasn't trying to rekindle that debate!

It looks like that article has triggered quite a bit of response, including Mark Baker saying sayonara to this debate.

First of all, I want to say that I'm also really tired of this debate. Its no longer an interesting debate because pretty much everything that can be said has been said. People who are open minded have listened and those with closed minds have decided their positions. When new people run into this debate I'm sure they will find some of this debate in the bowels of the Internet and use it to make up their own minds.

Just for the record- I certainly do not believe that WS-* all busted as the RESTafarian camp seems to think. I certainly do believe that RESTful solutions have their place- the fact that the WSO2 Registry is a purely RESTful system should make that clear. I'm disappointed that the technical literati haven't been able to find a common ground but I guess that's not surprising - this is no different than other religious battles.

When I find the time I will write a long article on where I think each approach is suited for. One of these days.

Thursday, November 22, 2007

REST vs. WS-*: Facts, Myths and Lies

I recently gave a talk on REST vs. WS-* at both QCon San Francisco and ApacheCon US. The slides can be found on WSO2 Oxygen Tank. I suggest reading the ApacheCon slides as those are slightly updated from the other one.

At ApacheCon Roy Fielding spoke right before me on REST. It was great to listen to Roy present his vision and to hear about REST from the horse's mouth so-to-speak. It was an honor to have him introduce me and then to have him right there to provide additional anecdotes and corrections to my points :).

Comments welcome, especially from those who feel I got it wrong (on either side).