|
GettingStartedGuide
Getting Started with TOLERADO
WSDL2Java with WSCI am explaining this first in getting started guide, because Tolerado for WSC will not be compatible with usual WSDL compilation via WSC. You must be wondering why, this is done intentionally to avoid java classloading/namespace conflicts when classes generated by WSC are used with WSDL2Java stuff from other libraries like Apache Axis, this conflict issue is explained in details here. Tolerado tweaks WSC WSDL compilation a litle to have a suffix after each java package. This suffix is "wsc", for ex. instead of java package “com.sforce.soap.partner.”, new package name would be “com.sforce.soap.partner.wsc.” for all generated classes from Partner.WSDL. You can also do this by compling all WSDLs in following fashion via WSC java -Dpackage-prefix=wsc -classpath wsc.jar com.sforce.ws.tools.wsdlc wsdl jar.file Latest versions generated jar(via SFDC WSDL Compilation) is available in downloads area by name sfdc-wsc-API-VERSION-wsdl2java.zip. This zip contains 4 jar files corresponding to each SFDC wsdl i.e. Partner, Metadata, Apex and Enterprise WSDL. Not all of these are required, for working with Tolerado, just pick the ones you need. But you will need to recompile atleast enterprise wsdl because of org specific differences. So using above command becomes important from Tolerado compatiblity point of view. Prerequisites
Running sample codeOnce you have all the prerequisites set in your classpath. Code samples for Tolerado are available here. Start coping and playing the stuff. Running Samples via the Tolerado-WSC-JunitTests ProjectTolerado-WSC-JunitTests is a complete Java project independent of Tolerado main development branch. Its checked into SVN as java project, so you guys can checkout it from here and start playing with samples Here is a video that shows how to checkout and setup Tolerado Samples
|