Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
9 views

STATUS_CODE returned for the response: 403 STATUS_MESSAGE returned for the response: Forbidden

Can someone please guide me how to resolve the access forbidden 403 status code error ? What can i do to at least hit the end point? I am executing the code anonymously in developer console string ...
0
votes
0answers
12 views

Post Web Service [on hold]

I am a beginner and I need to create a Post web serice which, when creating a Case in saleforce, the webservice allows the creation of the same Case in another environment (some fields will be saved ...
0
votes
1answer
36 views

You have uncommitted work pending with the DML

public with sharing class CalloutWebservice { public Account headAccount; private Boolean ApiEnabled; private List<Account> accountList; public CalloutWebservice(ApexPages....
0
votes
1answer
33 views

Batch Apex - Static List not available in finish method

The issue I am facing is that I have a global static list declared in the batchClass. This list is populated after the values are obtained from a third party webservice. I am not able to ...
1
vote
1answer
28 views

SOAP WSDL Error

I have the below apex class as a SOAP Webservice global class TestingWebService { webservice static List<ContentDocument> getContentNotes(date startDate, date endDate) { ...
0
votes
2answers
48 views

WebService Post Rest API is Receiving as GET

I wrote a web service using @RestResource With both Get and Post methods. When I try to send a request via workbench - everything works great, but when I try to send a post request using other ...
0
votes
1answer
43 views

Enabling State and Country/Territory Picklists

Currently we are using text field to store state and country. Now we want to enable State and Country/Territory Picklists to maintain data quality in salesforce. If I enable the picklist, what all ...
2
votes
1answer
54 views

Enterprise Patterns for Consuming non-trivial REST services in Apex [closed]

Communication from Apex with huge REST Apis feels cumbersome to me as there is so much repetitive work involved with building Apex Objects that function as callout request params or responses. This ...
2
votes
0answers
32 views

Is it possible to download archived contentversion or contentDocument

I am having a hard time downloading a contentversion/contentdocument where contentdocument is already archived. I am trying to download the file by hitting rest endpoint services/data/v44.0/...
2
votes
1answer
43 views

Wsdl to apex class issue with soap1.2

I was using FindRegistrationService service to generate apex class from FuseIT SFDC Explorer Wsdl2Apex parser. It is giving me below errors. Is it due to SOAP 1.2 services? Is there any way to ...
5
votes
1answer
134 views

Custom Webservice class design

My client wants to send Account and Contact information from external system. For that reason, I have created one custom webservice class which can take any kind of data and based on the structure of ...
0
votes
0answers
38 views

Call a field inside a class dynamically

I have a JSON that I get as a webservice and deserialize it into classes. The classes are : public class DataStructure{ public String Name; public String Code; public String ...
0
votes
1answer
43 views

How to Retrieve large data from Salesforce using Rest API?

I have one new requirement where My client wants to retrieve large data set (~80K records) from Salesforce daily. I have created rest web service but it returns only 2k records. for 80k records, do ...
0
votes
1answer
50 views

External Database to Salesforce Integration Steps

I am working on an Integration project. The communication is between an external database and Salesforce. The Goal is - To Send a request from Salesforce to the external Database -Get the response ...
0
votes
0answers
28 views

How to separate information coming from one API request

We have multiple objects in Salesforce. I have a use case, where user will try make an API request to create a lead in Salesforce. However, the fields/data that comes in API request has information ...
1
vote
1answer
49 views

Why I am not able to get token for sandbox?

I'm trying to get an access token for sandbox mode. My post request: { "clientId": "xxxxxxxxxx", "clientSecret": "xxxxxxx" } I'm sending the request to https://auth-test.exacttargetapis.com/v1/...
0
votes
1answer
17 views

ASP.net calling Salesforce webservice to upload attachment

i have a website created using ASP.net and i would like to allow people to upload files from the website and i want those files is then store in Salesforce. I am not good in webservice but i think ...
0
votes
1answer
60 views

Authentication Token with apex

I want generate a token, give this token to third-party application, and this app can authentificate into salesforce and call the web service. I want to create an authentication token, call a third ...
1
vote
1answer
81 views

Understanding authentication for Apex SOAP web service

I have read this post: How authentication works in APEX and since the SF documentation is a bit confusing for me at this point I would like to ask: Is it possible to get the session id with a ...
0
votes
1answer
20 views

Connect SFDC with Other App, and this App with SFDC

I need send information to other aplication, and this application will send me the result. In my case, we have a community with opportunitys. When the Opp is closed, user can click on a button that it ...
0
votes
0answers
32 views

Call Apex Web Service from Cloud Page (AMPScript/SSJS)

I’ve requirement to call Sales Cloud Apex web Service from a Cloud Page. I reviewed HTTPget but it only support public webservices that doesn’t require authentication. I then researched about SOAP API ...
1
vote
0answers
41 views

System.IndexOutOfRangeException on OutBound Message Listener [closed]

I have a webservice in ASMX and I am trying to create a Listener and here is what I have in the webservice.cs file using System; using System.Collections.Generic; using System.Linq; using System....
0
votes
0answers
29 views

INotificationBinding Could not be found

I am following this Example to get started with the notification listner and I did exactly everything as the documentation said and I have the DLL file in the Bin folder which was created from WSDL ...
0
votes
1answer
48 views

Building a Listener in c# asp.net [closed]

I am new to Sales Force and I am building a Listener that generally listens to outbound messages from salesforce. 1st. I don't have a staging server or testing server to test this when sending ...
0
votes
0answers
44 views

two web service call outs from flow

I need to make two web service call outs. The return of the first call is input to the second call. In my flow, I have two Apex Action elements each using its own class with @InvocableMethod ...
0
votes
0answers
34 views

Calling Salesforce Rest Webservice url from vf controller

Hi I am trying to make a rest callout from controller and I am not been able to get response . I am using apex continution callout pattern for this to make call async. This is controller class ...
0
votes
2answers
27 views

Import data from local machine to custom object

I have a requirement to import data from local machine(user placed .csv files in a common location) to the custom object with out user interference on hourly basis.could you please give suggestions to ...
0
votes
0answers
28 views

How to retrieve files from an external server

I'm not at all that familiar with web service, but we do have this requirement in which, once a month, we need to retrieve some pdf files from a folder in an external server, and then attach them to ...
0
votes
1answer
50 views

“Element invalid at this location” error in call to Apex web service

I am getting SessionID invalid after taking session id from visualforce page using {!$Api.Session_ID} I am getting the below response from workbench Element {https://soap.sforce.com/schemas/class/...
0
votes
1answer
67 views

XML-RPC support in Apex

We have an existing external system whose API documentation mention that the client system should support XML-RPC specification. To consume the services on this external system, can we directly do a ...
3
votes
1answer
111 views

Uncommitted Work Pending - Working around DML then WebService

I am working with Salesforce Connect and I am storing my token and expiration times in an encrypted custom setting. My connection is through the client credentials Oauth 2 flow. When a user queries ...
1
vote
1answer
25 views

How to callout second time if first request gets timed out

I have been asked this question and I am looking for possible approaches for such scenario. If I make an callout to an external service and if don't receive any response and gets timed out and then ...
4
votes
1answer
757 views

REST API vs SOAP API?

One of the differences between REST and SOAP is that REST is lighter than SOAP. What does it mean when they say REST APIs are lighter than SOAP APIs? How is JSON lighter than XML?
2
votes
0answers
44 views

Apex SOAP WebService - how to suppress/alter accepted header

I am working with a 3rd party on SOAP integration, and they send a detailed async fault response to any POST done by us. The data they send is rigid and they say they cannot (or won't) change it. I ...
0
votes
1answer
52 views

Search Value inside a picklist before inserting

I have objects that I need to fill from a web service that I get from some source. I wondering, If I want to check if a picklist value that transferred from this webservice is a valid value in the ...
3
votes
0answers
91 views

Synchronous concurrent transactions limit

I know that the following limits exist in salesforce: Number of synchronous concurrent transactions for long-running transactions that last longer than 5 seconds for each org : Limit 10 Concurrent ...
1
vote
1answer
31 views

Can't convert WSDL into Apex Class

I'm trying to convert an Apex from a WSDL file, but I'm struggling with it. Since I'm not an experienced developer, the solution may be very simple and I hope anyone can help me. When I try to ...
2
votes
1answer
26 views

Can I use the oAuth access_token to get the final segment in the web service URL?

Kind of a weird question but I'm trying to get the web service URL. My SforceService() object in C# has the first part of the URL but the final segment of it I still need to get. I know I can query ...
0
votes
1answer
108 views

Salesforce Connect - Associated table in the external data source can't be found

New to Salesforce Connect, but not necessarily new to parsing JSON responses and utilizing webservices. I am attempting a test connection to https://jsonplaceholder.typicode.com/comments with ...
0
votes
0answers
33 views

Different SessionId [duplicate]

Is there a difference between {!$Api.Session_ID} on visualforce vs UserInfo.getsessionID() in Apex. I tried to print these 2 values on Visualforce page and see that both values are different. One ...
0
votes
1answer
46 views

Is it possible to get XML version of Standard Object

We have an Informatica job which runs every night that extracts Salesforce data and loads into MDM. We recently changed an Opportunity field name and my colleague need to synchronize the change with ...
1
vote
1answer
39 views

Optional webService parameter in apex

I have a apex webservice with "data structure" made of webService attributes. In request data, i have: global class GetRequestData{ webService Date From; webService Date To; webService ...
0
votes
0answers
23 views

How to use the Site class outside of the context of 'Lightning Platform sites'

I am currently creating a webservice to integrate an external website to our salesforce instance. This webservice should create a new portal account user and return the id back to the calling code. I'...
8
votes
2answers
355 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....
0
votes
1answer
24 views

Is data stored in an external object in Salesforce?

I am currently consuming a service from Mulesoft into Salesforce. The requirement is that the data coming will not be stored anywhere in Salesforce. I would like to know whether an external object in ...
2
votes
1answer
176 views

INVALID_SESSION_ID when calling Salesforce services from Java

We have a Java application running on glassfish that makes callouts to WebServices hosted on our SF sandbox using the Partner WSDL and the SF Web Service Connector (wsc). Yesterday it was working ...
-1
votes
2answers
43 views

Web Service question [closed]

I am new to Web Services and we are starting to approach the idea of integrating with a WS from another of our systems. Ideally, we would have a two-way real-time integration which would allow for ...
8
votes
2answers
241 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 ...
1
vote
1answer
41 views

How to call a web service with base85 encoded data?

I need to make a call to a 3rd party SOAP web service from Apex that accepts images encoded in base85 rather than the more standard base64. I don't see that this is supported in Salesforce, any ideas ...
2
votes
1answer
83 views

When using WSDL2Apex, CDATA tags in WebserviceCallout are encoded

I need to implement a SOAP Request as WebServiceCallout which includes CDATA tags in its request envelope. The marshaller class has been auto-generated and the request is working just fine except that ...