You need to sign in to do that
Don't have an account?
slane
Log into different servers via API
Hello all:
I've been using the PHP toolkit to do some API work. My question is, how do I control the instance of salesforce to which my code tries to log in? If I create a SOAPClient from my Enterprise WSDL, everything works fine -- it logs me into my development org. But how do I connect to my customer's org without grabbing their WDSL as well? I assume this can be done because apps like the Eclipse IDE happily connect to multiple orgs via the API without needing all the WSDLs (or so it seems).
Can anyone point me in the right direction?
It's the user name that you log in with that controls the instance that you will connect to. The WSDL file provides the endpoint that you connect to and, in the case of an Enterprise WSDL, the schema of that instance. You'll want to either switch to using the Partner WSDL (and API library) or be sure to grab and use the appropriate Enterprise WSDL for each client instance that you are connecting to.
Park