function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
madimuliamadimulia 

WSDL2Java - Missing SForceServiceLocator

My company is still using API version 6.0 and planning to upgrade to the latest one. While generating java files from Enterprise API using Apache Axis2-1.1, I notice that I'm missing com.sforce.soap.enterprise.SforceServiceLocator class. Is this file deprecated in the current API?

 

Also, does anyone have a clue where I can get EnterpriseLoginBean (om.sforce.util.login.EnterpriseLoginBean)? Thanks in advance!

 

Last question, what would be best practices in upgrading API? Do I need to redeploy the whole web app or just need to update the related /WEB-INF/classes?

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
SforceServiceLocator is generated by Axis 1.x, Axis 2 generates a different programming model.

All Answers

SuperfellSuperfell
SforceServiceLocator is generated by Axis 1.x, Axis 2 generates a different programming model.
This was selected as the best answer
madimuliamadimulia

Thank you for your reply.

 

How about the EnterpriseLoginBean? Is it something I should be able to generate from the WSDL too?

ClimbatizeClimbatize
I don't know if it can help you, but take a look at my Axis2 implementation: here
Message Edited by Climbatize on 09-02-2009 10:27 AM
madimuliamadimulia
Yes, I found the root problem was Axis2 generate different codes set. Thanks :D