• NemaJi
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

How To Create MetaData.jar File

(1)To get your WSDL, log into your organization and go to Your Name -> Setup -> App Setup -> Develop -> API. Generate the enterprise WSDL (unique to your organization) and the

Metadata WSDL, and save them to your desktop.


I was saved it as metadata.wsdl(must give wsdl extention to file) in my desktop.

install wsc.20 jar file to your desktop.

(2) Run this command

C:\Users\A\Desktop>set path=%path%;C:\Program Files\Java\jdk1.5.0_09\bin (Use only jdk1.6 not jdk1.7.it seem that wsc20.o was not cofigured for jdk1.7)


(3)copy tools.jar file from your jdk/lib and save it in jre/lib



(4) for creating Metadata.jar file run this command

java -classpath pathToWsc;pathToWscDependencies com.sforce.ws.tools.wsdlc
pathToWsdl/WsdlFilename pathToOutputJar/OutputJarFilename


In my case I run this command



C:\Users\A\Desktop>java -classpath wsc-20.jar com.sforce.ws.tools.wsdlc metadata.wsdl meta12
.jar




(5) It created meta12.jar in my desktop

HI,

 

I am sending emailtemplate on creation of a record . When I am doing it inside salesforce its working fine but its throwing error from sites. On a closer watch the exception was Invalid Cross Reference.

Please Anybody help me to bypass this exception.

 

Thanks in advance

 

With Regards

Palak

 

 

  • June 14, 2012
  • Like
  • 0