Announcement

Collapse
No announcement yet.

Calling CnP PaaS web service from Salesforce APEX web service class

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • rbowen
    replied
    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
    replied
    Hi;

    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
    replied
    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 salesforce.com about custom
    indexing.

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    Have you considered using the Salesforce API Class Library?

    It is designed exactly for what you are trying to.

    https://sites.secure.force.com/appex...0000009vEKZEA2

    There are also a few examples that you may install:

    http://forums.clickandpledge.com/forumdisplay.php?f=58

    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 (http://manual.clickandpledge.com/PaaS-Sandbox.html). 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):

    Code:
      Dom.Document doc = new Dom.Document();
      doc.load(fullXML);
      
      Http h = new Http();
      HttpRequest req = new HttpRequest();
      req.setEndpoint('https://paas.cloud.clickandpledge.com/PaymentService.svc?wsdl');
      req.setMethod('GET');
      req.setBodyDocument(doc);
      HttpResponse res = h.send(req);
      return res.getBody();
Working...
X