As of May 31, 2023, we have updated our Code of Conduct.

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 ...
Daniel Ballinger's user avatar
9 votes
Accepted

How to consume a soap web service using workbench?

Here is how I have tried using workbench to test a SOAP web service. Hope this helps. First you have to get the session ID by passing a Soap request(I copied the request XML from SoapUI) to login ...
Saroj Bera's user avatar
  • 14.3k
8 votes
Accepted

sforce.connection.query is undefined

Before using sforce.connection.query, session ID should be set. Try below code, <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="/soap/ajax/33.0/...
Victor's user avatar
  • 3,581
8 votes
Accepted

Username-Password OAuth Authentication for community users?

In the profile of the user make it as API enabled. I was able to log in using api inside the community using the below soap login call., <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"...
Pranay Jaiswal's user avatar
6 votes

Capture Salesforce Outbound Message with a Java SOAP Listener

http://requestb.in will let you see the XML that an outgoing message will send. So basically you need to do the following: Add requestbin url in remote sites of your salesforce instance Get a ...
pnoytechie's user avatar
  • 1,000
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 ...
Mohith Shrivastava's user avatar
6 votes
Accepted

Understanding Server-Side JavaScript via WSProxy with the SOAP API

The CategoryID you are using is taken from Official Documentation so you need to replace it with yours. Just hover with mouse on your Data Extension folder and check status bar: you will find ...
Ros Haitovich's user avatar
5 votes

Read AccountUser's assigned to BusinessUnit in Enterprise Account

Setting an associated business unit is done like this: <CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI"> <Options/> <Objects xsi:type="AccountUser" xmlns:xsi="...
Drew Simmons's user avatar
5 votes

Exposing same apex method via SOAP and REST API?

Looks like you can expose the same apex method both via SOAP and REST API..I tried the below code and executed via SOAPUI(for SOAP protocol) and workbench(REST protocol) and it worked fine and the ...
javanoob's user avatar
  • 8,617
5 votes

Capture Salesforce Outbound Message with a Java SOAP Listener

Salesforce auto generates the XML format of the message that is sent to external system. You do not need to provide a WSDL to salesforce if you are implementing an outbound messaging. Only Endpoint ...
manjit5190's user avatar
  • 7,893
5 votes

What does SHA256 change for us?

The underlying certificate provided by Salesforce for the connection is changing. This means that you will have to check that the integration you are using can use a SHA-256 certificate. Salesforce ...
Anil's user avatar
  • 306
5 votes
Accepted

Use Named Credentials with a SOAP WSDL2APEX class

I haven't tested this, but when you are creating your Named Credential you have the option to tick "Generate Authorization Header", which should do this for you automatically:
smukov's user avatar
  • 5,453
5 votes
Accepted

Not hard code end point in Apex callout

I often use a Custom Label to make string values configurable in my code: req.setEndpoint(Label.My_Credential_Name); You can also always go to Custom Settings when you want to make parts of your ...
Adrian Larson's user avatar
  • 148k
5 votes
Accepted

value="/soap/ajax/35.0/connection.js" can anyone tell me what exactly it is in apex:includescript

Connection.js and Apex.js are part of AJAX Toolkit. The first portion of any JavaScript code that uses the AJAX Toolkit must make the toolkit available to the JavaScript code. The syntax for this is ...
Tushar Sharma's user avatar
5 votes
Accepted

What is a " dead letter queue" in the context of SOAP Outbound messaging?

TL;DR - your message cannot be delivered and the system stops trying. I don't believe you can access Salesforce's Dead Letter Queue for Outbound Messages. To understand what a Dead Letter Queue is, ...
Adrian Larson's user avatar
  • 148k
5 votes
Accepted

Generate new password and notify user immediately

By default, you cannot trigger the same email as Salesforce triggers in the scenario you mentioned. I have had a similar situation, which was resolved with coordination between IT and Business as we ...
Jayant Das's user avatar
5 votes
Accepted

How to call a web service with base85 encoded data?

Unfortunately for you, there's not much that can be done here aside from checking to see if someone else has already implemented a Base85Encode method (a cursory google reveals that nobody has done ...
Derek F's user avatar
  • 56k
5 votes

Tooling API in Apex - polymorphism, generic query() callout?

As you found, if you just use the direct QueryResult against the SOAP API and include anything in the fields beyond the ID you get the following response: SOQL: Select Id, Name from ApexClass ...
Daniel Ballinger's user avatar
5 votes
Accepted

Marketing Cloud - Custom Placeholder Values in Email

Yes, you can definitely do this, given you know all the variable names and include them in Triggered Send email and Triggered Send data extension. Here's an example of how to achieve this. variable ...
zuzannamj's user avatar
  • 14k
5 votes

Creating XML with CDATA to send to a third party

I don't think you can. < is a reserved character in XML, so if you're using it in a text node, it'll have to be replaced by its respective HtmlEntity (i.e. &lt;). As usual, including more ...
Derek F's user avatar
  • 56k
4 votes

How to intercept the SOAP Request/Response Made from Salesforce or received in Salesforce?

The Salesforce solution: Create an endpoint at https://beeceptor.com/ and leave this browser tab open. Add https://beeceptor.com/ as a new remote site in your org at Settings | Security Controls | ...
Pablo Fébolo's user avatar
4 votes
Accepted

How can you retrieve number of records in a Data Extension using SOAP API?

You can retrieve rows count using an undocumented REST endpoint: GET https://YOUR-HOST.rest.marketingcloudapis.com/data/v1/customobjectdata/key/<DE-KEY>/rowset?$page=1&$pagesize=1 { "...
Denys Kurochkin's user avatar
4 votes

Data Extension API decimal type definition

I do not know if someone else encountered this issue but I solved it by addind the property 'Scale' in the props property of the DataExtension object. Example in php (should be the same for the others ...
M. Chris's user avatar
  • 140
4 votes

How To use Exacttarget API to validate mobile numbers

there isn't a method in the Fuel API to validate mobile numbers like there is for validating email addresses. However, there are a couple of solutions here. You can use a script to validate if the ...
Eliot Harper's user avatar
  • 16.2k
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 ...
Daniel Ballinger's user avatar
4 votes

Make RPC/Encoded callouts from Apex

One option would be to craft the raw HttpRequest yourself and then parse the response. A tool like SoapUI would be really useful here. You could use it to generate sample requests and responses. Then ...
Daniel Ballinger's user avatar
4 votes
Accepted

SOAP updateMeta operation for CustomSite

Ack, added the urlPathPrefix tag to the request and found the problem: The metadata definition must contain all fields applicable to the type, eg: <metadata xsi:type="CustomSite"> &...
Matt and Neil's user avatar
4 votes
Accepted

SOAP Based Integration Workbook

You may have gotten confused because most resources that describe SOAP-based integration usually refer to using "callouts", "web services", or something dealing with "WSDL", but rarely just "SOAP." ...
sfdcfox's user avatar
  • 468k
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 ...
Mohith Shrivastava's user avatar
4 votes
Accepted

Call out to an external SOAP Webservice

Salesforce provides a WSDL (Web Service Description Language) files. They are called "Enterprise WSDL" and "Partner WSDL". A WSDL is an XML-document which contains a standardized description on how to ...
Ratan Paul's user avatar
  • 22.3k

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