" /> Davanum Srinivas' weblog: March 2005 Archives

« February 2005 | Main | April 2005 »

March 23, 2005

Statistics for Apache Axis project

Thanks to Vadim for adding a page for statistics of Apache Axis project.

Axis-C++ : SWIG based language Bindings for Python

Follow up to my own post, posted a prototype SWIG based wrapper for using Apache Axis C++ with Python to the axis-c-dev mailing list.
Google Spelling web service from Python.

March 21, 2005

WSDL for Norman Walsh's WITW web service

WSDL for Norman Walsh's WITW web service (Technorati tag - )

March 20, 2005

Excellent intro to GNU Classpath Ecosystem

Link to Mark J Wielaard's presentation.

Stack Traces - Should this make me happy or sad?

I was browsing the Google Adwords API forums and saw this stack trace. And the question is should this make me happy or sad? (Happy because google is using Axis. Sad because there was a problem). In this case eventually all's well, so am happy.
 org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
        at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
        at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
com.google.gse.HttpConnection.runServlet(HttpConnection.java:363)
        at com.google.gse.HttpConnection.run(HttpConnection.java:313)
        at
com.google.gse.DispatchQueue$WorkerThread.run(DispatchQueue.java:219)

Cleanup Gmail Trash

I can stop complaining now. Finally figured out how to delete all emails from gmail's Trash folder...Got the sources for GMail API For Java (g4j), mucked around with it for a bit and came up with a simple gmail.test.EmptyTrash command line. g4j uses Commons HTTPClient to do the heavy lifting. I had to tweak the g4j login code (to gmail) to get it working. Wish i had not reformatted the code, then i could just have submitted it back to g4j as a diff. Get the full zip here.

PS: Read the G4J FAQ before you run the command line.
PPS: Had a lot of help from FireFox's DOMInspector, the LiveHTTPHeaders plugin and last but not the least the sources of Mail::Webmail::GMail

March 15, 2005

Apache Axis and Microsoft .NET Interop

Many thanks to Dino Chiesa, .NET Product Manager at Microsoft for updating the Axis Wiki that deals with interop with Microsoft .NET and for actively helping axis user community understand how to get things work.

March 13, 2005

Lack of layering in WS

Read this email from Tim Berners-Lee to the WS-Addressing WG and then read this email thread about signing EPR's with WS-Security and tell me what you think :)

March 11, 2005

How to lock yourself out of your gmail account

Previously i complained about not being able to clean up the accumulated email in my trash folder. So i decided to try Mail::Webmail::GMail as there was a sample in the readme that shows how to clean up your spam folder. It was not too difficult to look at the code and make some changes to delete stuff from the trash, but apparently google does not want u to clean up the trash, so they locked me out of my gmail account and i have a forced hiatus from all my open source work for 24 hours. sigh!.
lock.png
Here's the code if u want to shoot yourself in the foot :)
use Mail::Webmail::Gmail;

my ( $gmail ) = Mail::Webmail::Gmail->new( 
            username => 'davanum', password => 'XXXXXX', );

my $messages = $gmail->get_messages( label => $Mail::Webmail::Gmail::FOLDERS{ 'TRASH' } );
if ( @{ $messages } ) {
    my $test = 0;
    foreach ( @{ $messages } ) {
        print "MSG: " . $_->{ 'id' } . " trying...\n";
        #$gmail->delete_message( msgid => $_->{ 'id' }, search => 'spam', del_message => 1 );
        $gmail->delete_message( msgid => $_->{ 'id' } );
        if ( $gmail->error() ) {
            print $gmail->error_msg();
        } else {
            print "MSG: " . $_->{ 'id' } . " deleted\n";
        }
	$test++;
	if ( $test == 100 ) {
           last;
	}
    }
}

March 08, 2005

Hiding Google Ads in web sites that you visit

If you really dislike ad's consider FireFox's Adblock extension. I was playing with a tiny greasemonkey extension to hide google ads present in web sites (say for example here - Annogen) and came up with this script.

March 07, 2005

Hiding Google Ads in Gmail

OK. This excellent greasemonkey based tweak for GMail from mihai is a life-saver (though i can't use it - details below). I was able to spend a few minutes on it (and FireFox's DOM Inspector) and am now able to hide the Google Ads in Gmail as well. However, Google's policy lists "Reformat or frame any portion of the web pages that are part of the Gmail Service" as one the of the prohibited actions, so can't share it publicly or even use it on a regular basis.

Viewing Gmail in basic HTML

http://gmail.google.com/gmail?ui=html&zy=n

FAQ: How do i ensure a web service is WS-I compliant?

Q: Can one say that his/her developed webservice is WS-I compatible if the framework using which one developed that particular webservice is WS-I compatible? Are there any other criteria that are to be considered to certify that a web service a developer codes is WS-I compatible?

A: The best way to certify that a service is WS-I compatible is using the WS-I testing tools. Basically you run the WSDL, ensure compliance and then run all soap messages to check if messages are compliant as well.

March 01, 2005

WS-HTTP / WS-REST

David,

Now that all of us (WSDL WG, WS-ADDR WG) are in Boston W3C Plenary. Should we revisit Sam's WS-HTTP Proposal and your response?

Axis 1.2 RC3 (Final Release Candidate)


Hi all:

The Axis team would like to announce the release of Axis 1.2's third (and final) Release Candidate. This will be the LAST RC before 1.2 goes out. We expect to cut the final release in about a week's time (March 9th-10th).

This release has passed the JAX-RPC and SAAJ TCKs (barring a couple of tests we are challenging because we feel they are incorrect). Lots of changes for better doc/lit data binding, bug fixes (including workarounds for .NET problems), etc.

You can find it at:
http://www.apache.org/dist/ws/axis/1_2RC3/

Please pull it down, kick the tires, and forward any comments to axis-dev@ws.apache.org!

Thanks,
--Glen on behalf of the Axis team

Axis-C++ : Language Bindings for PHP, Perl, Python

Problem: I've heard nelson minar, adam trachtenberg, peter yared complain about not-good-enough web services support for scripting languages.

Solution: We can create language bindings on top of the fast paced (release-wise) Axis-C++ project to make things better. This has to be a community effort. Anyone wanna help?