Hot answers tagged

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 ...
9 votes
Accepted

Can I only update 200 records at once with SOAP API? Enterprise WSDL Limitation

Updating the database using SOAP API You can only send 200 records at once to the DML operations create update upsert delete This is in the documentation under Reference > Core Calls for each of ...
  • 3,568
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 ...
  • 131k
8 votes

What is the ID at the end of the Enterprise SOAP service end point URL?

The ID at the end is the PackageVersion identifier, this is primarily used in the Partner API WSDL and can be configured on the API WSDL download page (setup->Develop->API) before you generate ...
  • 2,872
7 votes
Accepted

How to create HttpRequest body as plain string from WSDL?

The FuseIT Wsdl2Apex tool can generate HttpRequests using the DOM classes. To do this you need to select the HTTP Request option for the required methods. Here is an example of how the generated ...
7 votes
Accepted

WSDL generated from apex can't import to SoapUI

UPDATE: There is now a known issue for this that you can track "Generate WSDL" generates a WSDL that does not contain the definition of the compound types address and location if API version is 30.0 ...
7 votes
Accepted

Enterprise WSDL: varies depending on user?

Yes, the Enterprise WSDL respects field and object-level security. This means that the user performing the export will determine which elements appear in the WSDL. You should perform the export as the ...
  • 451k
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
7 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 ...
  • 145k
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 ...
  • 7,374
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

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 ...
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 ...
  • 131k
4 votes
Accepted

Which WSDL document is required to integrate External applications

You need to obtain the WSDL from the external application. For example, for PayPal those are available here. So finding those WSDLs for the external service is the first step. Note that it is very ...
  • 131k
4 votes

How to generate enterprise WSDL files from salesforce?

Trial version accounts do not provide WSDL. You need to have developer or enterprise account to generate WSDL for your environment. If you are not able to see it in the options then it might be ...
4 votes
Accepted

WSDL: getting the SaveResult in .NET for successful and failed records

If you just want all the results in a single variable you could create a List and use the addRange method. List<SaveResult> allSavedResults = new List<SaveResult>(); allSavedResults....
  • 9,687
4 votes

Unable to Generate Apex Code from WSDL

The native version of Wsdl2Apex doesn't support {http://www.w3.org/2001/XMLSchema}anyType because WebserviceCallout.invoke can't. By having Account in the methods Arguments and return type ...
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....
  • 1,360
3 votes

How to create HttpRequest body as plain string from WSDL?

One idea / answer could be to use the JavaScript AJAX Toolkit and sniff the network traffic with Firebug. It brings up the request and response as XML text. Here is an example to get the body for ...
  • 33.9k
3 votes
Accepted

WSDL: Is there a way to get the records that have errors in .NET

create/update/delete/upsert all return a result array that is poisitionally matched against the input array, i.e. if you call update with 5 accounts, a[0] .. a[4], you get back 5 save results, the ...
  • 7,850
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

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
  • 53.4k
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 ...
  • 12.4k
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. ...
  • 131k
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 ...
  • 7,087
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
  • 10.4k
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 ...
  • 4,207

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