I am very new to Salesforce and it's API.

I am having a sandbox org and with it I have url(dev sand box ), username, password, security token and last but not the least partner.wsdl

My aim was to connect and retrieve/create data.

Technologies at hand was nodejs

So here is how I started.

I searched over the internet and came to know that I need to create a client, SOAP client in order to login, create the connection and use that connection to create and access the Leads data.So I followed this sample where the wsdl was being consumed.

So I was able to connect

I was very happy on this success and then suddenly I wasn't able to identify/find a way where I can get the sObject.I looked hard for this but no luck. So posted a question on SO

Meanwhile I also looked for other node module and found jsforce

I used jsforce starting guide and created a client that was connecting to salesforce however without using the wsdl file.

Again I was happy, even more happy because I was having the sObject with me.

Now, what is the fundamental difference if I login using the local wsdl file and without wsdl file in the language of salesforce. Which one is the correct way of logging in?

Sorry if this question is not according to SO rules or if there is a typo.

  • Someone will provide a more concise answer but the short answer is they are both the same as it relates to the login. The ways in which you access object / actions / methods etc may differ. – Eric Sep 12 '14 at 7:33
  • As per the author of jsForce -- In that lib we use REST API mostly and SOAP APIs are only used in some specific calls like login or metadata. Even in such calls we don't use WSDLs because there's no good lib to generate client modules from WSDL in JavaScript/Node.js area. Instead we wrote modules for each APIs which generate SOAP XML strings and parse the response XML. It is enough because these API message schema are static and fiesible in the specific version, unlike SOAP API Enterprise WSDL differs in organizations. So we can hard code the client module directly w/o generate it from WSDL. – Mozak Sep 26 '14 at 4:49
  • @Mozak do you have some code to refer how to work with soap api with jsforce? – user269867 Jun 20 '18 at 21:49
  • It has been quite some time and I don't think I have code with me now as I left the org. – Mozak Jun 21 '18 at 4:14

you can connect different salesforce org in many ways 1 Email services 2 customer portal sso (Identity provider ) 3 site 4 web services

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.