Salesforce & xsi:type

From: Date: Tue, 07 Mar 2006 18:49:43 +0000
Subject: Salesforce & xsi:type
Groups: php.soap 
Request: Send a blank email to php-soap+get-2145@lists.php.net to get a copy of this message
Hi, At the moment, I'm trying to talk to the Salesforce server. Retrieving data works fine - no problems there. However, the problem starts when I try to either update or create a new record... After a bit of googling round, I THINK it's due to the fact that <sObjects> is missing xsi:type="string" or something like that. However, I'm a bit at a loss as to how to fix this. The code is pretty standard... --- require_once("../SalesforceClient.php"); include_once("salesforce.conf"); ... $client = new SalesforceClient($SESSION); $client->_endpoint = $_COOKIE['sf_endpoint']; .... $FIELDS = array( 'type'=>'lead', 'FirstName'=>'newtest', 'LastName'=>'test', 'Company'=>'testthis'); $client->create($FIELDS); print_r($client); ---- Any ideas? The output from the SOAP stuff follows.... Deepest thanks for any help you folks are able to give, Y. ----- salesforceclient Object (
    [sessionId] => REMOVED
    [_endpoint] => https://na1-api.salesforce.com/services/Soap/c/7.0
    [_portName] =>
    [__endpointType] =>
    [xml] => <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com"><soapenv:Body><soapenv:Fault><faultcode>sf:INVALID_TYPE</faultcode><faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring><detail><sf:fault xsi:type="sf:InvalidSObjectFault"><sf:exceptionCode>INVALID_TYPE</sf:exceptionCode><sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage><sf:row>-1</sf:row><sf:column>-1</sf:column></sf:fault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
    [wire] => OUTGOING:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope 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/" xmlns:ns4="urn:enterprise.soap.sforce.com"
<SOAP-ENV:Header>
<ns4:SessionHeader SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0"> <ns4:sessionId> REMOVED</ns4:sessionId></ns4:SessionHeader> <ns4:CallOptions SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0"> <ns4:client>phpClient/1.0</ns4:client></ns4:CallOptions> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns4:create> <ns4:sObjects> <ns4:type>lead</ns4:type> <ns4:FirstName>newtest</ns4:FirstName> <ns4:LastName>test</ns4:LastName> <ns4:Company>testthis</ns4:Company></ns4:sObjects></ns4:create> </SOAP-ENV:Body> </SOAP-ENV:Envelope> INCOMING HTTP/1.0 500 Internal Server Error Server: Cache-Control: private Content-Type: text/xml; charset=utf-8 Content-Length: 693 Date: Tue, 07 Mar 2006 04:47:51 GMT <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com"> <soapenv:Body> <soapenv:Fault> <faultcode>sf:INVALID_TYPE</faultcode> <faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring> <detail> <sf:fault xsi:type="sf:InvalidSObjectFault"> <sf:exceptionCode>INVALID_TYPE</sf:exceptionCode> <sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage> <sf:row>-1</sf:row> <sf:column>-1</sf:column> </sf:fault> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
    [__last_request] => <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 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/" xmlns:ns4="urn:enterprise.soap.sforce.com"
<SOAP-ENV:Header>
<ns4:SessionHeader SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0"> <ns4:sessionId>I7wr3taEgP5ReEZqGfymwTx7JzNTlrD8E2bUGXrgBWA9ej2dYoLIJuQ3T25Sg.Fs.v2X2btzFhou02X3IyD57WpYnKO9AsNCSeX5jsUoLXQ=</ns4:sessionId></ns4:SessionHeader> <ns4:CallOptions SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0"> <ns4:client>phpClient/1.0</ns4:client></ns4:CallOptions> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns4:create> <ns4:sObjects> <ns4:type>lead</ns4:type> <ns4:FirstName>newtest</ns4:FirstName> <ns4:LastName>test</ns4:LastName> <ns4:Company>testthis</ns4:Company></ns4:sObjects></ns4:create> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
    [__last_response] => HTTP/1.0 500 Internal Server Error
Server: Cache-Control: private Content-Type: text/xml; charset=utf-8 Content-Length: 693 Date: Tue, 07 Mar 2006 04:47:51 GMT <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com"><soapenv:Body><soapenv:Fault><faultcode>sf:INVALID_TYPE</faultcode><faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring><detail><sf:fault xsi:type="sf:InvalidSObjectFault"><sf:exceptionCode>INVALID_TYPE</sf:exceptionCode><sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage><sf:row>-1</sf:row><sf:column>-1</sf:column></sf:fault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
    [__options] => Array
        (
            [trace] => 1
            [curl] => Array
                (
                    [84] => 1.0
                )
            [timeout] => 3600
            [input] => parse
            [result] => parse
            [parameters] =>
            [namespace] => urn:enterprise.soap.sforce.com
            [soapaction] =>
            [style] => document
            [use] => literal
        )
    [_encoding] => UTF-8
    [headersIn] =>
    [__proxy_params] => Array
        (
        )
    [_soap_transport] => soap_transport_http Object
        (
            [_XMLSchema] => Array
                (
                    [0] => http://www.w3.org/2001/XMLSchema
                    [1] => http://www.w3.org/1999/XMLSchema
                )
            [_XMLSchemaVersion] => http://www.w3.org/2001/XMLSchema
            [_typemap] => Array
                (
                    [http://www.w3.org/2001/XMLSchema] => Array
                        (
                            [string] => string
                            [boolean] => boolean
                            [float] => float
                            [double] => float
                            [decimal] => float
                            [duration] => integer
                            [dateTime] => string
                            [time] => string
                            [date] => string
                            [gYearMonth] => integer
                            [gYear] => integer
                            [gMonthDay] => integer
                            [gDay] => integer
                            [gMonth] => integer
                            [hexBinary] => string
                            [base64Binary] => string
                            [normalizedString] => string
                            [token] => string
                            [language] => string
                            [NMTOKEN] => string
                            [NMTOKENS] => string
                            [Name] => string
                            [NCName] => string
                            [ID] => string
                            [IDREF] => string
                            [IDREFS] => string
                            [ENTITY] => string
                            [ENTITIES] => string
                            [integer] => integer
                            [nonPositiveInteger] => integer
                            [negativeInteger] => integer
                            [long] => integer
                            [int] => integer
                            [short] => integer
                            [byte] => string
                            [nonNegativeInteger] => integer
                            [unsignedLong] => integer
                            [unsignedInt] => integer
                            [unsignedShort] => integer
                            [unsignedByte] => integer
                            [positiveInteger] => integer
                            [anyType] => string
                            [anyURI] => string
                            [QName] => string
                        )
                    [http://www.w3.org/1999/XMLSchema] => Array
                        (
                            [i4] => integer
                            [int] => integer
                            [boolean] => boolean
                            [string] => string
                            [double] => float
                            [float] => float
                            [dateTime] => string
                            [timeInstant] => string
                            [base64Binary] => string
                            [base64] => string
                            [ur-type] => string
                        )
                    [http://schemas.xmlsoap.org/soap/encoding/] => Array
                        (
                            [base64] => string
                            [array] => array
                            [Array] => array
                            [Struct] => array
                        )
                )
            [_defaultObjectClassname] => stdClass
            [_namespaces] => Array
                (
                    [http://schemas.xmlsoap.org/soap/envelope/] => SOAP-ENV
                    [http://www.w3.org/2001/XMLSchema] => xsd
                    [http://www.w3.org/2001/XMLSchema-instance] => xsi
                    [http://schemas.xmlsoap.org/soap/encoding/] => SOAP-ENC
                )
            [_namespace] =>
            [_xmlEntities] => Array
                (
                    [&] => &amp;
                    [<] => &lt;
                    [>] => &gt;
                    ['] => &apos;
                    ["] => &quot;
                )
            [_doconversion] =>
            [__attachments] => Array
                (
                )
            [_wsdl] =>
            [_section5] => 1
            [_auto_translation] =>
            [_type_translation] => Array
                (
                )
            [_debug_flag] =>
            [_debug_data] =>
            [_encodings] => Array
                (
                    [0] => ISO-8859-1
                    [1] => US-ASCII
                    [2] => UTF-8
                )
            [_myfaultcode] => HTTP
            [fault] =>
            [_debug] =>
            [_default_error_mode] =>
            [_default_error_options] =>
            [_default_error_handler] =>
            [_error_class] => SOAP_Fault
            [_expected_errors] => Array
                (
                )
            [headers] => Array
                (
                )
            [cookies] =>
            [timeout] => 3600
            [urlparts] => Array
                (
                    [scheme] => https
                    [host] => na1-api.salesforce.com
                    [path] => /services/Soap/c/7.0
                    [port] => 443
                )
            [url] => https://na1-api.salesforce.com/services/Soap/c/7.0
            [incoming_payload] => HTTP/1.0 500 Internal Server Error
Server: Cache-Control: private Content-Type: text/xml; charset=utf-8 Content-Length: 693 Date: Tue, 07 Mar 2006 04:47:51 GMT <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com"><soapenv:Body><soapenv:Fault><faultcode>sf:INVALID_TYPE</faultcode><faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring><detail><sf:fault xsi:type="sf:InvalidSObjectFault"><sf:exceptionCode>INVALID_TYPE</sf:exceptionCode><sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage><sf:row>-1</sf:row><sf:column>-1</sf:column></sf:fault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
            [_userAgent] => PEAR-SOAP 0.8.0RC4-devel
            [encoding] => UTF-8
            [result_encoding] => UTF-8
            [result_content_type] => text/xml
            [result_headers] => Array
                (
                    [server] =>
                    [cache-control] => private
                    [content-type] => text/xml; charset=utf-8
                    [content-length] => 693
                    [date] => Tue, 07 Mar 2006 04
                )
            [result_cookies] => Array
                (
                )
            [outgoing_payload] => <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 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/" xmlns:ns4="urn:enterprise.soap.sforce.com"
<SOAP-ENV:Header>
<ns4:SessionHeader SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0"> <ns4:sessionId>I7wr3taEgP5ReEZqGfymwTx7JzNTlrD8E2bUGXrgBWA9ej2dYoLIJuQ3T25Sg.Fs.v2X2btzFhou02X3IyD57WpYnKO9AsNCSeX5jsUoLXQ=</ns4:sessionId></ns4:SessionHeader> <ns4:CallOptions SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" SOAP-ENV:mustUnderstand="0"> <ns4:client>phpClient/1.0</ns4:client></ns4:CallOptions> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns4:create> <ns4:sObjects> <ns4:type>lead</ns4:type> <ns4:FirstName>newtest</ns4:FirstName> <ns4:LastName>test</ns4:LastName> <ns4:Company>testthis</ns4:Company></ns4:sObjects></ns4:create> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
            [response] => <?xml version="1.0" encoding="UTF-8"?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com"><soapenv:Body><soapenv:Fault><faultcode>sf:INVALID_TYPE</faultcode><faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring><detail><sf:fault xsi:type="sf:InvalidSObjectFault"><sf:exceptionCode>INVALID_TYPE</sf:exceptionCode><sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage><sf:row>-1</sf:row><sf:column>-1</sf:column></sf:fault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
            [attachments] =>
        )
    [_XMLSchema] => Array
        (
            [0] => http://www.w3.org/2001/XMLSchema
            [1] => http://www.w3.org/1999/XMLSchema
        )
    [_XMLSchemaVersion] => http://www.w3.org/2001/XMLSchema
    [_typemap] => Array
        (
            [http://www.w3.org/2001/XMLSchema] => Array
                (
                    [string] => string
                    [boolean] => boolean
                    [float] => float
                    [double] => float
                    [decimal] => float
                    [duration] => integer
                    [dateTime] => string
                    [time] => string
                    [date] => string
                    [gYearMonth] => integer
                    [gYear] => integer
                    [gMonthDay] => integer
                    [gDay] => integer
                    [gMonth] => integer
                    [hexBinary] => string
                    [base64Binary] => string
                    [normalizedString] => string
                    [token] => string
                    [language] => string
                    [NMTOKEN] => string
                    [NMTOKENS] => string
                    [Name] => string
                    [NCName] => string
                    [ID] => string
                    [IDREF] => string
                    [IDREFS] => string
                    [ENTITY] => string
                    [ENTITIES] => string
                    [integer] => integer
                    [nonPositiveInteger] => integer
                    [negativeInteger] => integer
                    [long] => integer
                    [int] => integer
                    [short] => integer
                    [byte] => string
                    [nonNegativeInteger] => integer
                    [unsignedLong] => integer
                    [unsignedInt] => integer
                    [unsignedShort] => integer
                    [unsignedByte] => integer
                    [positiveInteger] => integer
                    [anyType] => string
                    [anyURI] => string
                    [QName] => string
                )
            [http://www.w3.org/1999/XMLSchema] => Array
                (
                    [i4] => integer
                    [int] => integer
                    [boolean] => boolean
                    [string] => string
                    [double] => float
                    [float] => float
                    [dateTime] => string
                    [timeInstant] => string
                    [base64Binary] => string
                    [base64] => string
                    [ur-type] => string
                )
            [http://schemas.xmlsoap.org/soap/encoding/] => Array
                (
                    [base64] => string
                    [array] => array
                    [Array] => array
                    [Struct] => array
                )
        )
    [_defaultObjectClassname] => stdClass
    [_namespaces] => Array
        (
            [http://schemas.xmlsoap.org/soap/envelope/] => SOAP-ENV
            [http://www.w3.org/2001/XMLSchema] => xsd
            [http://www.w3.org/2001/XMLSchema-instance] => xsi
            [http://schemas.xmlsoap.org/soap/encoding/] => SOAP-ENC
            [urn:enterprise.soap.sforce.com] => ns4
        )
    [_namespace] =>
    [_xmlEntities] => Array
        (
            [&] => &amp;
            [<] => &lt;
            [>] => &gt;
            ['] => &apos;
            ["] => &quot;
        )
    [_doconversion] =>
    [__attachments] =>
    [_wsdl] =>
    [_section5] =>
    [_auto_translation] =>
    [_type_translation] => Array
        (
        )
    [_debug_flag] =>
    [_debug_data] =>
    [_encodings] => Array
        (
            [0] => ISO-8859-1
            [1] => US-ASCII
            [2] => UTF-8
        )
    [_myfaultcode] => Client
    [fault] => soap_fault Object
        (
            [error_message_prefix] =>
            [mode] => 1
            [level] => 1024
            [code] => sf:INVALID_TYPE
            [message] => INVALID_TYPE: Must send a concrete entity type.
            [userinfo] => stdClass Object
                (
                    [fault] => stdClass Object
                        (
                            [exceptionCode] => INVALID_TYPE
                            [exceptionMessage] => Must send a concrete entity type.
                            [row] => -1
                            [column] => -1
                        )
                )
            [backtrace] => Array
                (
                    [0] => Array
                        (
                            [file] => /usr/share/pear/SOAP/Fault.php
                            [line] => 52
                            [function] => pear_error
                            [class] => pear_error
                            [type] => ::
                            [args] => Array
                                (
                                    [0] => INVALID_TYPE: Must send a concrete entity type.
                                    [1] => sf:INVALID_TYPE
                                    [2] =>
                                    [3] =>
                                    [4] => stdClass Object
                                        (
                                            [fault] => stdClass Object
                                                (
                                                    [exceptionCode] => INVALID_TYPE
                                                    [exceptionMessage] => Must send a concrete entity type.
                                                    [row] => -1
                                                    [column] => -1
                                                )
                                        )
                                )
                        )
                    [1] => Array
                        (
                            [file] => /usr/share/pear/SOAP/Base.php
                            [line] => 215
                            [function] => soap_fault
                            [class] => soap_fault
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => INVALID_TYPE: Must send a concrete entity type.
                                    [1] => sf:INVALID_TYPE
                                    [2] =>
                                    [3] => stdClass Object
                                        (
                                            [fault] => stdClass Object
                                                (
                                                    [exceptionCode] => INVALID_TYPE
                                                    [exceptionMessage] => Must send a concrete entity type.
                                                    [row] => -1
                                                    [column] => -1
                                                )
                                        )
                                    [4] =>
                                    [5] =>
                                )
                        )
                    [2] => Array
                        (
                            [file] => /usr/share/pear/SOAP/Client.php
                            [line] => 708
                            [function] => _raisesoapfault
                            [class] => salesforceclient
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => INVALID_TYPE: Must send a concrete entity type.
                                    [1] => stdClass Object
                                        (
                                            [fault] => stdClass Object
                                                (
                                                    [exceptionCode] => INVALID_TYPE
                                                    [exceptionMessage] => Must send a concrete entity type.
                                                    [row] => -1
                                                    [column] => -1
                                                )
                                        )
                                    [2] =>
                                    [3] => sf:INVALID_TYPE
                                )
                        )
                    [3] => Array
                        (
                            [file] => /usr/share/pear/SOAP/Client.php
                            [line] => 665
                            [function] => __decoderesponse
                            [class] => salesforceclient
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => soap_value Object
                                        (
                                            [value] => Array
                                                (
                                                    [0] => soap_value Object
                                                        (
                                                            [value] => sf:INVALID_TYPE
                                                            [name] => faultcode
                                                            [type] => string
                                                            [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                            [type_namespace] =>
                                                            [attributes] => Array
                                                                (
                                                                )
                                                            [arrayType] =>
                                                            [options] => Array
                                                                (
                                                                )
                                                            [nqn] => qname Object
                                                                (
                                                                    [name] => faultcode
                                                                    [ns] =>
                                                                    [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                                )
                                                            [tqn] => qname Object
                                                                (
                                                                    [name] => string
                                                                    [ns] =>
                                                                    [namespace] =>
                                                                )
                                                            [type_prefix] =>
                                                        )
                                                    [1] => soap_value Object
                                                        (
                                                            [value] => INVALID_TYPE: Must send a concrete entity type.
                                                            [name] => faultstring
                                                            [type] => string
                                                            [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                            [type_namespace] =>
                                                            [attributes] => Array
                                                                (
                                                                )
                                                            [arrayType] =>
                                                            [options] => Array
                                                                (
                                                                )
                                                            [nqn] => qname Object
                                                                (
                                                                    [name] => faultstring
                                                                    [ns] =>
                                                                    [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                                )
                                                            [tqn] => qname Object
                                                                (
                                                                    [name] => string
                                                                    [ns] =>
                                                                    [namespace] =>
                                                                )
                                                            [type_prefix] =>
                                                        )
                                                    [2] => soap_value Object
                                                        (
                                                            [value] => Array
                                                                (
                                                                    [0] => soap_value Object
                                                                        (
                                                                            [value] => Array
                                                                                (
                                                                                    [0] => soap_value Object
                                                                                        (
                                                                                            [value] => INVALID_TYPE
                                                                                            [name] => exceptionCode
                                                                                            [type] => string
                                                                                            [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                            [type_namespace] =>
                                                                                            [attributes] => Array
                                                                                                (
                                                                                                )
                                                                                            [arrayType] =>
                                                                                            [options] => Array
                                                                                                (
                                                                                                )
                                                                                            [nqn] => qname Object
                                                                                                (
                                                                                                    [name] => exceptionCode
                                                                                                    [ns] =>
                                                                                                    [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                                )
                                                                                            [tqn] => qname Object
                                                                                                (
                                                                                                    [name] => string
                                                                                                    [ns] =>
                                                                                                    [namespace] =>
                                                                                                )
                                                                                            [type_prefix] =>
                                                                                        )
                                                                                    [1] => soap_value Object
                                                                                        (
                                                                                            [value] => Must send a concrete entity type.
                                                                                            [name] => exceptionMessage
                                                                                            [type] => string
                                                                                            [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                            [type_namespace] =>
                                                                                            [attributes] => Array
                                                                                                (
                                                                                                )
                                                                                            [arrayType] =>
                                                                                            [options] => Array
                                                                                                (
                                                                                                )
                                                                                            [nqn] => qname Object
                                                                                                (
                                                                                                    [name] => exceptionMessage
                                                                                                    [ns] =>
                                                                                                    [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                                )
                                                                                            [tqn] => qname Object
                                                                                                (
                                                                                                    [name] => string
                                                                                                    [ns] =>
                                                                                                    [namespace] =>
                                                                                                )
                                                                                            [type_prefix] =>
                                                                                        )
                                                                                    [2] => soap_value Object
                                                                                        (
                                                                                            [value] => -1
                                                                                            [name] => row
                                                                                            [type] => string
                                                                                            [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                            [type_namespace] =>
                                                                                            [attributes] => Array
                                                                                                (
                                                                                                )
                                                                                            [arrayType] =>
                                                                                            [options] => Array
                                                                                                (
                                                                                                )
                                                                                            [nqn] => qname Object
                                                                                                (
                                                                                                    [name] => row
                                                                                                    [ns] =>
                                                                                                    [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                                )
                                                                                            [tqn] => qname Object
                                                                                                (
                                                                                                    [name] => string
                                                                                                    [ns] =>
                                                                                                    [namespace] =>
                                                                                                )
                                                                                            [type_prefix] =>
                                                                                        )
                                                                                    [3] => soap_value Object
                                                                                        (
                                                                                            [value] => -1
                                                                                            [name] => column
                                                                                            [type] => string
                                                                                            [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                            [type_namespace] =>
                                                                                            [attributes] => Array
                                                                                                (
                                                                                                )
                                                                                            [arrayType] =>
                                                                                            [options] => Array
                                                                                                (
                                                                                                )
                                                                                            [nqn] => qname Object
                                                                                                (
                                                                                                    [name] => column
                                                                                                    [ns] =>
                                                                                                    [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                                )
                                                                                            [tqn] => qname Object
                                                                                                (
                                                                                                    [name] => string
                                                                                                    [ns] =>
                                                                                                    [namespace] =>
                                                                                                )
                                                                                            [type_prefix] =>
                                                                                        )
                                                                                )
                                                                            [name] => fault
                                                                            [type] => InvalidSObjectFault
                                                                            [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                            [type_namespace] => urn:fault.enterprise.soap.sforce.com
                                                                            [attributes] => Array
                                                                                (
                                                                                )
                                                                            [arrayType] =>
                                                                            [options] => Array
                                                                                (
                                                                                )
                                                                            [nqn] => qname Object
                                                                                (
                                                                                    [name] => fault
                                                                                    [ns] =>
                                                                                    [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                )
                                                                            [tqn] => qname Object
                                                                                (
                                                                                    [name] => InvalidSObjectFault
                                                                                    [ns] =>
                                                                                    [namespace] => urn:fault.enterprise.soap.sforce.com
                                                                                )
                                                                            [type_prefix] =>
                                                                        )
                                                                )
                                                            [name] => detail
                                                            [type] => Struct
                                                            [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                            [type_namespace] =>
                                                            [attributes] => Array
                                                                (
                                                                )
                                                            [arrayType] =>
                                                            [options] => Array
                                                                (
                                                                )
                                                            [nqn] => qname Object
                                                                (
                                                                    [name] => detail
                                                                    [ns] =>
                                                                    [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                                )
                                                            [tqn] => qname Object
                                                                (
                                                                    [name] => Struct
                                                                    [ns] =>
                                                                    [namespace] =>
                                                                )
                                                            [type_prefix] =>
                                                        )
                                                )
                                            [name] => Fault
                                            [type] => Struct
                                            [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                            [type_namespace] =>
                                            [attributes] => Array
                                                (
                                                )
                                            [arrayType] =>
                                            [options] => Array
                                                (
                                                )
                                            [nqn] => qname Object
                                                (
                                                    [name] => Fault
                                                    [ns] =>
                                                    [namespace] => http://schemas.xmlsoap.org/soap/envelope/
                                                )
                                            [tqn] => qname Object
                                                (
                                                    [name] => Struct
                                                    [ns] =>
                                                    [namespace] =>
                                                )
                                            [type_prefix] =>
                                        )
                                )
                        )
                    [4] => Array
                        (
                            [file] => /usr/share/pear/SOAP/Client.php
                            [line] => 345
                            [function] => __parse
                            [class] => salesforceclient
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com"><soapenv:Body><soapenv:Fault><faultcode>sf:INVALID_TYPE</faultcode><faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring><detail><sf:fault xsi:type="sf:InvalidSObjectFault"><sf:exceptionCode>INVALID_TYPE</sf:exceptionCode><sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage><sf:row>-1</sf:row><sf:column>-1</sf:column></sf:fault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
                                    [1] => UTF-8
                                    [2] =>
                                )
                        )
                    [5] => Array
                        (
                            [file] => /site_name/wsdltest/WebService_SforceService_Soap.php
                            [line] => 100
                            [function] => call
                            [class] => salesforceclient
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => create
                                    [1] => Array
                                        (
                                            [create] => soap_value Object
                                                (
                                                    [value] => Array
                                                        (
                                                            [sObjects] => Array
                                                                (
                                                                    [type] => lead
                                                                    [FirstName] => newtest
                                                                    [LastName] => test
                                                                    [Company] => testthis
                                                                )
                                                        )
                                                    [name] => create
                                                    [type] =>
                                                    [namespace] => urn:enterprise.soap.sforce.com
                                                    [type_namespace] =>
                                                    [attributes] => Array
                                                        (
                                                        )
                                                    [arrayType] =>
                                                    [options] => Array
                                                        (
                                                        )
                                                    [nqn] => qname Object
                                                        (
                                                            [name] => create
                                                            [ns] =>
                                                            [namespace] => urn:enterprise.soap.sforce.com
                                                        )
                                                    [tqn] => qname Object
                                                        (
                                                            [name] =>
                                                            [ns] =>
                                                            [namespace] =>
                                                        )
                                                    [type_prefix] =>
                                                )
                                        )
                                    [2] => Array
                                        (
                                            [namespace] => urn:enterprise.soap.sforce.com
                                            [soapaction] =>
                                            [style] => document
                                            [use] => literal
                                        )
                                )
                        )
                    [6] => Array
                        (
                            [file] => /site_name/wsdltest/SalesforceClient.php
                            [line] => 193
                            [function] => create
                            [class] => webservice_sforceservice_soap
                            [type] => ::
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                            [type] => lead
                                            [FirstName] => newtest
                                            [LastName] => test
                                            [Company] => testthis
                                        )
                                )
                        )
                    [7] => Array
                        (
                            [file] => /site_name/wsdltest/example/list.php
                            [line] => 131
                            [function] => create
                            [class] => salesforceclient
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                            [type] => lead
                                            [FirstName] => newtest
                                            [LastName] => test
                                            [Company] => testthis
                                        )
                                )
                        )
                )
            [callback] =>
        )
    [_debug] =>
    [_default_error_mode] =>
    [_default_error_options] =>
    [_default_error_handler] =>
    [_error_class] => SOAP_Fault
    [_expected_errors] => Array
        (
        )
    [clientId] => phpClient/1.0
    [__result_encoding] => UTF-8
) ---

« previous php.soap (#2145) next »