If you are integrating with FinancialForce through a platform/language not hosted on the Force.com platform, such as Java or .Net, you can make use of the FinancialForce Web Services. These take the same shape and form as their Apex equivalents except that they do require authentication via the standard Force.com Partner Web Service.
As is the case with other Force.com Web Services, the session ID returned by the login() operation must be present in all FinancialForce Web Service calls.
The steps are as follows:
Force.com Web Services API Developer's Guide before you start. In particular, the "Security and the API" and "Login()" topics.
Force.com Web Services API Developer's Guide for more examples.Salesforce checks the IP address from which the client application is logging in, and blocks logins from unknown IP addresses. If you get a login error, you must append your security token
to the end of your password in order to log in. See "Security Tokens" for more information.
SforceService service = new SforceService();
String sessionId = service.login("user",“password").sessionId;
CODAAPISalesInvoice_6_0Service salesInvoiceService =
new CODAAPISalesInvoice_6_0Service();
salesInvoiceService.SessionHeaderValue = new SessionHeader();
salesInvoiceService.SessionHeaderValue.sessionId = sessionId;
When accessing Salesforce from outside of your company’s trusted networks, you must append a security token
to your password to log in to the API or a desktop client.
To reset your security token:
For security reasons, your security token is delivered to the email address associated with your account.
To view a list of all the relevant Apex classes:
A list of all relevant Apex classes is displayed.