GithubHelp home page GithubHelp logo

Login Issue. about wsc HOT 10 CLOSED

forcedotcom avatar forcedotcom commented on August 19, 2024
Login Issue.

from wsc.

Comments (10)

sjega2012 avatar sjega2012 commented on August 19, 2024

Any help?

from wsc.

federecio avatar federecio commented on August 19, 2024

Can you please reformat your code is that is more readable? Take a look at https://help.github.com/articles/github-flavored-markdown

Anyway, I copy & pasted your code and it runs successfully, see output below:

Logging in ...

UserID: 005E00000027RoGIAU>
User Full Name: jega s
User Email: [email protected]

SessionID: 00DE0000000dlsG!ARAAQAvhLGo.eZG8HzZdBAGo0MD5EjDtH3RTG6BxI28zFp_W5uFjB8R5dpiadfbsSI0YWcJzTWzOZpt8UGZbL.ggXCUlyB_Q
Auth End Point: https://login.salesforce.com/services/Soap/u/27.0
Service End Point: https://na9-api.salesforce.com/services/Soap/u/27.0/00DE0000000dlsG

Logged out.

from wsc.

superfell avatar superfell commented on August 19, 2024

You probably need to include your api security token in addition to your password, see the online help on identity confirmation for more details.

from wsc.

sjega2012 avatar sjega2012 commented on August 19, 2024

@federecio

Still i am having the same problem. kindly send your code to my email ([email protected]) which will help me.

@superfell

I apppened the security token with my password. still problem.

import com.sforce.soap.partner.;
import com.sforce.ws.
;
import com.sforce.soap.partner.sobject.*;
public class test
{
public static void main(String[] args) throws Exception
{
ConnectorConfig config = new ConnectorConfig();
config.setUsername("[email protected]");
config.setPassword("Sforce1239XFYt0lLuMom7OWg70neGLZn");
PartnerConnection connection = com.sforce.soap.partner.Connector.newConnection(config);
GetUserInfoResult userInfo = connection.getUserInfo();
System.out.println("\nLogging in ...\n");
System.out.println("UserID: " + userInfo.getUserId());
System.out.println("User Full Name: " + userInfo.getUserFullName());
System.out.println("User Email: " + userInfo.getUserEmail());
System.out.println();
System.out.println("SessionID: " + config.getSessionId());
System.out.println("Auth End Point: " + config.getAuthEndpoint());
System.out.println("Service End Point: " + config.getServiceEndpoint());
System.out.println();
}
}

from wsc.

sjega2012 avatar sjega2012 commented on August 19, 2024

Classpath:

export CLASSPATH=force-wsc-27.0.0.jar:force-partner-api-27.0.0.jar:force-metadata-api-27.0.0.jar:.

from wsc.

superfell avatar superfell commented on August 19, 2024

Make sure you're using the right WSDL, i.e. if your login is on production use a production wsdl, not a sandbox wsdl. (or visa versa)

from wsc.

sjega2012 avatar sjega2012 commented on August 19, 2024

@superfell

I just downloaded the wsc & partner & metadata jar from the below links and set it in classpath and simply run the above sample program. Please help me anything i missed it.

http://search.maven.org/remotecontent?filepath=com/force/api/force-metadata-api/27.0.0/force-metadata-api-27.0.0.jar

http://search.maven.org/remotecontent?filepath=com/force/api/force-partner-api/27.0.0/force-partner-api-27.0.0.jar

http://search.maven.org/remotecontent?filepath=com/force/api/force-wsc/27.0.0/force-wsc-27.0.0.jar

from wsc.

sjega2012 avatar sjega2012 commented on August 19, 2024

any help @superfell

from wsc.

federecio avatar federecio commented on August 19, 2024

@sjega2012 can you upload your code to a public GitHub repository so that I can take a look?

from wsc.

jefflai avatar jefflai commented on August 19, 2024

@sjega2012 let us know if you are still experiencing this issue. I'm closing this issue since we haven't heard back for a month

from wsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.