9 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 ...
  • 132k
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> ...
5 votes

Enterprise wsdl vs partner wsdl

You do not need to generate the partner WSDL again as it will not have changed. But if the customer has hard coded the set of field names in their logic your new field will not be handled. That may ...
  • 132k
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 ...
  • 7,850
4 votes
Accepted

Permission to see org ID?

There isn't a permission for that, but could be an api version. I ran into this in a similar project and they were somehow using the partner v2.5 endpoint which did not include an org id at that point....
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

salesforce to salesforce using partner wsdl in Apex - query call failing

The trick here is in the warning message that is included in the sobjectPartnerSoapSforceCom class: //Warning: '<xsd:any>' element type has been changed to dataType List<DOM.XmlNode> ...
3 votes

Slow Partnerconnection response

Salesforce may alter the QueryResult batch size based on the fields selected. For example, selecting an Attachment Body reduces the size to 1. Fields with the long text type will also reduce the batch ...
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 ...
  • 1,360
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 ...
  • 53.4k
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

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
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. ...
  • 1,089
2 votes
Accepted

Change account owner with external id on user - partner wsdl (C#)

I have come up with a solution after examining the QueryResult of an Account query including owner fields. All you need to do is append the sObject's fields (including the external id) as child nodes ...
  • 103
2 votes
Accepted

How can I consume 2 web services with one class method?

If you difference the two WSDL files, the only difference your should see (apart from a comment timestamp) is this location for the binding at the bottom: Production: <soap:address location="https:...
  • 132k
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 ...
  • 452k
2 votes
Accepted

Making Apex Callouts to consume Custom Apex Web Service STEPS?

You will need to set the endpoint for the client based on the LoginResult serverUrl. The login call will go to login.salesforce.com. When it comes back the serverUrl will be something like https://...
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

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) ...
  • 452k
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.
  • 7,248
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

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 ...
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 "...
  • 334
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 ...
  • 987
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 ...
  • 29.6k
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,570
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 ...

Only top scored, non community-wiki answers of a minimum length are eligible