Comments (10)
Any help?
from wsc.
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/00DE0000000dlsGLogged out.
from wsc.
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.
Still i am having the same problem. kindly send your code to my email ([email protected]) which will help me.
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.
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.
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.
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-wsc/27.0.0/force-wsc-27.0.0.jar
from wsc.
any help @superfell
from wsc.
@sjega2012 can you upload your code to a public GitHub repository so that I can take a look?
from wsc.
@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)
- forcedotcom/wsc is this FIPS compliance.
- CANNOT_EXECUTE_FLOW_TRIGGER non handled
- Can help me! Code generation failed HOT 1
- com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:partner.soap.sforce.com:currencySymbol' but found 'urn:partner.soap.sforce.com:chatterExternal' HOT 3
- Problem with apache-maven-3.8.1 HOT 1
- Support OAUTH 2.0 JWT Bearer auth flow for server to server integrations
- Provide a way to get original(raw) response for non-SOAP/HTML content in response HOT 2
- Getting error "Encountered HTML Content when looking for http://schemas.xmlsoap.org/soap/envelope/:Envelope"
- ConnectionException does not show exception message when calling getMessage() HOT 1
- Can't build jar API 54 HOT 1
- commons-logging:1.2 log4j 1.2.17 vulnerability
- Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Fault' but found 'urn:partner.soap.sforce.com:describeSObjectResponse' HOT 2
- Upgrade from older versions (v37)
- Unable to initialize main class HOT 1
- Help with import after building the .jar HOT 1
- Add field enum to aid in querying
- Getting NoSuchMethodError on new EnterpriseConnection HOT 1
- Why is the Force Tooling API not maintained in MvnRepository? HOT 1
- Unable to complete the pull-request CLA signing process HOT 1
- Update WSDLC Documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsc.