While I don't exactly agree with the government's harsh treatment of the guy who leaked it (he hasn't been convicted yet), I definitely am against what Julian Assange and Wikileaks did. It was disgustingly childish and seems like Julian Assange just liked the idea of feeling like some kind of spy, just to get some attention. I'm not against some of Wikileaks other leaks, such as various examples of violations of human rights by the Chinese government, etc, the leaks related to America's war in Afghanistan contained no hidden "area 51" type conspiracies or stories, it simply was a long list of screw ups, such as the accidental shooting of civilians who appeared to be armed, negative comments made about a country in an email from a politician, etc. These leaks will simply place tension on international relations and further inflame the current situation in Afghanistan. Extremists now have even more fuel to inflame civilians against the UN.
These kind of classified documents are kept classified until the situation in the foreign country stabilizes, just like documents related to the war in Vietnam were released in the years after the end of it. There was no reason to release them other than to draw attention to themselves and jump on the bandwagon of Anti-American attitude common in many countries.
As for the charges of rape brought against just after the leaks, that's obviously a smear campaign from the US just to shut him up, which is a stupid way to handle it since it just gives him more to cry about in interviews. Still, he knew full well the US government wouldn't just sit back and watch him dump a ton of sensitive documents onto the internet, so I feel no sympathy for him since his reasons were stupid and immature.