由wsdl文件生成stub的时候,出现如下错误,网上搜索了得到如下的结果,
The "A class/interface with the same name
"com.sforce.soap.partner.DescribeLayout" is already in use" error is
from jaxb and, per spec, requires the user to remap any conflicting
classes via the customization things. HOWEVER, while debugging the
salesforce stuff, I added a flag to wsdl2java to automatically remap
conflicting classes (by appending a number to it, like
DescribeLayout2). If you are using the very latest trunk code, you
can do:
wsdl2java -autoNameResolution -exsh true partner.wsdl
wsdl2java -autoNameResolution -exsh true enterprise.wsdl
The "A class/interface with the same name
"com.sforce.soap.partner.DescribeLayout" is already in use" error is
from jaxb and, per spec, requires the user to remap any conflicting
classes via the customization things. HOWEVER, while debugging the
salesforce stuff, I added a flag to wsdl2java to automatically remap
conflicting classes (by appending a number to it, like
DescribeLayout2). If you are using the very latest trunk code, you
can do:
wsdl2java -autoNameResolution -exsh true partner.wsdl
wsdl2java -autoNameResolution -exsh true enterprise.wsdl