You need to sign in to do that
Don't have an account?
(405)Method not allowed in Java
Hi,
I've downloaded the enterprise.wsdl file from salesforce.com and coneverted to java clasees. I am trying to login to salesforce.com using these java classes.My code is:
try
{
System.setProperty("http.proxyHost", "");
System.setProperty("http.proxyPort", "80");
SoapBindingStub sfdc = (SoapBindingStub) new SforceServiceLocator().getSoap();
// login
LoginResult loginResult = sfdc.login(request.getParameter("username"), request.getParameter("password"));
-----------------(rest of the code)
----------------------
}catch (Exception e) {
System.out.println("Failed in-->"+e);
}
The program is compiling the first line, but it is throwing the exception in the "Login" line. The exception is "(405)Method not allowed in Java".
Can anybody help me in this? What is this error all about?
Thanks in advance..