I'm getting this error message when I try to create a Stream Topic with a simple query:
SELECT CaseNumber, Owner, CreatedBy,Status, EngineeringReqNumber__c from Cases
Error Creating Push Topic:
sObject type 'Cases' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.
How do I know which obect supports streaming? Is there a way to set the object to Streamable? I can stream the Account object fine. What's the difference between Account and Cases?
Just going through the sample describe in Force.com Streaming API developer guide. I have created the Push Topic and sucessfully tested on Workbench. Now want to see if I can have external java client to receive the same notification message.
So I get all the jar file and sample code into eclipse. Changed the user and password. But cannot seem to get it going. Keep getting login fail. What other step do i need to get this example running?
Running streaming client example....
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>UNKNOWN_EXCEPTION</faultcode><faultstring>UNKNOWN_EXCEPTION: Element type "soapenv:Envelope" must be followed by either attribute specifications, ">" or "/>".</faultstring><detail><sf:UnexpectedErrorFault xsi:type="sf:UnexpectedErrorFault"><sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode><sf:exceptionMessage>Element type "soapenv:Envelope" must be followed by either attribute specifications, ">" or "/>".</sf:exceptionMessage></sf:UnexpectedErrorFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>