Howdy.
This post concerns using SOAP messages directly with the nsLib nuSoap mod in PHP.
Having given up on nsLib and its many inadequacies and bugs, I've resorted to generating message 'templates' using SoapSonar from our good friends at Crosscheck Networks.
Unfortunately, SoapSonar crashes when you try to allocate an array, so the only searches I can generate are simple string comparisons (state startsWith 'NSW' etc). The folks at Crosscheck are looking into this for me, but in the interest of not holding my breath for a week, here's the issue in a nutshell.
With some sneaky adaptation and tireless trial and error, I managed to cobble together this here message:
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:platformMsgs="urn:messages_2_6.platform.webservices.netsuite.com"> <soap:Header> <platformMsgs:searchPreferences> </platformMsgs:searchPreferences> </soap:Header> <soap:Body> <platformMsgs:search> <platformMsgs:searchRecord xsi:type="platformCommon:CustomerSearchBasic" xmlns:platformCommon="urn:common_2_6.platform.webservices.netsuite.com"> <platformCommon:category operator="anyOf"> <platformCore:searchValue xmlns:platformCore="urn:core_2_6.platform.webservices.netsuite.com" internalId="12" type="contactCategory"> </platformCore:searchValue> </platformCommon:category> <platformCommon:isInactive> <platformCore:searchValue xmlns:platformCore="urn:core_2_6.platform.webservices.netsuite.com">false</platformCore:searchValue> </platformCommon:isInactive> <platformCommon:state operator="is"> <platformCore:searchValue xmlns:platformCore="urn:core_2_6.platform.webservices.netsuite.com">VIC</platformCore:searchValue> </platformCommon:state> <platformCommon:customFieldList> <customField xsi:type="SearchBooleanCustomField" internalId="custentitydisplayonwebsite" operator="true" /> </platformCommon:customFieldList> </platformMsgs:searchRecord> </platformMsgs:search> </soap:Body> </soap:Envelope>
The only bit not working is the customFieldList portion. My question is simple; what am I doing wrong?This is the fault string:org.xml.sax.SAXException: Invalid type: SearchBooleanCustomField
I'm sure the answer is simple, but unfortunately, a lot of this is flying blind, and my luck seems to have run out!ThanksNeil o/b/o John