phanimca / force-metadata-jdbc-driver

Automatically exported from code.google.com/p/force-metadata-jdbc-driver
0 stars 0 forks source link

Unable to provide Sandbox/Test as server_url for login #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be helpful to be able to have a means to indicate that the target 
schema/org is located on "test.salesforce.com", rather than assuming 
production.

Original issue reported on code.google.com by dtur...@gmail.com on 22 Apr 2010 at 11:02

GoogleCodeExporter commented 9 years ago
I totally agree. Thank you for this great idea though, a very useful tool 
indeed!

Original comment by dan...@gmail.com on 22 Apr 2010 at 12:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The Force.com connection code is in 
http://code.google.com/p/force-metadata-jdbc-
driver/source/browse/trunk/force-metadata-jdbc-
driver/src/com/claimvantage/force/jdbc/Service.java Service.java.

It looks like there 
is a way to have code that works for both sandbox and non-sandbox - 
http://forums.sforce.com/t5/Java-
Development/Invalid-Session-ID/m-p/121664/message-uid/121664. But someone who 
has a 
mixture of sandboxes and other orgs would need to try that out.

Original comment by keith.clarke.claimvantage@gmail.com on 23 Apr 2010 at 10:24

GoogleCodeExporter commented 9 years ago
I started digging into this myself-- looks like the endpoint address is 
hard-coded into 
a private variable in the axis/wsdl2java code (based on the SFDC org/instance 
that the 
WSDL was generated from).  I haven't seen a way to "override" that value-- yet. 

Perhaps it's a matter of generating the code for the Enterprise WSDL, then 
write in the 
hooks... could have sworn someone would have already done this, but haven't 
found it 
yet.  Until I either find the library or build the library to allow this you 
should 
probably close this defect since it's not your bug.

Original comment by dtur...@gmail.com on 23 Apr 2010 at 11:40

GoogleCodeExporter commented 9 years ago
This 
http://www.salesforce.com/us/developer/docs/api/Content/implementation_considera
tions.htm implies it is just a matter of 
setting a different endpoint and the Axis generated Java code does have a 
setSoapEndpointAddress method. I'll have a look at passing 
and setting this.

Original comment by keith.clarke.claimvantage@gmail.com on 23 Apr 2010 at 12:06

GoogleCodeExporter commented 9 years ago
Version 1.2 now supports a url property. The setting of this works but I don't 
have 
access to any sandbox orgs so have not tested connection to those.

Original comment by keith.clarke.claimvantage@gmail.com on 23 Apr 2010 at 1:50