This website recently got a major rebuild; if you're missing something, let Lorna know.

    Tag: soap


  1. SOAPFault When Switching PHP Versions


    I'm working on an update to my PHP Web Services book and with PHP 7 likely to release before the book even makes it into print, I'm testing all my example code across PHP 5.6 and PHP 7 ... which today gave me a weird problem with a very, very simple SOAP example.

    Read more

  2. Using Charles To Debug PHP SOAP


    I used this trick to solve a particularly sticky problem last week, so I thought I'd share. I had a 3rd party SOAP service (except it was actually a .NET WCF service, which is almost SOAP but not quite) which didn't behave in accordance with the way its documentation said it would. PHP's SoapClient has the ability to enable tracing and give information about the request/response headers/body, which is useful, but I needed to store the outputs and also rewrite a particular request header during the course of debugging this. Enter: Charles Proxy.

    Read more

  3. Error Feedback for Web Services


    I have been thinking, writing and speaking a little bit about web services recently, starting with a few thoughts on authorisation mechanisms for services. Today we'll look at another really important aspect of authoring web services, and one feature that will definitely get used - error handling and feedback! Having clear …

    Read more

  4. SugarCRM SOAP Data Types


    Since SugarCRM only works with PHP5 in non-WSDL mode, I had to create all my calls from scratch. The SugarCRM documentation is somewhat minimal, as I may have mentioned, and I found I was mostly reading the WSDL to figure out how to format my SOAP calls. I've put together a post with working examples but I've also assembled a list of the data types needed. Click through to read more.

    Read more

  5. SugarCRM SOAP API Examples


    By popular request, here are some examples that worked for me when using the SOAP API offered by SugarCRM. Its nice that there is an interface, but it isn't brilliantly documented or nearly as widely used as it should be!

    SugarCRM can't talk to PHP 5 native SOAP libraries in …

    Read more

  6. SugarCRM SOAP API


    I don't know when SugarCRM, the open source CRM tool, first acquired a SOAP API but I missed it completely. I've used SugarCRM a few times, on quite a casual level, and only fell across the SOAP API because I needed it.

    The first thing to note is that the …

    Read more

  7. SugarCRM Custom Fields


    'Tis the week for code snippets it seems - actually its mostly that I'm working with SugarCRM in anger for the first time and falling into a few traps. Due to the unique way in which this product is funded, there is a lot less community support around than I'd expect …

    Read more