Skip to main content

Questions tagged [webservices]

Webservices are the methods of communication between software systems and connected devices over Internet infrastructure. They come in a number of very different technical varieties, such as SOAP and REST, but all are considered Webservices.

Filter by
Sorted by
Tagged with
38 votes
4 answers
42k views

HTTP Callout from Triggers

I have a trigger on the Custom Object that calls a class. That class makes an HTTP GET request to a Web Service. However I get the following error: Callout from triggers are currently not supported. ...
Axaykumar Varu's user avatar
36 votes
4 answers
8k views

Namespace Prefix in JavaScript and Apex within Installed Package

When you have a dedicated Visualforce Page and can use modern JavaScript Remoting techniques, this is seldom an issue. But I'm looking at some historical code in a managed package like this: {!...
Matt and Neil's user avatar
31 votes
4 answers
114k views

Method defined as testMethod do not support web service callouts, test skipped

I have been struggling with this error for a few days now. I get this error every time I try to run a test for a method that has an httpCallout. I followed the architecture from http://www.salesforce....
Mr. Ant's user avatar
  • 559
29 votes
5 answers
19k views

Workaround for the 10 web service callout limit in apex?

What are the workarounds for the 10 web service callout limit in apex. If you need to make, say 50 callouts, how do you batch them so that you can execute them all asynchronously? Is there a good ...
paul's user avatar
  • 1,019
26 votes
5 answers
10k views

Callout loop not allowed error

I have an APEX REST POST method that is being called from an external system 'A'. Processing this POST I need to callout to another external system 'B' and based on its response continue with my ...
Prafulla Patil's user avatar
23 votes
3 answers
4k views

Mocking a webservice CalloutException for a SOAP Fault

I have a mock class for a web service that implements WebServiceMock. With some requests the actual web service being mocked will return a SOAP Fault that results in a System.CalloutException in Apex....
Daniel Ballinger's user avatar
20 votes
3 answers
4k views

Rest Routing with Multiple Wildcards / Supporting REST Routing for Nested Resources

Question Running into a SalesForce REST mapping issue involving multiple wildcards in an url. Is this not supported? Is there anyway to supporting routing for nested resources? My Setup I have this ...
David Staley's user avatar
17 votes
1 answer
10k views

HttpCalloutMock Interface where there is more than 1 callout

Here is some background- I have an apex future method which is being called from an trigger. The future method then performs 3 different http calls to an external system (same endpoints). All requests ...
Sai's user avatar
  • 1,246
15 votes
2 answers
4k views

Metadata API error while reading Picklist: Web service callout failed: Unable to find apex schema info

I am trying to read a custom dependent picklist field and update it's field-dependencies. I have followed the common resources found online and getting the below error: FATAL_ERROR System....
Santanu Halder's user avatar
14 votes
2 answers
13k views

Call webservice with NTLM authentication

Is it possible calling a Webservice using NTLM authentication from apex? It is a Microsoft Navision Webservice, I tried to do it in Java following this guide and it works.
Giovanni Oregioni's user avatar
14 votes
1 answer
508 views

How does Salesforce behave during scheduled outages?

If you have a scheduled outage with Salesforce in which Salesforce is 'Completely unavailable' what error message does a client of the APIs see when someone tries to call it? Is it a login failure? ...
Steven Herod's user avatar
  • 3,523
13 votes
2 answers
29k views

@future method: Unsupported parameter type

I am trying to copy records from one org to other via web services. I am calling a class which has logic written into a trigger. But @ future method is not taking sObject list as a parameter. Can ...
pluto's user avatar
  • 143
13 votes
2 answers
30k views

How to send and receive data from Salesforce to a FTP server

My question is how I can intergrate Salesforce with different FTP servers in real time. I have read some articles about it, but to be absolutely sure I thought it would be a good idea to post a ...
ttveten's user avatar
  • 133
13 votes
1 answer
7k views

Use cases for Enterprise WSDL vs Partner WSDL

I am trying to understand more deeply that why can't we do all the integration using Partner WSDL , why does salesforce even have a Enterprise WSDL when partner wsdl can provide the same functionality....
SfdcBat's user avatar
  • 4,811
12 votes
5 answers
3k views

Download Invoice PDF's On List View without saving to Notes and Attachment as a zip file

Scenario: Am having Invoice__c Object. On the list view I have download button to download the selected invoices PDF's. What my below code is doing is it is after fetching the selected records id's of ...
mohammed azarudeen's user avatar
12 votes
2 answers
9k views

Dynamically set remote site Setting in Apex

I have created a managed package that uses tooling API for updating class, trigger etc. Everything runs fine with all sorts of testing. I have created this package in my Developer org. I had to set ...
Soberano's user avatar
  • 1,232
12 votes
1 answer
2k views

Error - System.CalloutException: Received fatal alert: bad_record_mac

An existing integration from Salesforce to Oracle stopped working this morning. When I send an http request from Salesforce to an Oracle webservice, I get a message "System.CalloutException: Received ...
user8008's user avatar
  • 121
11 votes
3 answers
19k views

Problem with Process Builder Invocable Method and Webservice Call out

I am trying to execute a web service call to our backend system when the opportunity is closed/won. I am attempting to do a POST to our endpoint. All the api call is really carrying the account name ...
Vik's user avatar
  • 183
11 votes
1 answer
5k views

How do I Call the Salesforce API from a Lightning Component?

I have a requirement to make a call to the Apex Wrapper Metadata API from a Lightning component. The issue I am facing is that there is currently no native support for acquiring a valid API session ID ...
Daniel Fuller's user avatar
11 votes
1 answer
3k views

Converting between .NET decimal and SFDC decimal

We have a .NET app that interfaces with SFDC via a web service. When we import the WSDL the resulting classes will use the .NET type double wherever SFDC entities use a double. The problem I see here ...
Paul Sasik's user avatar
  • 1,119
11 votes
2 answers
2k views

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

I am working on Salesforce project heavily depending on use of Tooling API (we are executing tests on remote SF organizations and gathering results). What bothers me is I cannot use polymporphism ...
Wookie88's user avatar
  • 723
10 votes
2 answers
12k views

Queueable - Callout not allowed from this future method

I am using a queueable class to handle various date ranges that are then sent to a web service. Upon calling the queueable class I am receiving the following error: Callout not allowed from this ...
S.B.'s user avatar
  • 2,091
10 votes
2 answers
1k views

Reliable SOAP webservice callout

Problem I have to build a reliable integration. This means that external callouts should be delivered even if the remote SOAP webservice is down. (when the ws is online) The idea is to keep the ...
Martin Borthiry's user avatar
10 votes
1 answer
3k views

Spontaneous Internal Salesforce.com Error - What do I do?

I have a piece of code that has been working for the past few months without problem until recently. I cannot say to the exact day this started happening as this is still in a testing phase and this ...
Chris's user avatar
  • 1,675
9 votes
1 answer
9k views

Test class Rest Webservice parameters

I´m having problems with url parameters (req.requestURI) in my test class. This is my code. REST CLASS: @RestResource(urlMapping='/Accounts/*') global class StoreController { @HttpGet ...
Enry's user avatar
  • 3,726
9 votes
1 answer
4k views

Creating a class by consuming a WSDL document Schema:attribute

I have a problem with salesforce functionality. I've created flat WSDL file but when I am trying to create class in salesforce I still get this error: Error: Failed to parse wsdl: Unsupported ...
Artur Kępczyński's user avatar
9 votes
4 answers
4k views

Workarounds for Sites page to update standard object?

I have a client who wants external users to submit data via a Sites VF page and update Opportunity records. Of course the Sites profile doesn't have permissions to update standard objects. Also, the ...
David Cheng's user avatar
  • 7,091
9 votes
1 answer
2k views

Simulate timeout for a callout?

Alright, I have a HTTP callout that every once in a while would timeout, even with the max timeout set. So to combat this, I have a try, catch, try, catch block to make the call out a second time if ...
Nic McBride's user avatar
9 votes
2 answers
1k views

Getting record count through WebService bypassing LIMITS

I have written the below web service class to return record count. But it is returning the following message "System.LimitException: Too many query rows: 50001". How could I overcome this limit? @...
SSK's user avatar
  • 361
9 votes
1 answer
4k views

Authenticate 3rd party Application with OAuth2

The PHP getting started guide for interacting with Force.com seems to indicate that a user always needs to reauthenticate for each session with OAuth2, and that's my understanding of the protocol as ...
jordan.baucke's user avatar
9 votes
1 answer
9k views

Basic Http Authentication

I am writing a web service for which sends a SOAP payload as its body. In order to access the 3rd party server, I need an authenticated user. I am using Basic Http authentication for that purpose. ...
Yash Mehta's user avatar
  • 1,515
9 votes
1 answer
239 views

AppExchange Code Review

I have created a managed package which i have submitted for code review after it passed the review through checkmarx code reviewer with no vulnerabilities. I have been using Tooling API in my managed ...
Soberano's user avatar
  • 1,232
8 votes
6 answers
8k views

Can you call a webservice from a Platform Event Trigger?

For webservice callouts, I assume the same rules apply, but I just wanted to double check. I haven't found any information about Platform Events and Webservices. I assume I would just make it a @...
Olivia's user avatar
  • 3,471
8 votes
2 answers
7k views

What is the best approach to call a webservice from SFDC?

Objective: When an Account is created in Salesforce I need to call a SAP webservice and create a customer in SAP. What would be best approach? To call the SAP webservice from the Account trigger ...
Bforce's user avatar
  • 6,828
8 votes
2 answers
4k views

Publish and/or subscribe to Platform Events between separate Orgs?

Does anyone have experience using Platform Events between separate orgs? I'm having trouble finding documentation or mention that something like this is possible. Basically I'd like to define a set of ...
zWhiteD's user avatar
  • 111
8 votes
2 answers
2k views

Salesforce call Heroku Web Service

We have a salesforce application, and the application triggers a callout to a heroku service that gathers some data from a third party database. After gathering and processing the data from the third ...
bluecat's user avatar
  • 674
8 votes
1 answer
4k views

how to receive multipart/form-data requests

Im trying to set up an event driven framework, which needs a public salesforce endpoint to recieve webhook posts from a 3rd party service (mailgun). I have put together a custom rest endpoint that ...
CloudHugger's user avatar
  • 1,779
8 votes
2 answers
11k views

web service callout failed error

I'm having an issue with the Address Verification method available through StrikeIron. I imported the following WSDL and am using the generated wsdl2apex code. The WSDL I'm using is here: http://...
Phil B's user avatar
  • 5,026
8 votes
2 answers
4k views

Using OAuth 1.0 encoded requests for external webservice calls

I have a business requirement that necessitates a callout from Apex to an external .NET based web service that receives signed OAuth responses. There is no built-in support for this in Apex, but ...
akarnid's user avatar
  • 1,842
7 votes
4 answers
9k views

restful call to external analytics API via visualforce/apex

So I'm trying to access Woopra analytic's restful API via apex/visualforce. I am wondering a couple of things: 1) The API returns a JSON object via the usual POST/GET method... would it be best to ...
gfppaste's user avatar
  • 845
7 votes
2 answers
2k views

Salesforce API vs. APEX webservice performance

We currently have a .NET application that retrieves/updates data in Salesforce using the API. We are encountering long processing time where the session can time out as well as a bad user experience. ...
Dman100's user avatar
  • 2,445
7 votes
3 answers
19k views

Accessing Named Credentials' data in apex

Is there a way of accessing the data (exact fields) stored in Spring 15' Named Credentials from apex? For example the username, password and endpoint link fields? And I don't mean for the callout, but ...
JaKu's user avatar
  • 357
7 votes
2 answers
3k views

Salesforce Wsdl not valid any more

I tried today to generate a proxy with the entreprise.wsdl file (also tried with partner.wsdl) and noticed that the file was 'not valid'. When generating the proxy, everything seems to be okay, but ...
nicolas's user avatar
  • 287
7 votes
1 answer
3k views

How frequently does Salesforce refresh DNS information?

I have a managed package deployed that is calling web services supplied by another party. On Tuesday last week all calls to this web service started throwing a: System.CalloutException: IO ...
Daniel Ballinger's user avatar
7 votes
1 answer
4k views

You have uncommitted work pending. Please commit or rollback before calling out

I have written a callout class as below.But when a account is created/updated am getting the exception like "You have uncommitted work pending. Please commit or rollback before calling out" at 36 line(...
user8376's user avatar
  • 101
7 votes
3 answers
4k views

How to access SQL, Oracle and Access databases from within Salesforce?

A lot my clients use different databases for different applications e.g. Sage Line 50, QuickBooks, Legacy database apps, etc. I have developed several utility apps that synchronizes data from those ...
Mustafa Turab Ali's user avatar
7 votes
1 answer
1k views

Updating Profile - using metadata

I needed to first create some Record Types for some custom objects using Metadata. After doing those, I was to upsert the records on those custom objects using the RecordTypeId. I noticed one thing ...
sanchit's user avatar
  • 918
7 votes
3 answers
10k views

while consuming webservices in salesforce getting exception

while consuming webservices in salesforce getting exception " System.CalloutException: Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/...
Ganesh.Raut's user avatar
7 votes
1 answer
4k views

Use Named Credentials with a SOAP WSDL2APEX class

SF allowed the usage of Named Credentials with SOAP callouts but the documentation doesn't really go into details of how to pass/access the Username and Password to the stub.inputHttpHeaders_x . I ...
HSG's user avatar
  • 997
7 votes
1 answer
12k views

What is the difference between webservice and HTTP service?

What is the difference between webservice and HTTP service? I have used HTTP service with REST api. But not able to understand what do we use webservice keyword and what is the difference between ...
Anu's user avatar
  • 3,857

1
2 3 4 5
17