New Stub Generation
If you want to use the previous versions of Marketo other than version 23, then you must generate the stub. Follow the procedure given below to generate the stub:
In the command prompt window navigate to C:\Test\metro\Marketo directory. Run the below commands:
set JAVA_HOME="C:\Program Files (x86)\Java\jdk1.7.0_25"
set classpath=%JAVA_HOME%
set PATH=%JAVA_HOME%;%PATH%
mkdir C:\Test\metro\Marketo\classes
%JAVA_HOME%\bin\wsimport.exe -b "C:\Test\metro\Marketo\marketo.jxb" -XadditionalHeaders -p "com.marketo.mktows18" -verbose -Xdebug -s "C:\Test\metro\Marketo\src" -d "C:\Test\metro\Marketo\classes" http://app.marketo.com/soap/mktows/2_3?WSDL
jar -cvf C:\Test\metro\Marketo\Marketo-metadata.jar -C C:\Test\metro\Marketo\classes com