+ Start a Discussion

php_sforce_nusoap error for CloseDate

I'm using the php_sforce_nusoap created by rchoi21 but when trying to create a new Oppurtunity and sending in a CloseDate, the generated XML sets the xsi:type="xsd:string" for CloseDate. This returns the error "INVALID_TYPE_ON_FIELD_IN_RECORD". Has anyone else run into this? I tried to change the Dynamic sObject definition is the partner.wsdl file and specified CloseDate as a xsd:date type but it doesn't seem to be reading it. :-\

Any help would be greatly appreciated... this is my first post on here, so I may not have included the necessary information - let me know what might help and I'll post it.

Message Edited by satpreet on 12-19-2005 09:06 AM

$testDateEl = new soapval('TestDate__c', 'dateTime', '2005-12-19T19:51:12.174Z');

// create Contact
$contact = new sObject('Contact',
'FirstName' => 'Test',
'LastName' => 'Date',

$createResult = $sfdc->create($contact);