You need to sign in to do that
Don't have an account?

Not able to query custom objects - Invalid element in com.sforce.soap.enterprise.sobject.SObject
Hi there,
I am trying to query custom objects 'Quote'. I am using the enterprise WSDL.
I am trying to query custom objects 'Quote'. I am using the enterprise WSDL.
a) The query runs from the SForce explorer and returns the results.
b) I am able to get the metadata for the object 'SFDC_520_Quote__c'.
c) The following java code throws an exception
b) I am able to get the metadata for the object 'SFDC_520_Quote__c'.
c) The following java code throws an exception
qr = binding.query("select Id, opportunity__c from SFDC_520_Quote__c");
Exception:
Sep 18, 2006 5:30:22 PM org.apache.axis.client.Call invoke
SEVERE: Exception:
org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - Opportunity__c
at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
...
Sep 18, 2006 5:30:22 PM org.apache.axis.client.Call invoke
SEVERE: Exception:
org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - Opportunity__c
at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
...
Am I missing something or is there a bug? Please help.
Sudheer
HI Cheers ,
No cheers I am using the new Generated WSDL file & the stubs Iam using are also genertaed from that new file only.I am able to get metadata of
"SFDC_520_Quote__c" Object using.
DescribeSObjectResult[] describeSObjectResults = binding.describeSObjects(new String[] {"SFDC_520_Quote__c"});
But iam not able to query that object.
So please help me ...
Sudheer Tumu