My application (utilizing SOAP and BULK APIs) uses Partner WSDL for different organizations. I have a concern that the version mismatch may pose an error in the application. For example, the Partner WSDL I use was generated from API v34. If the customer uses an older version, say V31, how do I manage this mismatch?
For this, I need to find the versions used by the salesforce instance. This can be performed using REST. How can the same be done using SOAP?
Once I have got the version, I can do for BULK by modifying the URL endpoint:
ConnectorConfig.setEndPoint(newUrl);
Again, can the same be modified using SOAP?
Alternate: I could have partner WSDLs for all the versions in my local disk. Once I know the version (through REST), I can load the corresponding wsdl for my application and recompile it. But this seems to be an overkill and there must be another way to do it.