• Justin Jones 35
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I'm trying to build a simple java client program using the partner WSDL. I built stubs from the Partner WSDL file. I downloaded the WSC .jar file and added it to my build path. I'm still getting Connector cannot be resolved and PartnerConnection cannot be resolved.  I would have thought they were in the Partner WSDL file but I don't see them there.

Anyone know where I should go for those or why I don't have them in my project when I have the stubs from the partner WSDL and the force-wsc-44.0.0.jar?
 
import com.sforce.soap.partner.*;
import com.sforce.soap.partner.sobject.*;
import com.sforce.ws.*;
import com.sforce.ws.ConnectorConfig;

class SalesforceHelper {

    public SalesforceHelper () {

        ConnectorConfig config = new ConnectorConfig();
        config.setUsername("username");
        config.setPassword("password");

        PartnerConnection connection = Connector.newConnection(config);
    }

}