You need to sign in to do that
Don't have an account?
ssuede7
custom field query error
Hi
I have created a custom boolean field in my Solutions. When I try to run a query that includes this field, I get an error:
org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.Solution - TopSolution__c
I have generated a new WSDL file and recompiled. I have looked in the source code to verify that the custom field has indeed shown up.
Here is the query I am using (jSP):
QueryResult qr = sforceLogin.getBindingStub().query("select solutionname, solutionnumber, TopSolution__c from solution where solutionnumber = '00000012'");
Any Ideas??
I have created a custom boolean field in my Solutions. When I try to run a query that includes this field, I get an error:
org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.Solution - TopSolution__c
I have generated a new WSDL file and recompiled. I have looked in the source code to verify that the custom field has indeed shown up.
Here is the query I am using (jSP):
QueryResult qr = sforceLogin.getBindingStub().query("select solutionname, solutionnumber, TopSolution__c from solution where solutionnumber = '00000012'");
Any Ideas??
I am running Tomcat. After I generate the java from the wsdl2java, I take this code and place it in the WEB-INF/classes dir. It seems however that tomcat won't compile that new code. So I attempted to manually compile it, but it didn't seem to help. I am still getting the "java.lang.NoClassDefFoundError: com/sforce/soap/enterprise/SforceService (wrong name: SforceService)"
Somebody please help. I have been tring to figure this out for hours and I'm working on a deadline. Any comments would be welcome.
Try creating a war file and deploy that each time you make a change.
What was your compilation problem? I may be doing something similar.
thx,
David
David