UrbanPro
true

Learn Salesforce Consultant from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Java To Salesforce Connection

Siva Sankar
07/02/2018 0 0

Java to Salesforce Connection

Step 1: Generate or Obtain the Web Service WSDL

To generate the WSDL file for your organization:

  • Log in to your Enterprise, Unlimited, or Developer Edition Salesforce account. You must log in as an administrator or as a user who has the “Modify All Data” permission.
  • Click Your Name > Setup > Develop > API to display the WSDL download page.
  • Click Generate Enterprise WSDL.
  • Salesforce prompts you to select the version of each installed package to include in the generated WSDL.
  • Click Generate.
  • In the right-click menu, Internet Explorer users can choose Save Target As, while Mozilla Firefox users can choose Save Link As.

 
Step 2: Download wsc.jar 

Download wsc.jar.

Step 3: Move all the required files into bin folder 
Move wsc.jar and enterprise.wsdl.xml into C:\Program Files\Java\jdk1.6.0_12\bin. 

Step 4: Generate enterprise.jar

Syntax: 
java –classpath pathToJAR/wsc-20.jar com.sforce.ws.tools.wsdlc pathToWsdl/WsdlFilename pathToJar/JarFilename 

Sample: 
Java –classpath wsc.jar com.sforce.ws.tools.wsdlc enterprise.wsdl.xml enterprise.jar
This command will generate enterprise.jar in the same directory C:\Program Files\Java\jdk1.6.0_12\bin. After these files are compiled, they can be included in your Java programs for use in creating client applications.

Below is the successful execution of the command. 

Note: Never copy the sample syntax and paste it in your Command Prompt.

Step 5: Create a Project in Eclipse

  1. Create a Project ‘API’ using Eclipse
  2. Click Finish.
  3. Right click the API Project and create new Package wsc.
  4. Click Finish.
  5. Add all the required Jars (wsc.jar, enterprise.jar)
  6. To add the Jars, Right Click Project API, Select Build Path and then select Configure Build Path.

Browse and select the jars to include.

  • Add enterprise.wsdl.xml file.

To add enterprise.wsdl.xml file, copy the enterprise.wsdl.xml file and Right click API Project and Paste it.

  • Check proxy settings in Eclipse

 

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Trigger Sceniors - session 2
Scenario3:- // Amount In Words before Insert, before update for(Quote qu : Trigger.New) { if(qu.amount_in_words__c!=null) { qu.Converted_Amount_In_Words__c = ConvertRupees.ConvertFun((qu.amount_in_words__c)); ...
S

Assigning One permission to multiple users automatically without any manual work.
Hi Friends,I recently came across below new things I did in my project. Hope it helps you too.Description :How to Assign one permission set to multiple Users ? For example: If I want to assign ONE permission...

Trigger Sceniors
Trigger Scenarios:- (Prepared By Suresh Kumar tvs) Scenario one:- (All Opportunity Triggers) //Trigger to display error message when stage name is change from 'Order closed' to other values Part one...
S

What Are The Map Methods Available In Apex?
//Map holds key and value pair. //Syntax: Map mapName = new Map(); /*Map countryISTCodeMap = new Map(); countryISTCodeMap.put('India','91'); countryISTCodeMap.put('USA','001'); countryISTCodeMap.put('India','911');//replaces...

What Is Batch Apex And Its Methods ?
1. We can call the apex code by creating object for the class (or) if the variables or methods are static then we can call with class name. Apex Code in the trigger will execute automatically for...

Looking for Salesforce Consultant Training?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Salesforce Consultant Classes?

The best tutors for Salesforce Consultant Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Salesforce Consultant with the Best Tutors

The best Tutors for Salesforce Consultant Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more