You need to sign in to do that
Don't have an account?

(405)Method not allowed -error 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..
Try to intialise the variables (to check if its null) outside the fun call..! Syntax seems to be fine..
Thanks,
Chitra
Hi,
I've set the proxyhost also, but missed in the code while posting.
The error now I am getting is "javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection".
What this error is about?
Thanks in advance.