[SalesForce] Integration between Salesforce and Peoplesoft

I need help regarding integration between salesforce and People soft.

We are looking to do Bi directional integration between salesforce and People soft.

Question:

To login into salesforce from peoplesoft.I can give enterprise Wsdl to People soft developer. Is that correct? and then he can use login API to login into salesforce. Is this known as soap or rest Api? If it is Soap, can I still give enterprise WSDl which he can use to login into salesforce and then I can create rest based web services using Apex which he can use to post, create or update data in salesforce.

Can we use enterprise WSDL and rest based Api's together to update, create records in salesforce or not?

Instead of using Enterprise WSDl If I only use Rest based Api's. Do we have to implement OAuth so that people soft when trying to connect to salesforce get's authorization from salesforce.

We are not going to use any third party tool for accomplishing this.

Can somebody please advise with right information?

Best Answer

The Enterprise WSDL is a SOAP API. You can use the login method in the SOAP API to retrieve a Session Id and then use that session Id in REST calls. Something like this in your code would accomplish that:

Request.AddHeader("Authorization", "OAuth " + sessionId);