10
votes
Accepted
Understanding a WSDL file
Probably the easiest way to understand what methods are defined in a WSDL and what their respective parameters are is to start with a tool like SoapUI.
You can import the WSDL and it will generate ...
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 ...
8
votes
Accepted
sObject type 'Pricebook2__c' is not supported
It's hard to tell what data you're even working with, but the standard object name is simply Pricebook2 (no underscores).
If you are trying to insert a record looking up to this object (such as ...
7
votes
Accepted
Salesforce Wsdl not valid any more
Looks like it could be a bug in .NET's XML serializer:
https://help.salesforce.com/HTViewSolution?id=000205824&language=en_US
6
votes
Accepted
Unsupported Schema element found http://www.w3.org/2001/XMLSchema:attribute
In this particular case you are dealing with the common wsdl:import that .NET adds to web services to handle generic serialization (schemas.microsoft.com.2003.10.Serialization.xsd Schema).
Being ...
6
votes
Unsupported Schema element found http://www.w3.org/2001/XMLSchema:attribute
Salesforce's Wsdl2Apex doesn't support the xs:attribute element. In this post, @Sonam_SFDC describes how to fix the issue:
Here, I understand that the schema contain definition of attribute
that ...
6
votes
Salesforce Integration - Query
This is expected behavior .The login() has to be from either partner WSDL or the Enterprise WSDL .The Apex class that the would have created with webservice keywords will generate another WSDL that ...
6
votes
@future method vs Async callout
The Async class is intended to be used in a continuation. See Make Long-Running Callouts from a Visualforce Page
Basically, a continuation will provide a callback mechanism so that when the async ...
4
votes
SforceService is not generated in Visual Studio
Mentioning below step by step guide with screen shots to connect .NET console application with Salesforce.
https://cloudvista.wordpress.com/2015/07/21/connecting-net-console-application-to-salesforce-...
4
votes
Accepted
What WSDL should be given to 3rd party vendor?
It really depends on whether you want your integration to be loosely coupled with your salesforce schema or tightly coupled .
With partner WSDL the flexibility will be that even if another field is ...
4
votes
What is use of Apex WSDL used for (Setup->API>Generating the WSDL File)?
it seems like most of operation this WSDL offer are already there on Tooling WSDL then why they have created Apex WSDL?
It is actually the other way round.
Partner/Apex SOAP API predates Tooling API....
4
votes
Accepted
What is the meaning of array elements of *type_info variables in SOAP / WSDL auto-generated Apex classes?
The details are fairly well covered in What are the parameters for the Salesforce WebServiceCallout.invoke method?
From Jeremy's answer:
If the variable represents another XML element or a text node, ...
3
votes
Accepted
Apex to WSDL Generation
If you have the methods marked as a web service keyword there will be a link next to the class in the class list to generate the WSDL
Setup -> Develop -> Apex Classes
3
votes
Accepted
Writing a Webservice class for the WSDL that need to be shared with the third party
If you are sure you want to create a custom API and it has to be SOAP then see e.g. WebService Methods. There is a bit more detail in the "Apex Web Services" section of Apex Web Services and Callouts.
...
3
votes
Accepted
Obtain enterprise WSDL via curl
It looks like the problem could be that you were using an access token instead of a session id. I just got it to work by logging in through the enterprise api and using that session id for sid= in the ...
3
votes
Syncing production WSDL to sandbox?
As far as I'm aware, you can't sync them as such in any kind of real time. But you can deploy changes to fields from Production to a Sandbox.
As a side note, I'd personally recommend making any ...
3
votes
How to make a SOAP call using APEX Class?
If your WSDL is proving to be problematic with the built in wsdl2apex implementation that Salesforce provides you could also try the version they make available via GitHub.
Another alternative is the ...
3
votes
Accepted
How to find the wsdl class?
If you don't modify the class comment. Salesforce insert comment on top of the page as shown below
3
votes
Accepted
SOAP Integration Query
Session ID is the ID returned after you log in, it is used for authentication.
Use the login() call to obtain this, as documented here and here
This SFSE question may also shed some more light on ...
3
votes
Accepted
How to communicate with Salesforce without WSDL?
It sounds like you are using the Enterprise WSDL. This is a strongly typed WSDL that is bound to the Salesforce configuration/schema at the time it was generated.
On the plus side, it gives you easy ...
3
votes
Accepted
Apex callout exception when making hitting an external Service
The reason for this erro was , I was passing the username and password in the wrong way in Http header like below:
sample.inputHttpHeaders_x = new Map<String, String>();
sample....
3
votes
Accepted
How to setup Tooling Api in Java Application?
Only the Enterprise API is Org specific.
The Tooling API will work with any org providing the user has API access. In addition to API access the user making the API calls may require additional ...
3
votes
Accepted
Enterprise WSDL and polymorphism
This is the in-variant vs co-variant scenario on Generic Lists. See Covariance and Contravariance in Generics.
That's the computer science explanation, but I find an example easier to work through.
...
3
votes
If we change the parameters used in webservice method in our org., will this cause error at end user consuming old WSDL?
Yes, Some WSDL has strictly typed XML validators, you change a single thing and hell break loose.
It will break as it won't find the exact match for a method with exact parameters, it would just break
...
3
votes
Accepted
Types of wsdl in salesforce
Salesforce provide 2 types of WSDL. They are Enterprise and Partner.
Enterprise WSDL
The Enterprise WSDL is strongly typed.
The Enterprise WSDL is tied (bound) to a specific configuration of ...
3
votes
Accepted
Script Too Large Error While Generating Apex Classes Using Metadata WSDL
When I've wanted to invoke this API from Apex in the past I have used this already generated and modified code:
Apex Wrapper Salesforce Metadata API
though it looks like it hasn't have much ...
3
votes
Accepted
What's the most efficient way to generate XML using apex?
Any Apex code will fail because of governor limits if the volume of data is open ended.
Some problems can be solved in Apex if the data can be broken up into determinate sized chunks and worked on in ...
2
votes
Salesforce Wsdl not valid any more
Actually, it is a bug. It's due to the fact that the ListViewRecord object only has a single elements, "columns", which is a collection of ListViewRecordColumn objects. .NET reads the WSDL, but skips ...
2
votes
Accepted
Generated SforceService.cs file from enterprise.wsdl is enormous. How to condense?
Salesforce provides two main WSDLs for accessing your orgs data via SOAP.
Enterprise WSDL
This is a strongly typed WSDL that is bound to the specific org it was generated from. It will have elements ...
2
votes
Accepted
What is WSDL? Web Services Definition Language
In simple terms, a webservice is used to send data, over web to any destination.
SOAP is one of the protocols (set of rules) which defines the communication. There are others as well.
WSDL is the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
wsdl × 261wsdl2apex × 66
apex × 62
soap × 53
soap-api × 51
webservices × 35
integration × 32
api × 25
enterprise-wsdl × 20
c# × 13
callout × 12
xml × 12
partner-wsdl × 11
rest-api × 10
marketing-cloud × 9
metadata-api × 9
java × 8
.net × 8
enterprise × 7
php × 6
workflowoutboundmessage × 6
exception × 4
partner × 4
visualforce × 3
unit-test × 3