(405)Method not allowed error
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shreevatsa_Udupa
Posted On:   Saturday, October 1, 2005 02:09 AM

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-->&q   More>>

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..

   <<Less

Re: (405)Method not allowed error

Posted By:   Joost_Schouten  
Posted On:   Saturday, October 1, 2005 05:53 AM

any stacktrace would help. Please post it here and repost your code but within the
 tags. This will make it easier to read.


My guess would be that you are calling their code wrongfully and you should ask SalesForce as they developed it. But I can give it a shot.


cheers,

Joost

About | Sitemap | Contact