Stack Exchange Network

Stack Exchange network consists of 174 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
28 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
23 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
21 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
12 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
29 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
29 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
58 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 ...
0
votes
1answer
23 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
627 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
36 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
39 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
71 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
22 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
22 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
52 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
25 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
42 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
26 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
20 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'...
7
votes
1answer
189 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
23 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
53 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
39 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
132 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
36 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
53 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 ...
0
votes
0answers
20 views

Digest Auth with AMPscript or SSJS

I currently try to retrieve some data from a webservice via AMPscript. I've already done that on other projects through the following AMPscrpt, which works perfectly. SET @webservice = HTTPPost2("www....
2
votes
3answers
88 views

Test for Apex class that creates a custom field

I have an apex class that creates a custom field on an sObject via an HttpRequest and I'm not sure how to write a test for this because one of the things I need to test is that the field has the ...
0
votes
1answer
262 views

Unexpected character ('a' (code 97)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location [1,2]

I have a batch class which makes a call out to an api within the same org (the rest resource was developed by a 3rd party supplier and I cannot see its source code) Anyway, as per the supplier the ...
0
votes
0answers
124 views

AMQP protocol from Apex - RabbitMQ

I am trying to connect and send data to RAbbit MQ messaging protocol. At all places it is provided that we should use AMQP protocol and this is something I am not sure how to do from Apex. Has anyone ...
0
votes
1answer
41 views

Web Service call to Service Cloude [closed]

I have a trigger that is ultimately going to send a mailing in Marketing Cloud when triggered from Service Cloud. This request will need to be two requests, one to get an auth token and a second using ...
0
votes
1answer
20 views

Is there any dummy Bank data available online which I can use to bank a simple bank application in salesforce

I want to integrate a bank with my salesforce. Is there any online dummy bank whose data I can use to integrate it with my salesforce. My Requirements :- I have a bank whose web services are ...
0
votes
0answers
15 views

How should i query Manager or EmployeeNumber using SCIM in POSTMAN

I am querying SF using a get against the SCIM service but when i add any attribute that is part of the extended enterprise schema it fails with an unsupported attribute error ex: hosturl.my....
0
votes
0answers
31 views

Search and view data from external database

I have a business requirement to create a way for users to search and view results from an external database (Snowflake) in Salesforce. I have created a simple visualforce page and need to send a ...
0
votes
1answer
57 views

What's wrong with my code for SFTP connection?

I have tried the following code, but whenever I try to run it, I get redirected to 404 Not Found error page: var host = "host.name", port = port_number, username = user_name, ...
0
votes
1answer
19 views

how to get responce from url webservice

I have made a webservice to match a phone number and want to return the id of the record. When I test this in workbench this works and have a match. I have a public site with a public class where I ...
0
votes
0answers
156 views

Grant_type unsupported Request for Webservice connection

I hope you are all doing well! I currently try to develop a Listener on Carriotds which call a private webservice on Salesforce. I use Basichttp request (which is in intern function of Carriots) and ...
1
vote
2answers
113 views

Does an update called in an @future method count as being in the same transaction as the method that called it?

I am on occasion seeing a "You have uncommitted work pending. Please commit or rollback before calling out" error during a sequence of callouts that are part of the same transaction. So basically the ...
1
vote
0answers
28 views

Pushing a git repository to a Sandbox via a PostCopy script

I am currently trying to automate the whole process for working with Sandboxes in my company. As of now, we have a CLI tool which both refreshes the sandboxes and executes an Apex anonymous script to ...
0
votes
0answers
30 views

How to consume OAuth 1.0 webservice in salesforce

I have another application which I need to call and they are using OAuth 1.0. now I am calling their system endpoint, I have client id and client secret only. Do I need to generate token also? ...
0
votes
0answers
453 views

Web service callout failed: WebService returned a SOAP Fault: Server was unable to read request

I have consumed a wsdl in Salesforce.Below is the class which needs to be send as a request public class MEContacts_Request { public Long Contact_Type_Association; public String ...
0
votes
1answer
267 views

How to use JSON class as a inner class instead of seprate class

Main Class: @RestResource(urlMapping='/cases/*') global with sharing class InsertCaseHelper { global static string responsePayLoad; @HTTPPOST global static void insertCase(){ ...
0
votes
1answer
23 views

Incorrect signature on Rest api unittest

I have made a (POST) webservice. I am trying to write a unittest but keep getting the error incorrect signature: void createInvoice() from the type InvoiceManager before I can save my class, what am i ...
0
votes
1answer
226 views

Illegal assignment from void to String

I am trying to save my test class for a Rest a webservice (GET) but get the error Illegal assignment from void to String on line 16. If I change the void to string I get a missing return statement ...
-1
votes
1answer
26 views

How to create an external databate to test rest API classes

I have been doing some trailheads for REST api's I managed to create a callout class with a mock response based on a static resource, whitch gives me 100% coverage. I would like to see my Callout in ...
0
votes
1answer
41 views

WSDL class error

Good morning, I have a wsdl that I generated with salesforce, but when I call some methods I get this error: EXCEPTION_THROWN [157]|System.CalloutException: Web service callout failed: Unable to ...
7
votes
1answer
285 views

Pass null to webservice number field?

What does properly formed XML look like when attempting to pass in a null value for a number field? Let's say I have a SOAP endpoint defined as follows: webservice static void save(MyObject__c ...
-1
votes
2answers
1k views

How to get access_token without UserName and Password?

I have written this Apex code to get access token: private static OAuth getAccessToken(){ try{ HttpRequest req = new HttpRequest(); req.setEndpoint(ENP_POINT_URL); req....
0
votes
0answers
19 views

JavaScript Remoting Needs to be Called Multiple times before a return comes through

I am trying to better understand why some things are not working as I assumed they would. This specific example is a javascript remoting situation. I have a VFP that has a button that onClick calls ...
0
votes
0answers
8 views

Receiving a 'Unable to Tunnel Through Exception', even though there is no concept of White Listing at the Client's End

I am making a web-service API callout, but receiving a Unable to Tunnel through exception even though there is no concept of whitelisting at the Client's end. What would be the cause of the issue then?...