Current location: Hot Scripts Forums » Other Discussions » Other Topics » API » SugarCRM SOAP Interface Integration


SugarCRM SOAP Interface Integration

Reply
  #1 (permalink)  
Old 08-08-09, 09:00 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
SugarCRM SOAP Interface Integration

SugarCRM uses NuSOAP - SOAP Toolkit for PHP | Get NuSOAP - SOAP Toolkit for PHP at SourceForge.net to provide a SOAP interface, however, you can use the PHP SOAP functions to connect into it, which simplifies the version control and build process if the SOAP code will reside on a production server.

Key differences:
  • NuSOAP uses a $soapclient->call('method',parameters) syntax, where PHP uses a $soapclient->method(parameters) syntax.
  • NuSOAP encodes arrays, if you are using PHP, you must use a SoapVar, then create a SoapParam to pass it with the proper encoding.
  • The values may be returned slightly differently. It's good to do a var_dump to view what is returned.

At the Sugar site, the documentation (Sugar DeveloperZone - SugarCRM Developer Documentation, Sugar Documentation) posts some great code snippets (they're also in the source files under examples).

Debugging the interface is much easier if you have access to both sides (server and client). file_put_contents, or error_log can be used to write debug information out during script execution to see what is happening.

If the Sugar SOAP server doesn't respond, it is often a parameter issue. Writing out the SQL, then running it directly through MySQL can be very helpful.

One final note - dumping the database out before beginning is extremely important. That way, if the database is corrupted, you can restore it quickly. Be sure to check the results through the application as you're working.

Last edited by wirehopper; 08-08-09 at 09:10 PM.
Reply With Quote
  #2 (permalink)  
Old 04-26-10, 02:54 AM
Thechecker12 Thechecker12 is offline
Newbie Coder
 
Join Date: Apr 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you for this advice. I was just wondering what to do and therefore come to ask a couple of questions here. But now I already found the answer without even having to ask. " Writing out the SQL, then running it directly through MySQL can be very helpful." This was basically what I needed to do. By the way, if anyone wants to have a laugh, read this blog. It is really well written and funny.
Reply With Quote
Reply

Bookmarks

« - | - »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.Net web interface for SAP systems Aneeliyo Windows .NET Programming 2 05-02-08 03:57 AM
Send a Binary data in an an Array Via SOAP to a Web service Using c/c++ ? try101try C/C++ 2 02-21-07 05:44 AM
Professional Charting, Diagramming and User Interface Suite for .NET Nevron General Advertisements 0 01-26-06 09:39 AM
PHP - MySql - CMS integration Styleemp Job Offers & Assistance 3 02-10-05 12:14 AM


All times are GMT -5. The time now is 12:53 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.