• OHT API
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hello everyone,

Searched this topic for the better part of this day, but no solution came up.

Im encountring a strange message while trying to create a new contact.
$username = "Username"; /* edited out */
$password = "Password"; /* edited out */
$token = "token"; /* edited out */
$auth = $password . $token;
$connection = new \SforceEnterpriseClient();
$connection->createConnection(Manager::WSDL); /* the location of the wsdl file is correct */
$loginResponse = $connection->login($username, $auth); /* Login is successful */
Up until this point everything is going smooth. Now, Im trying to do a create contact request:
try {
        //Creating the Contact
        $contact = new \Contact();
        $contact->FirstName = "First";
        $contact->LastName = "Last";

        $response = $connection->create(array($contact), 'Contact');
        var_dump($response);
} catch (Exception $e) {
        echo $e->getMessage();
}

This is a simplified case which reproduces the problem over my system.
The problem is, an exception is thrown. The last "echo" prints out 
Unable to find a deserializer for the type common.api.soap.wsdl.QueryResult Error Id: 1664238328-34686 (2133394444)
Seems like its coming from the SoapClient itself. but i might be wrong.

Im using SoapClient native package of PHP5.3.
If any other data needed, please ask and i'll provide ASAP.

Would appreciate any suggestion or tips on this issue.

Thank you very much in advance