Qore xml Module 1.8.2
Loading...
Searching...
No Matches

Introduction to the SalesforceSoapClient Module

The SalesforceSoapClient module provides an API for communicating with Salesforce.com using SOAP.

This module provides the following classes:

This module requires the following modules which are also reexported to the program context:

SalesforceSoapClient Example

Here is an example of how to use this module:

hash opts = (
"wsdl": wsdl,
"username": "myuser@example.com",
"password": "pass",
"token": "token",
"log": sub (string fmt) {
if (m_options.verbose)
printf("INFO: %s\n", vsprintf(fmt, argv));
},
"dbglog": sub (string fmt) {
if (m_options.verbose > 1)
printf("DEBUG: %s\n", vsprintf(fmt, argv));
},
);
SalesforceSoapClient sc(opts);
string ss = sprintf("select id, name, description, accountnumber from account where accountnumber = '%s'", AcctNo1);
hash<auto> rh = sc.query({"queryString": ss});
printf("%N\n", rh);

SalesforceSoapClient Release Notes

SalesforceSoapClient v1.4

  • implemented support for a data provider scheme cache and rich option information for connections (issue 4025)

SalesforceSoapClient v1.3

  • removed the obsolete SalesforceSoapConnection::getConstructorInfo() method as connection serialization is a much more elegant and maintainable solution (issue 3696)

SalesforceSoapClient v1.2

  • added the SalesforceSoapConnection::getConstructorInfo() method to allow connections to be created dynamically, potentially in another process from a network call (issue 2628)

SalesforceSoapClient v1.1

SalesforceSoapClient v1.0

  • initial release of the module