I am trying to upgrade a Legacy project's SOAP API from 12.0 to 40.0. The project is using methods from SforceServiceStub.java to perform operations on SalesForce(enterprise wsdl). So to upgrade the api, i have compared the project enterprise wsdl(12.0) with the generated enterprise wsdl(40.0), taken changes and have generated the new enterprise wsdl jar.
Now i am getting errors with the method parameters in the project with the new enterprise wsdl jar(40.0).
I have observed that the method signatures are changed a bit.Extra parameters are present in the latest version. Please have a look at query method from SforceServiceStub in 12.0 and 40.0.
public com.sforce.soap.enterprise.QueryResult query( java.lang.String, com.sforce.soap.enterprise.SessionHeader, com.sforce.soap.enterprise.QueryOptions, com.sforce.soap.enterprise.MruHeader);
public com.sforce.soap.enterprise.QueryResult query( java.lang.String, com.sforce.soap.enterprise.SessionHeader, com.sforce.soap.enterprise.QueryOptions, com.sforce.soap.enterprise.MruHeader, com.sforce.soap.enterprise.PackageVersionHeader);
The project is working fine with the changes of 40.0(new signature). But there are lot of changes that needs to be made in the project.
So, i would like to know whether there is any other way with minimal code changes for upgrading enterprise SOAP api from 12.0 to 40.0?
Thanks in Advance