• mvc
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hi There

I have seen some other posts related to this subject, but unfortunately I could not resolve my issue with the feedback provided. I'm hoping someone here can assist.

I have pasted my request and response messages below. I'm trying to update a single field in 'Contact' using the enterprise WSDL and have tried various combinations of fields, including a different sObject of Account, but all render the same response.

I have successfully retrieved information using query and retrieve however, after login. I'm trying this from a native xml development environment and have tried submitting this request from XML Spy and a browser client-side HTTP request and all return the same response.

I hope you can assist.

Kind Regards

REQUEST

Code:

<—xml version="1.0" encoding="UTF-8"–>

<soap:Envelope xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header>

<SessionHeader xmlns="urn:enterprise.soap.sforce.com">

<sessionId>SessionId as returned after login</sessionId>

</SessionHeader>

</soap:Header>

<soap:Body>

<ns2:update xmlns="urn:enterprise.soap.sforce.com" xmlns:ns2="urn:enterprise.soap.sforce.com">

<ns2:sObjects xsi:type="ns3:Contact" xmlns:ns3="urn:sobject.enterprise.soap.sforce.com" xmlns="urn:sobject.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance">

<ns3:Id>Valid Id as returned by query action</ns3:Id>

<ns3:FirstName>Nigel</ns3:FirstName>

</ns2:sObjects>

</ns2:update>

</soap:Body>

</soap:Envelope>

RESPONSE

<˜xml version="1.0" encoding="UTF-8"™>

<SOAP-ENV:Envelope xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:HttpHeader>

<attribute name="Cache-Control">private</attribute>

</SOAP-ENV:HttpHeader>

<SOAP-ENV:Body>

<soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<faultcode>sf:INVALID_TYPE</faultcode>

<faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring>

<detail>

<sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<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>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

I've edited the message to prevent it from breaking the template. Original post by  mvc - Kingsley

Message Edited by Kingsley on 01-05-2007 11:45 AM

  • January 04, 2007
  • Like
  • 0

Hi There

I have seen some other posts related to this subject, but unfortunately I could not resolve my issue with the feedback provided. I'm hoping someone here can assist.

I have pasted my request and response messages below. I'm trying to update a single field in 'Contact' using the enterprise WSDL and have tried various combinations of fields, including a different sObject of Account, but all render the same response.

I have successfully retrieved information using query and retrieve however, after login. I'm trying this from a native xml development environment and have tried submitting this request from XML Spy and a browser client-side HTTP request and all return the same response.

I hope you can assist.

Kind Regards

REQUEST

Code:

<—xml version="1.0" encoding="UTF-8"–>

<soap:Envelope xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header>

<SessionHeader xmlns="urn:enterprise.soap.sforce.com">

<sessionId>SessionId as returned after login</sessionId>

</SessionHeader>

</soap:Header>

<soap:Body>

<ns2:update xmlns="urn:enterprise.soap.sforce.com" xmlns:ns2="urn:enterprise.soap.sforce.com">

<ns2:sObjects xsi:type="ns3:Contact" xmlns:ns3="urn:sobject.enterprise.soap.sforce.com" xmlns="urn:sobject.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance">

<ns3:Id>Valid Id as returned by query action</ns3:Id>

<ns3:FirstName>Nigel</ns3:FirstName>

</ns2:sObjects>

</ns2:update>

</soap:Body>

</soap:Envelope>

RESPONSE

<˜xml version="1.0" encoding="UTF-8"™>

<SOAP-ENV:Envelope xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:HttpHeader>

<attribute name="Cache-Control">private</attribute>

</SOAP-ENV:HttpHeader>

<SOAP-ENV:Body>

<soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<faultcode>sf:INVALID_TYPE</faultcode>

<faultstring>INVALID_TYPE: Must send a concrete entity type.</faultstring>

<detail>

<sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<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>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

I've edited the message to prevent it from breaking the template. Original post by  mvc - Kingsley

Message Edited by Kingsley on 01-05-2007 11:45 AM

  • January 04, 2007
  • Like
  • 0