Closed GoogleCodeExporter closed 8 years ago
Which version of the WSDL did you use to generate the partner.jar? Endpoint
version
and the version of the WSDL you used should match. It seems they are not.
Original comment by manoj.ch...@gmail.com
on 17 Dec 2009 at 9:24
I've tested using the partner jar file and the wsc-16.0 jar file that are
available
for download on this site. I assume the partner.jar here was built using 16.0?
In my code when I use:
connectorConfig.setAuthEndpoint("https://login.salesforce.com/services/Soap/u/16
.0");
I get the exception described in the original post.
Using:
connectorConfig.setAuthEndpoint("https://login.salesforce.com/services/Soap/u/15
.0");
works.
It looks to me as if the sfdc server is giving a 17.0 response although I used
a 16.0
endpoint.
Original comment by turntwo...@gmail.com
on 17 Dec 2009 at 9:53
See the docs. You can generate a partner.jar file for any WSDL you want to use.
Only requirement is that the partner.jar and the endpoint should be of same
version.
Generating Stub Code from a WSDL
Run wsdlc on the WSDL you have downloaded:
java -classpath wsc.jar com.sforce.ws.tools.wsdlc wsdl jar.file
* wsdl is the name of the WSDL file
* jar.file is the name of the output jar file that wsdlc generates
* You can include an optional argument: -Dpackage-prefix=myprefix
Original comment by manoj.ch...@gmail.com
on 17 Dec 2009 at 9:57
I appreciate that I can generate my own partner.jar. However, I am trying to
understand what is out of sync with the pre-built jar files?
Is the pre-built partner.jar for 16.0? If not, I can see why things will fail.
If
the answer is yes, and I use wsc-16.0.jar and I use an endpoint of
https://login.salesforce.com/services/Soap/u/16.0, why should this not work?
As I
said, it seems to me the server is responding with the wrong version.
Original comment by turntwo...@gmail.com
on 17 Dec 2009 at 10:10
Since version 15.0 is working with the pre build jar file. I guess, the pre
build
partner jar file is for version 15 WSDL.
wsc jar contains the classes for generic web services stack (like axis).
partner jar
contains classes specific to the web service (classes like
DescribeSObjectResponse).
These classes depends on the version of the WSDL and must match the endpoint
version.
HTHs.
Original comment by manoj.ch...@gmail.com
on 17 Dec 2009 at 11:02
Original comment by manoj.ch...@gmail.com
on 6 Apr 2010 at 11:06
Original issue reported on code.google.com by
turntwo...@gmail.com
on 17 Dec 2009 at 8:31