Hi,
I'm having terrible trouble with not getting any results from Calais, it appears to return nothing at all. It happens frequently, probably more often than not in fact. Below is an example query (urldecoded) which did not work. Note what I assume is apparently invalid unicode.
http://api.opencalais.com/enlighten/rest/?licenseID=REMOVED¶msXML=<c:params xmlns:c="http://s.opencalais.com/1/pred/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><c:processingDirectives c:enableMetadataType="GenericRelations" c:omitOutputtingOriginalText="true" c:calculateRelevanceScore="true" c:contentType="text/html" c:outputFormat="xml/rdf"></c:processingDirectives><c:userDirectives c:allowDistribution="false" c:allowSearch="false"></c:userDirectives><c:externalMetadata></c:externalMetadata></c:params>&content=David Cameron is learning that debt is the enemy
Only cuts in spending and taxes will drag Britain out of this financial
crisis, says Iain Martin. David Cameron is brave to assert that more debt is not the solution to the financial crisis
Photo: AP. When a great many lies have been told, the antidote is usually truth. This can hurt, but without it the possibility of recovery and future happiness is remote. And so it is with today's crisis of capitalism. If an excess of debt built with cheap money was the cause of the crisis â and it was â then more debt is not the answer. Aligning their party with this most basic but vital of insights was, as the essential Tory website Conservative Home put it, "Cameron and Osborne's bravest and loneliest decision". When the Tory leadership decided to oppose Gordon Brown's plans to borrow and spend his way out of the "Depression", as the Prime Minister called it yesterday in a revealing slip of the tongue, they were virtually alone in the western world. Originally, almost everyone in a position of authority declared the Tory position to be economically illiterate: spending and greater borrowing were the only ways to stimulate demand and avert disaster. But "everyone", bar a handful of economists and commentators, had said that the long boom based on debt would never go bust. Then it did, and the same people â "everyone", again â quickly started demanding boosterism to reinflate their burst bubble. Observe the mess created by those who believed in the old consensus. Why should we now accept the new consensus arrived at by the very same individuals? The truth is that Britain produced too little, spent too much and then paid for it on tick. Correcting that state of affairs will require a painful adjustment if we are to rebuild. How is it to be done? At Westminster last night, the Centre for Policy Studies and The Daily Telegraph joined forces to host an event entitled: "As the economic crisis deepens, does the Conservative Party have the right answers?" As one of the speakers, my response was: "It is getting there, after a slow start." The Tories have stopped saying they will stick to Labour's spending plans. But they have not yet arrived at a position where they are comfortable with the idea of a cut in overall government spending. This must change: the situation demands serious cuts. The next Conservative government will have two economic duties if it wants Britain to live within its means. First, it will have to limit and then cut ballooning government borrowing, in order to restore international confidence in the British economy. Second, it will need to first limit and then substantially reduce the taxation burden on those who can dig Britain out of the slump: individual workers, entrepreneurs, companies and, perhaps most importantly, savers. This will require we Britons to alter drastically our expectations of what the state can do for us. Do we think it entirely the responsibility of an inefficient council bureaucracy to ensure that our child's school opens in extreme weather? Or do we think that a head teacher in charge of a liberated institution is more likely to show initiative, in concert with engaged staff and parents? After the events of this week, the answer should be obvious. It is here that the Cameroon argument about the "broken society" meets an emerging economic agenda. We have entrusted too much to an expensive, inefficient and centralised state and must instead enable greater co-operation between free individuals and free institutions. The resulting dividend, of lower spending and taxes, can then be put to work in the most efficient way possible: capitalists and free marketeers, in pursuit of a return, can create national wealth and dig the country out of the trouble in which Brown has landed it. In the current climate, it is difficult to make this a convincing argument. Capitalism, for obvious reasons, has too few defenders, and needs its case put in a way which might persuade the nervous and doubtful â the voters, in other words. David Cameron has spoken of a moral capitalism; given the scale of the battle free marketeers will have to fight, he is right to do so. Sufficient numbers might vote for the truth that free markets and the innovations they produce are our best hope of renewal and growth. But they will only do so, I suspect, if they are persuaded there is adequate regulation to control the anti-competitive activities of monopolies and limit the most reckless behaviour. In essence: voters will ask whether everyone is playing by the rules. Cameron acknowledges that capitalism requires popular consent to thrive, and so wants the answer to be "yes". To that end, there is a most important reform the Conservatives should undertake: they should abolish all taxes on savings. The fall of saving to its lowest rate in this country since 1959 happened as personal debt soared to record levels. The position needs to be reversed. Saving is responsible capitalism in action. A new generation must learn that savings provide insulation against tough times, security for their families and capital for banks to lend on, sensibly, to those who will create a return and personal and national wealth. This is the virtuous circle of capitalism, and it is the starting point for sustained recovery. 'I did my research and bought the shares. A week later they halved.' See the best of this week's entries in our travel photography competition. Watch concerts in your living room and download live music videos today. Search thousands of opportunites in every sector.

Hi,
Thanks for your very detailed response, it appears it was indeed a restriction on GET lengths.
Hello NewsGrail,
I tried your query but got perfect results.
So, I'm guessing here, but it could one of 2 things:
1. You are using HTTP-GET, meaning everything goes on the URL string (query-string).
Some client-side will not allow that long text to be submitted like that.
2. UNICODE char that messes-up the endcoding-decoding .
Could be that pasting it back and forth, to forum and then back, has altered your original text. I do see something suspicious : people â "everyone", again â quickly .
Regardless, your are specifying "text/html" as content-type, but text is plain.
(this is not the issue - I did the same but got results - just drawing your attention to this, in case you want to change it)
So, It would be great if you could provide more info, as follows:
1. What client are you using ? Browser ? JS ? java ? c# ? Other ?
2. Can you attach the original contant as a text file ? (UNICODE/UTF8)
3. What is the exact response you are getting ?
4. I'm pasting below a short HTML file for you to try POST, instead of GET.
Please try to submit your content through it - it is very easy and self-explanaotory.
Save it to disk as an HTML, double-click it, paste your data, and submit.
If it works, then it must the long URL string.
Looking forward to your response.
Meir
==============================================================
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>OpenCalais test page</title>
</head>
<body>
<form action="http://api.opencalais.com/enlighten/rest/" method="post" accept-charset="utf-8">
licenseID: <input type="text" name="licenseID" />
<input type="submit" /><br />
content: <br />
<textarea rows="15" cols="80" name="content" ></textarea><br />
paramsXML: <br />
<textarea rows="15" cols="80" name="paramsXML" ></textarea><br />
</form>
</body>
</html>
==============================================================