Axis 1.x payload debug

When using Axis to send data to a web service, you can set the logger level on org.apache.axis.transport.http.HTTPSender to DEBUG to see what’s going on. 

Anyway be careful: the system will produce a lot of logs, so use it only in developement mode! 

Here’s a sample in log4j.properties: 


log4j.logger.org.apache.axis.transport.http.HTTPSender=DEBUG
log4j.logger.org.apache.axis.client.Call=DEBUG
log4j.logger.org.apache.axis.client.AxisClient=DEBUG
log4j.logger.org.codehaus.xfire = DEBUG
 

The last line line is for xfire 

The axis Call object is used by the autogenerated stub, so it is userful when you are calling using them.

Another good option is to enable the apache http client tracing.

iPhone programming

iPhone is the brand-new Apple product which has changed the way Apple thinks. Because of iPhone, Apple strip the word "Computers" from its brand name. And because of iPods and iPhone products, Lepoard developmenet slip a bit, blurring the focus on pure technology.
To be true, I do not beat on  the iPhone success, but the product success is at least  bright this year. And the iPod touch has also added value to the iPods product catalog. But I am an IT-man, damn you boy! So I want to buy it to play with it, to program with it!

The iPhone Open Application Development, is a fresh book on iPhone Developement, edited by O'Reilly which come into play. The book has less then 280 pages, and is well organized. First of all, the bad news: the book lacks figures and tables (only one, and not so useful) and no Photo on it. Then breaking the iPod firmware is not a thing Apple likes a lot. As far as I know, it is NOT illegal, because Apple is opening the device too.
Anyway, breaking the iPhone firmware can prevent you to get the upgrades so, you must know what you are going forward to do.

And now the good news: the book is well written, and guide the user from the beggining to the end.  There are a lot of way to free the iPhone from the jail.

After that, you can also use Linux to program on the iPhone, where the Apple SDK seems only "PC Mac"-enabled.

The book is composed of 7 chapters. After unlocking the iPhone (first chapter), the author explain us how to write code for it, and what is Objective-C. Objective-C is a very nice idea developed by Brad Cox, in the 1980. It is a C++ language "ante litteram". I like the ideas of Objective-Ch because you get the power of C for fast tasks (like  you know, coding your quicksort or your perfect B-trees :) and you get a true dynamic O.O. language, like SmallTalk is. Objective-C was not so lucky, and there are only two major implementation: the GNU one and the Apple one, used to build the entire MacOSX.
I have no time to study it a lot, but I suggest you to code the iPhone in Objective-C.
Then the books start to explore iPhone features like:

  • Basic user interface building blocks
  • Graphic Services and animation effects. You get also a Coreflow-like animation in the Appendix
  • Sound Control
  • Deep integration. A nice thing is the way to make calls: you simply ask the emmeded Safari to open a "tel://" url

The code presented is always very compact, and the style is nice.
The Appendix give us a lot of code samples.

Programming a so riche device is not easy, but the good news is you have a full O.S. to work with.
Java midlets and J2ME are much more difficult to use, if you will find your way with Objective-C.
A very good book, for very nice techno-guys, and not (only) for nerds!

 

 

 

Apple as hardware only company

In the last year, "Apple Computer" has changed a bit its focus.

First of all, Apple has erased the  word "computer" in the company name.

Then,  has shifted its focus on new products like the iPhone.

iPhone is a GSM telephone, and so it is quite different product for a computer company.

I see a very huge and strong alliance within these players:

  • Apple (hardware part)
  • Disney (via the Pixar,Steve Jobs can ask some movies to Disney :)
  • Google/YouTube (media and "network computer" part) 
  • Sony: HD Video consumer/DVD standards and so on

Apple software part is true strong, but it will be difficult to hunt competitors if the company is busy building new hardware.

It'd be better to focus only on one thing.
MacOSX is a very innovative product, but its developement had become slower in the last nine months.

Leopard is not so innovative, and it is similar to Vista: a lot of GUI fetures, but little on the surface.
And last, Lepoard is still quite slow and sub-optimized, for being a full MacOSX release.

 

Software Trends1

The trends of this october are about some upcoming products.
A clear analisys of QuarkXPress failure si sketched in roughlydrafted site.
I do not think the same consideration can be applied to Vista.

As Joel said, M$ can throw away much money before only starting to see its market reduced.

This lead me to the (hoped?) big fear of M$ for open source.
It is a dream, baby.

Open Source in Italy has success because of high costs of developement library.
When I tried to look for a commercial application to delivery some web graphic stuff, the prices was crazy.
The Open Source solution needed us only to buy a book(!).
Open source deliver a sufficient quality at low mantenance costs.
A smart developer in a 3-people team can set it up and deliver a small project.

If really M$, Sun, IBM’d start fear open source, they can cut their prices of 70% and all the drama will end quickly.

But the truth is Linux is not evloving: it is growing in the SysAdmin area only, popping out old dinosaurs like Sun Servers, replaced by cheap PC.
Sun Servers needs custom monitor and mouse (!) and their price is high compared to equally fast high-end pc.

The server segment is so over-priced that even Apple has succesfully proposed its over-priced servers (this is very fun!).

In the last five years I have seen no new on operating systems, or strong standard evolution.
EJB specs seems quite dead, hibernate is old, and the only “new” ideas are RubyOnRails and… PHP5.

On programming languages python seems growing well.

By the way there is much hypo on Ruby, but its base class library is very small compared to python or perl.

Ruby community is very well organized and can eventually bring Ruby to success, but for the meantime I see more success on PHP if you need a rock solid road.

Finally I have started to work on Squeak Smalltalk Weekly News, and I suggest you to look at it sometimes.