No announcement yet.

Calling CnP PaaS web service from Salesforce APEX web service class

  • Filter
  • Time
  • Show
Clear All
new posts

  • rbowen
    I have emailed support.

    I have another question: where can I find information about the C&P PaaS Class Library. The only thing listed in this forum is for the web service, PHP, and XML format. There is nothing on the Salesforce Class Library (classes, methods, etc.) other than some examples, which are uncommented. Very difficult to use your Class Library when there is no documentation.

    Leave a comment:

  • CnP.Support

    The large recordset is not an issue and was fixed a while back. Are you still experiencing the large recordset? I am surprised since we have a lot of clients with over a million records with no issues. We have tested the platform against quite a lot of data without any glitches.

    It is hard for me to understand what you are doing.

    Please email support and we will call you to better understand your intent and suggest an approach that best suits your needs.

    Leave a comment:

  • rbowen
    Thanks for your response.

    I isntalled the class library and examples. However, when I tested the C&P Salesforce API Class Library (with the examples), I received the "Large Recordset error" that we had encountered previously. We worked with Kamran in February to fix the "Large Recordset error", which was addressed in Click & Pledge Payment-as-a-Service v4.21.

    Because of the reoccurance of the "Large Recordset error", I went forward with testing the C&P web service. At this point, I would prefer to run the XML to the C&P web service via Salesforce web service APEX class. Can you point me towards some more information on how this needs to be configured?

    For clarity, here is the "Large Recordset error" from Click and Pledge:

    Non-selective query against large object type (more than
    100000 rows). Consider an indexed filter or contact about custom

    Leave a comment:

  • CnP.Support
    Good day!

    Have you considered using the Salesforce API Class Library?

    It is designed exactly for what you are trying to.

    There are also a few examples that you may install:

    Please let me know how this works for you. We released this app last month and a number of companies are currently working with the app implementing payment solutions for their applications.

    Leave a comment:

  • Calling CnP PaaS web service from Salesforce APEX web service class

    I've successfully tested some XML for the PaaS web service from the sandbox ( Now, I'm trying to create a proof-of-concept to run the same XML to the web service from inside a Salesforce web service APEX class.

    Are there any examples for PaaS web service calls from APEX (I can only find PHP and Flash examples on the manual site)?

    The Salesforce->web service call does not seem to be working, since no response is received (and no Donation is created).

    I don't think this is the problem, but here is the pertinent part of the class (fullXML is the sample XML for the minimum donation fields, from the manual.clickandpledge page):

      Dom.Document doc = new Dom.Document();
      Http h = new Http();
      HttpRequest req = new HttpRequest();
      HttpResponse res = h.send(req);
      return res.getBody();