function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Best Answer chosen by Admin (Salesforce Developers) 
EclipseTalkEclipseTalk
 I fixed it by using the binding below by having JAXB automatically resolve name conflicts....
<bindings
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://java.sun.com/xml/ns/jaxws">
<bindings
node="//xsd:schema[@targetNamespace='urn:enterprise.soap.sforce.com']">
<jaxb:globalBindings
underscoreBinding="asCharInWord" />
<jaxb:schemaBindings>
<jaxb:nameXmlTransform>
<jaxb:typeName
suffix="Type" />
</jaxb:nameXmlTransform>
</jaxb:schemaBindings>
</bindings>
<enableWrapperStyle>false</enableWrapperStyle>
<enableAsyncMapping>false</enableAsyncMapping>
</bindings>

All Answers

EclipseTalkEclipseTalk
 I fixed it by using the binding below by having JAXB automatically resolve name conflicts....
<bindings
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://java.sun.com/xml/ns/jaxws">
<bindings
node="//xsd:schema[@targetNamespace='urn:enterprise.soap.sforce.com']">
<jaxb:globalBindings
underscoreBinding="asCharInWord" />
<jaxb:schemaBindings>
<jaxb:nameXmlTransform>
<jaxb:typeName
suffix="Type" />
</jaxb:nameXmlTransform>
</jaxb:schemaBindings>
</bindings>
<enableWrapperStyle>false</enableWrapperStyle>
<enableAsyncMapping>false</enableAsyncMapping>
</bindings>
This was selected as the best answer
LearnerSFLearnerSF

I had the same problem, and your fix resolved 4 of the 5 errors that I received. However, I still get this error:

 

[WARNING] src-resolve: Cannot resolve the name 'ens:sObject' to a(n) 'type definition' component.

 

 

Ezio_2010Ezio_2010

EY you, the guy with the  src-resolve: Cannot resolve the name 'ens:sObject' error, it is not an error it is a warning, f/"($ing annoying for sure, did u manage to send this warning to hell?

 

let me know, im trying the same stuff, the same f"($/ing stuff and the same errors that arise!!!

 

tired of IT 

Keith654Keith654

Here is a summary article that may be of help if you are hitting this problem and a couple of others:

 

http://force201.wordpress.com/2011/02/06/quick-summary-of-how-to-get-started-with-the-enterprise-wsdl-api-via-javas-jaxb/

 

Keith