Thursday, March 30, 2006

 

eBay the next generation

Hello once again!

I know two posts in one day, does this guy ever do any work? I assure you I do and this is what this post is going to be about. Specifically the newest incarnation of the eBay web service api. I have written a few small applications now that use the ebay api (of which I will now refer to it as epita - [eBays Pain In The Ass]). Now, I will start by saying that I respect ebay for their service and the fact that they even opened up an api. What I do not respect is the fact that they appear to have their heads up their asses. The reason I say this is that although the api documentation is LARGE it says very little. As a developer I like to hit up a doc, find the section of intrest (say, GetSearchResults) and have all the detail I need to make it work for me in that section. Instead ebay has felt the need to thoughly spread the knowlage of how to use a simple REST request like GetSearchResults accross five different documents some of which are legacy documents that will be invalid in a few months as their Unified Schema take a full hold of their service.

I suppose that I am probably asking too little of the system to take advantage of the extensive documentation provided. What ever. The other last pain in the ass thing about ebay and their api is the frigin account integration stuff. You need a Developer Id, Application Id, Certificate, REST Token, Authentication Token, Developer User Id, and Ebay User Id just to attempt at using the api. I think that is a little too much by itself but on top of that you also need to a second set of the credentials above to use their sandbox server. Stupid? I thought so. But who am I? Just the poor sap trying to use their product.

Ok so thats my rant about what I dont like about it so how do I use it?

Well, my method is like this:

1. Grab the schema definition (its an XSD)
2. Create an ant task in my eclipse project to generate the XML bindings from the XSD using JAXB

=================================
target: generate.xmlbinding.ebay
================================= -- /> name="generate.xmlbinding.ebay" depends="clean" description="-- Generates the jaxb binding classes" />
Ebay US Class Generation -- /> file="${dir.schema}/ebaySvc.xsd" todir="./JavaSource"/ />
dir="./JavaSource/com/project/component/ebay/xmlbinding"/ />
level="info" Parsing Ebay Unified Schema... /> jar="${libs.dir}/${lib.jaxb.xjc}" failonerror="true" dir="./JavaSource" fork="true" /> value="-Xmx1000M"/ /> value="-quiet"/ /> value="-p"/ /> value="com.projectcomponent.ebay.xmlbinding"/ /> file="./JavaSource/ebaySvc.xsd"/ /> /> file="./JavaSource/ebaySvc.xsd" /
/>
This creates my XML bound classes for unmarshalling the api call results.

3. Build a suitable wrapper and service class for myself and make the REST calls
4. Bind the results to the correct generated class
5. Serve up with a beer to the end user.

Its simple and it works. I can go into more detail only if there is intrest so leave comments.


Technorati Tags: , , , , ,

 

Performancing in Firefox - The browser is your OS

Greetings one and all,

This is sort of an early post for me as I usually do my blogging later on in the day. So this will be short. I just wanted to direct any of you bloggers out there to this very cool fire fox extension at Performancing that lets you write your blogstuff right inside your browser. So now you can look at a site and blog about it without having to load a new app etc. Its pretty good, and this post was written using it. If this actually makes it to blogger.com then at least I know its a success.

Anyway folks, gota go write an ebay component for the Portal Prophet Platform...

Wednesday, March 29, 2006

 

You need to know when to call it a day

As I write this I am zonked. Not so much in the tired sense but more in the my-brain-has-turned-to-a-puddle-of-goo-and-I-cant-think-good. This became more then apparent when I started asking a non-tech for tech help. God I must be tired! Of course then I began to wonder what the heck could put my otherwise able and creative brain in this state. Did I have a floating pointer hidden from my mental garbage collector? Lets recap the week in a few sentances....

Sunday - Video games (Katamari Dumanche, Grandia 3, GTA:San Andreas, Mario Cart DS, Age of Empires DS) some food etc. No, nothing to turn my brain to mush there...

Monday - Full day of work (on the stupid ass Amazon Alexa Information Service) dam thing is broken as windows. I really wonder at the sliding quality that Amazon is offering in their web services (maybe I'll write more on that in a future blog). So after full day of work its off to the university (Ryerson for you who dont know) as the CE students are giving final presentations on their Software Engineering projects and I have been asked to sit in and evaluate their work. So thats a few hours of life I sacrificed for the greater good. My brain is still functional at this point I think... a little hazy as one group put me to sleep. So after the presentations another group (not the one that put me to sleep) invites me out for beer in a way to thank me for the help I gave them this term. I'm not one to turn down a beer so off we go into Oakem House (on campus pub) where beer was-a-flowin (Ok at this point you probably think "well thats why your brain sucks you drowned it like a kitten in a berlap sack" but I assure you I thought [at the time] that I was fine... I remmeber what I did last night... (see last blog entry)

Today - well maybe I'm just tired, I woke up tired and drank sugar all day and ate candy and had some spicy chicken from BBQ Express. At any rate, I just did not have the energy to blog about tech today. I promise that tommorow you will get a rundown on some tech (I'm using the new Unified EBay Api so I'll tell you all about how I'm not using it).

until next time...

Tuesday, March 28, 2006

 

Demo Camp 4 - Toronto

Hello one and all!

I've switched formats, as I became unispired and disillusioned with my last attempt at keeping an active blog about all my development woes and solutions to those woes. This is the new format and we will see how it goes over the next few months.

So, first off I was at Demo Camp 4 (http://barcamp.pbwiki.com/TorCampDemoCamp4) and I am struck by how large it has grown from the last one I attended. There were close to 150 people from the GTA (Greater Toronto Area for you out of towners). Where the last Code Camp / Demo Camp was held at the tucows headquarters (King & Duffern) in a cramped area (no fault to tucows as it was the largest area they had and I dont think they were expecting so many people to attend) this time it was held at the MaRS building at 101 Collage St. ( MaRS Site ) it has recently been renovated (the building not mars! teraforming takes longer [sorry geek humor]) and the space that we were assembled in was great! I have a feeling that in the future we may have to take on even larger spaces.

So the presentations were very good as usual, and also very fun to participate in. I had passed the word out to the student of a class that I help coach at Ryerson University, also I let the Professor know about the event and he was in attendance. We met with some of the University of Toronto guys (they were at the other code camps too) and we hope to hook up with them in the near future and discuss some mutual intrests in Software Development.

I have rattled on for a bit about some high level stuff, my goal with this new blog is to provide an ongoing diary of the problems I encounter (technical and other) while working as a software developer. The next blog will be about the Amazon Web Service API's and why I think they are not all they are cracked up to be. I'll show some issues I have encounterd while trying to integrate them in the publishing platform I'm working on code named Portal Prophet.

So long for now....

This page is powered by Blogger. Isn't yours?