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):
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();
Comment