Hi,
I am trying to use the SOAP API call, and getting a "content is invalid" error.
I couldn't find any documentation for this error type.
Here is the SOAP exchange:
*** Outgoing SOAP ******************************************************
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>
<SOAP-ENV:Body>
<Enlighten SOAP-ENC:root="1">
<paramsXML xsi:type="xsd:string">%0A%3Cc%3Aparams+xmlns%3Ac%3D%22http%3A%2F%2Fs.opencalais.com%2F1%2Fpred%2F%22+xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%3E+%0A%3Cc%3AprocessingDirectives+c%3AcontentType%3D%22text%2Ftxt%22+c%3AoutputFormat%3D%22xml%2Frdf%22%3E+%0A%3C%2Fc%3AprocessingDirectives%3E+%0A%3Cc%3AuserDirectives+c%3AallowDistribution%3D%22false%22+c%3AallowSearch%3D%22false%22+c%3AexternalID%3D%22a%22+c%3Asubmitter%3D%22alerts%22%3E+%0A%3C%2Fc%3AuserDirectives%3E+%0A%3Cc%3AexternalMetadata%3E+%0A%3C%2Fc%3AexternalMetadata%3E+%0A%3C%2Fc%3Aparams%3E%0A</paramsXML>
<content xsi:type="xsd:string">My Name Amit Aviv</content>
<licenseID xsi:type="xsd:string">MyLicenseId</licenseID>
</Enlighten>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************************************
*** Incoming SOAP ******************************************************
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><EnlightenResponse xmlns="http://clearforest.com/"><EnlightenResult><Error Method="ProcessText" calaisRequestID="2bef85a0-7614-4eff-a6d0-1bdec64476b4" CreationDate="09/23/2008 13:47:27" CalaisVersion="R3.0_7.1.1131.5"><Exception>content is invalid: 'null' .</Exception></Error></EnlightenResult></EnlightenResponse></soap:Body></soap:Envelope>
************************************************************************
Please help
Thanks, Amit

Comments
Hi Amit,
Are you using any kind of client-side SOAP layer to form your SOAPrequest, or are you constructing it manually ?
It seems that your SOAP-envelope is not in the expected format, appropriate for the .NET framework.
SOAP has several 'flavors' and nuances; if you go to
http://api.opencalais.com/enlighten/calais.asmx?op=Enlighten
you can see the expected format of the SOAP-envelope on that page.
Please make sure to comply with that format.
ALSO:
Your paramsXML is URL-encoded, which is wrong!
You should NOT url-encode when using SOAP.
In order to pass paramsXML through the SOAP-env, which is XML-based, you need to XML-escape it:
Replace all "<" with ""<" , etc.
HTH
Meir