I'm trying to retrieve a list of case numbers for a logged in customer using SOAP and PHP. The XML I'm sending is:
<?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <nu2227:search xmlns:nu2227="urn:messages_2_6.platform.webservices.netsuite.com" > <searchRecord xsi:type="nsCommon:CustomerSearchBasic" xmlns:nsCommon="urn:common_2_6.platform.webservices.netsuite.com"> <nsCommon:caseNumber operator="anyOf" xsi:type="nsCommon:SupportCase" xmlns:nsCore="urn:core_2_6.platform.webservices.netsuite.com"> <nsCore:searchValue> </nsCore:searchValue> </nsCommon:caseNumber> </searchRecord> </nu2227:search> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
The message I get back is:com.netledger.common.schemabean.NLSchemaBeanException: caseNumber not found on {urn:common_2_6.platform.webservices.netsuite.com}CustomerSearchBasic
Can someone post some working sample XML that will retrieve a list of supportCase internal IDs? I'm having no trouble retrieving an individual supportCase if I know the internal ID ahead of time. I've also tried using getAll to get all case numbers, but that's not working either.