• umamags
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hello!
I'm developing a web application in Java 1.5, using Studio Creator as an IDE. I use the enterprise WSDL and generated the Java classes with the Axis 1.3 wsdl2java tool. Before SF moved our organization's account, I tried nothing more than logging in to SF through the API (version 7) and succeeded. Now I can't even do that!
In the email Sforce sent me I read that if I followed the best practices to login, nothing would change. I don't know what these practices are, but I followed the guidelines of the sample application:

SforceServiceLocator sloc=new SforceServiceLocator();
binding=(SoapBindingStub) sloc.getSoap();
...
LoginResult lr=binding.login(un, pw);
binding._setProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY,  lr.getServerUrl());
SessionHeader sh = new SessionHeader();
sh.setSessionId(lr.getSessionId());
String sforceURI = new  SforceServiceLocator().getServiceName().getNamespaceURI();
binding.setHeader(sforceURI, "SessionHeader", sh);
...

I get an exception when trying to execute the second line, when calling getSoap():

(java.lang.NoSuchMethodError)java.lang.NoSuchMethodError: org.apache.axis.description.ParameterDesc.setOmittable(Z)V

I tried to use versions 1.2.1, 1.3 and 1.4 of axis, nothing changed!

The same code used to work until some days ago! Could someone please help me in some way? Am I not following the best practices or simply doing something wrong?

Thanks in advance!
  • June 22, 2006
  • Like
  • 0