i am integrating two salesforce org by soap api and partner WSDL file. when i am make a callout for session id (by calling login method) with user id and password,it requires security token. so how to integrate two different org without security token when org is not in my ip range.
As per the documentation
For access via the API or a client, users must add their security token (or time-based token if Two-Factor Authentication on API Logins is set on the user profile and the users have added a time-based token to their account) to the end of their password to log in.