SOAP

SugarCRM with Drupal

A while ago we were charged with the task of using drupal with SugarCRM. Unlike CiviCRM, these 2 systems have never been designed to work together nicely. Rather than hack into core code to share a user table we decided to take advantage of the existing SOAP functionality that SugarCRM affords us.

Unfortunately we had to alter about 2 lines of SugarCRM's core code to get this to work. Also I don't think the code is as secure as we would like it. There is a point at which the password is sent (although encrypted) via a GET request. This would not be our preferred choice.

SOAP requests with Cocoa

I'm just trying to send some xml data to a soap server. While I may not have found the 'correct' way of doing it, I did find some information on sending data within the Apple documentation.


NSData *XMLdata = [soapXML XMLDataWithOptions:NSXMLNodePrettyPrint];
NSURL *webserviceURL = [NSURL URLWithString:@"http://soap.example.com/soap.php"];
NSMutableURLRequest *URLrequest = [NSMutableURLRequest requestWithURL:webserviceURL];
[URLrequest setHTTPMethod:@"POST"];
[URLrequest setValue:@"text/xml" forHTTPHeaderField:@"Content-type"];

base64 Encode

I'm writing a small export plugin for Apple's Aperture. While the sample FTP plugin does the job mostly, I needed something a little more feature rich for a web image gallery we have.

I started off by adding a receipt file to go alongside the image which included all the meta data to help categorise the image on the website. This worked reasonably well, along with a cron job to read the receipts and move the files.

Syndicate content