Alway get an "invalid request" from the web service
Alway get an "invalid request" from the web service
Posted on: Thu, 04/30/2009 - 04:40
I am unable to get a reply from the REST HTTP web service, both at api.opencalais.com and beta.opencalais.com.
I tried both the HTMLform.htm example file provided in the documentation and my own client.
I use the following parameters:
<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:contentType="TEXT/RAW" c:enableMetadataType="GenericRelations" c:outputFormat="xml/rdf" c:calculateRelevanceScore="true" c:omitOutputtingOriginalText="true" > </c:processingDirectives> <c:userDirectives c:allowDistribution="false" c:allowSearch="false" c:externalID="1234567890" c:submitter="Nepomuk"> </c:userDirectives> <c:externalMetadata> </c:externalMetadata> </c:params>
And always get:
Invalid request format - the request has missing or invalid parameters
As content I tried a longer text and also a short one. What could be the problem here?
Trackback URL for this post:
http://www.opencalais.com/trackback/21094

Thanks a lot for answering.
I feel so stupid now. You are completely right. I missed one character when copying the key from the email. :P
Now it works.
Cheers,
Sebastian
Hello Sebastian,
There is nothing wrong with your paramsXML - it is OK.
The problem is on the HTTP level.
Can you please provide more details:
1. What is the exact URL that you use ?
2. What is the nature of your own client ? Java ? Csharp ? A code snippet could be helpful.
3. We had seen the error (Invalid request format) before, mainly with issues related to licenseID. Please double-check that the name "licenseID" is spelled Ok, and that the key is indeed a valid one.
HTH
meir