How to connect to SOAP API using R?

r
api

#1

I have to copy session name and session ID into the SOAP endpoint URL as a query parameter so that all subsequent calls to the web service use the authenticated session parameters.

Not able figure out the syntax for this in R.