User offline. Last seen 2 years 39 weeks ago. Offline
Joined: 04/27/2009

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

Login or Register to post a comment.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
User offline. Last seen 2 years 39 weeks ago. Offline
Joined: 04/27/2009

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

User offline. Last seen 2 years 17 weeks ago. Offline
Joined: 06/01/2008

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