Marketo Connector Guide > New Stub Generation
  

New Stub Generation

If you want to use the previous versions of Marketo other than version 31, 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
where <http://app.marketo.com/soap/mktows/2_3?WSDL> is a sample URL for the WSDL. You must use the customer-specific SOAP endpoint to get the WSDL.
jar -cvf C:\Test\metro\Marketo\Marketo-metadata.jar -C C:\Test\metro\Marketo\classes com