
Contents |
The Spring '08 release, including the Force.com Web Services API, contains new features and bug fixes that improve the capabilities of applications that leverage the Force.com platform. Considerable effort has been made to ensure backwards capability for applications that have been written against previous versions of the API, starting with API 2.5.
Note: older XML-RPC APIs remain unchanged with this release.
The new API provides a number of powerful enhancements that further improve any integration already in place between Force.com and your other systems. For additional information on the Spring '08 release, please see the Spring '08 Admin Preview, or visit the Apex Wiki. After version 12.0 has been released to your server, see the Force.com Web Services API Developer's Guide.
Important: After the Spring '08 release, the 11.1 version of the WSDL file will not be available. Instead, all requests for a WSDL will return a 12.0 version. Please remember to save WSDL files with your project, as the enterprise WSDL is custom to your organization.
Salesforce.com maintains backwards compability on previous versions of our APIs in accordance with our stated support policy. Salesforce.com recommends that developers migrate to the latest version of the API as often as is feasible in order to receive the benefit of new enhancements from release to release. Developers with integrations on API versions prior to version 2.5 should be planning to migrate to the most recent API in preparation for the eventual end of support for the older API versions.
The metadata API, both asynchronous SOAP and declarative or file-based, are GA for Spring '08 (API version 12.0).
For more information, see the Force.com Metadata API Developer's Guide.
Note the following changes in behavior for the Web Services API:
1. In API versions previous to 12.0, you can supply a SessionHeader without a namespace. Beginning with version 12.0, you must supply a namespace, or an INVALID_SESSION error will occur. The following samples illustrate queries with and without the namespace specified:
No namespace:
<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <SessionHeader> <sessionId xsi:type="xsd:string">272411DT00DaRH!LHyfcM.OIqX_S_zeb5x9N.m_5os_8.0QZXXXXXX</sessionId> </SessionHeader> <CallOptions> <client xsi:type="xsd:string">DeDup/1.0</client> </CallOptions> <QueryOptions> <batchSize xsi:type="xsd:int">1000</batchSize> </QueryOptions> </soap:Header> <soap:Body> <namesp22:query xmlns:namesp22="urn:enterprise.soap.sforce.com"> <query xsi:type="xsd:string">select Name,Id from Account where (Name = ' [bsuk75088.in.test.postini-corp.com]')</query> </namesp22:query> </soap:Body> </soap:Envelope>
Namespace:
<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <sh:SessionHeader xmlns:sh="urn:partner.soap.sforce.com"> <sh:sessionId xsi:type="xsd:string"><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <sh:SessionHeader xmlns:sh="urn:partner.soap.sforce.com"> <sh:sessionId xsi:type="xsd:string">191300DT0000000DaRH!AQkAQMcfyhL.qOIqhXS_S_zeDuL9eX9KpLewhN91pe2H46poD4bk5xhbVBWU.mUz_5oIIFdSp_8.J0QZ9OtqWJMlc81HQrLj</sh:sessionId> </sh:SessionHeader> <CallOptions> <client xsi:type="xsd:string">DeDup/1.0</client> </CallOptions> <QueryOptions> <batchSize xsi:type="xsd:int">1000</batchSize> </QueryOptions> </soap:Header> <soap:Body> <namesp22:query xmlns:namesp22="urn:partner.soap.sforce.com"> <query xsi:type="xsd:string">select Name,Id from Account where (Name = ' [bsku75099.in.test.postini-corp.com]')</query> </namesp22:query> </soap:Body> </soap:Envelope> </sh:sessionId> </sh:SessionHeader> <CallOptions> <client xsi:type="xsd:string">DeDup/1.0</client> </CallOptions> <QueryOptions> <batchSize xsi:type="xsd:int">1000</batchSize> </QueryOptions> </soap:Header> <soap:Body> <namesp22:query xmlns:namesp22="urn:partner.soap.sforce.com"> <query xsi:type="xsd:string">select Name,Id,AccountStatus__c from Account where (Name = ' [bsuk75088.in.test.postini-corp.com]')</query> </namesp22:query> </soap:Body> </soap:Envelope>
2. In API versions previous to 12.0, client applications built with the partner WSDL can send requests to the enterprise endpoint, and enterprise WSDL applications can send to the partner endpoint. Beginning with version 12.0, this is not supported.
The following new objects have been added to the API version 12 and later:
The following objects were changed in API version 12.0:
The following technical notes are available to assist you in migrating from versions earlier than 10.0:
Status codes are now documented. See the Force.com Web Services API Developer's Guide for a list of status codes, the probable cause of the error that generated the status code, and suggested solutions.