You need to sign in to do that
Don't have an account?
SFDC to Java Connector
Invalid session Header error after login
Hi I am doing a project to Integrate salesforce with java.
I am successfully getting login which returns session id and server Url.
I set the server url, but dont know how to set the session header.
I created an object for the session header and set the session id, but dont know how to use that object.
I am using Netbeans 6.9.1.
Is it necessary to use wsc to parse the enterprise WSDL file.
Please give me a solution...
You need to tell using which tool Axis, WSC you have complied the WSDL's. As setting session id and server url is different for each.
If you are using WSC or Axis. I suggest you use "Tolerado" it does all the heavy lifting of creating correct stubs. You just need to make the web service calls. http://code.google.com/p/tolerado-sfdc-wsc-apis/wiki/GettingStartedGuide
All Answers
You need to tell using which tool Axis, WSC you have complied the WSDL's. As setting session id and server url is different for each.
If you are using WSC or Axis. I suggest you use "Tolerado" it does all the heavy lifting of creating correct stubs. You just need to make the web service calls. http://code.google.com/p/tolerado-sfdc-wsc-apis/wiki/GettingStartedGuide
Thank you for your Information. I am using JAVA-WS api to parse the WSDL file. In that I dont know how to set the session header....