10
votes
Accepted
Use cases for Enterprise WSDL vs Partner WSDL
A critical difference between the two is how change is handled i.e. what needs to be done when the org the WSDLs are generated from's structure changes - when new fields and objects being added. In ...
5
votes
Accepted
Winter '16 breaks soap API 33.0 DescribeLayout() with VisualforcePage
The complexType VisualforcePage was added to the Winter '16 Partner API in v35.0. In v34.0 and earlier it didn't exist.
<complexType name="VisualforcePage">
<complexContent>
...
4
votes
Accepted
SOQL retrieve limited?
lead.setFirstName(sobj[j].getField("FirstName").toString());
The Lead FirstName field is not required. As such, it will return as null via the API if it is not defined.
You will need to check if it ...
4
votes
Accepted
Winter '16 breaks the Summer '15 Partner API with invalid soapType
Sounds like a bug, you are correct that old API versions shouldn't start returning enumeration values added in later API versions.
Response from support for case #12544039
R&D has set the bug ...
3
votes
Is there any reason behind Enterprise wsdl being recommended for Customers over partner wsdl
This Knowledge Article might help you for understanding Why Enterprise WSDl is recommended for customers
Differences Between Enterprise and partner WSDl
3
votes
Accepted
Does partner wsdl change between sandbox
It can be used for any org.
Using the Partner WSDL
As a loosely typed representation of the Salesforce data model that works with name-value pairs of field names and values instead of specific data ...
3
votes
Working With the Different Salesforce Api's
Short answer is Yes.
There is a caveat - you do not login to SFDC using Tooling Api or Metadata APIs directly.
You have to use Partner API to login and obtain "API endpoint" + "Session Id", and then ...
3
votes
Is there any reason behind Enterprise wsdl being recommended for Customers over partner wsdl
Personally, I've never used the Enterprise WSDL for anything other than quick one off integrations that aren't going to be around for very long.
Why?
While it's handy having the strongly typed ...
3
votes
Test Class for WSDL2Apex class generated by Salesforce Partner WSDL
I made a alternative version of WSDL2Apex that can also generate the test classes for coverage and the Mock. You can get it via the FuseIT SFDC Explorer for free (Disclaimer: This is from my current ...
3
votes
Accepted
Using Partner WSDL to update record in Salesforce
Partner WSDL is loosely coupled so you do not need to provide the WSDL again .
However the third party code would still use string identifier for the field names that needs to be updated .So you ...
3
votes
Accepted
INVALID_SESSION_ID when calling Salesforce services from Java
This is a pretty common problem.
After you call the login method you get a LoginResult back in the response.
That response includes the sessionId that you then need to include in the in the ...
3
votes
Accepted
Which Summer '19 (v46) sObject types are returning field describe results of soapType "tns:json"?
Apparently, there is a bug on Salesforce API v45.0 which leaks the new type JSON designed for Salesforce API v46.0. This is observed on the APIEvent object on the RecordData field whose type is json. ...
2
votes
Accepted
Setting value for Case "Record Type" is failing with SOAP API v 36
RecordType is a reference field. If you wanted to set the record type by name, you'd use that. However, since you already have the recordTypeId, you need to use the RecordTypeId field.
We got the ...
2
votes
Partner WSDL version overriding for SOAP and BULK
Salesforce supports a number of versions all at once, so the only two important factors are (a) don't upgrade to the latest version (e.g. 35.0 for Winter 16) until all orgs have been upgraded, and (b) ...
2
votes
Accepted
Security concerns about connecting to external systems
What you are currently doing is not secure, and in fact you have compromised any credentials shared this way. Passing the username and password to an external system is a bad practice, as is passing a ...
2
votes
Tooling API : how to query on Salesforce Standard classes?
Not quite sure what’s your use case but with what you are looking for —
But how to query standard classes such as "List", "System", "Database" etc...?
You can never. These are platform ...
2
votes
Test Class for WSDL2Apex class generated by Salesforce Partner WSDL
You will have to use a Mock class.
You can find the documentation about it here.
You can write a mock method for each method included in your wsdl.
2
votes
Is there any reason behind Enterprise wsdl being recommended for Customers over partner wsdl
The security will be the same.
The general rule of thumb is if you are writing code for a specific org, then the Enterprise WSDL will be easier to use. This is because code generation tools will be ...
2
votes
Working With the Different Salesforce Api's
If your java application implements an oauth flow then it is definitely possible .
I would recommend you to explore oauth flow .For oauth you will create a connected app in your developer org .
...
2
votes
Accepted
Not able to generate Partner.jar
You are trying to generate partner.jar using WSDL file and you are using "force-wsc-36.1.1.jar" (File as Web Service Connector).
As of WSC-36 connector required an additional framework to generate "...
2
votes
Accepted
How to manage PartnerConnection instance?
You can not use the Session that this establishes indefinitely. At some point the Session ID that it contains will become invalid. This could be due to inactivity, or it could be due to the session ...
1
vote
Accepted
How to get current time of logged in Salesforce user using Salesforce API?
When you login to an org using the Partner WSDL and the SOAP API login() function, you can access the user's time zone using the resulting LoginResult object:
login["result"]["userInfo"]["...
1
vote
Accepted
Updating child record from Parent using Web Service
You can write a webservice here, which can be called via SOAP.
global with sharing class MyWebService
{
webservice static void updateChildren(Id parentId)
{
// do stuff
}
}
You'...
1
vote
Accepted
Test Class for WSDL2Apex class generated by Salesforce Partner WSDL
Use mock callouts by either implementing an interface or using static resources.
Mock callouts allow you to specify the response to return in the test instead of actually calling the web service.The ...
1
vote
Partner WSDL version overriding for SOAP and BULK
Generally speaking, you only need one version of the Partner WSDL at any one time. An org will be backwards compatible with any previous WSDL.
For example, right now all orgs are either on Summer '15 ...
1
vote
Accepted
How can I connect two Salesforce.com orgs by using the partner WSDL?
As you found, the AnyType data type can't be handled by WebServiceCallout.invoke. If you want to stay with the SOAP web services, you can use the FuseIT Wsdl2Apex to generate the HttpCallouts for the ...
1
vote
Insert/Update multiple records in salesforce using webservice
See the treesave API pilot:
It lets you save records in hierarchy via the rest API.
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm
1
vote
Salesforce PHP API : INVALID_LOGIN
I cannot comment yet, so I am posting this as a separate answer. This code was working for me:
require_once(SOAP_CLIENT_BASEDIR.'/SforcePartnerClient.php');
require_once(SOAP_CLIENT_BASEDIR.'/...
1
vote
Salesforce PHP API : INVALID_LOGIN
If you want to connect sandbox environment follow below steps
Modify your SforceBaseClient.php and point it to test.salesforce.com at line 159
Make sure you are passing securiy token with your ...
1
vote
Salesforce PHP API : INVALID_LOGIN
Below is the code that I used to connect using PHP
<?php
/*****************************************************************
* This code utilizes the SFDC-PHP API Code
******...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
partner-wsdl × 77soap-api × 23
java × 13
apex × 12
c# × 11
wsdl × 11
wsdl2apex × 8
webservices × 7
integration × 6
metadata-api × 6
soap × 6
enterprise-wsdl × 6
tooling-api × 4
partner × 4
api × 3
callout × 3
.net × 3
soql × 2
managed-package × 2
update × 2
login × 2
session × 2
lma × 2
winter16 × 2
visualforce × 1