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.

2
votes
0answers
24 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
32 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
45 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
19 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
19 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
13 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
24 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
40 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
19 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
19 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
148 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
0answers
15 views

How to have multiple filers

I my trying to narrow down my query by have more than one filter, within a REST API that allows me to enter Status, Case Number and Keyword within a account. Below the code. Below the code which ...
0
votes
1answer
21 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 ...
-1
votes
0answers
20 views

Coverage for callout method class

Im trying to get the coverage for callout method class.. my testclass seems working but when I check the callout method, it only cover 63%.. for the 1st process, I want to get the "count" data from ...
-2
votes
0answers
24 views

Need help how to create test class for webservice method

How to get the coverage for webservice method? I tried to create test class just like normal class method but getting error "Methods defined as TestMethod do not support Web service callouts".. I ...
0
votes
0answers
31 views

System.CalloutException: handshake_failure

I am getting the following error when i try to call an external service using SOAP: System.CalloutException: IO Exception: Received fatal alert: handshake_failure The external system is not ...
2
votes
1answer
24 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
35 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
119 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
35 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
37 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
15 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
79 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
122 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
16 views

Sending a Mailing in Marketing Cloud from Service Cloud

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
0answers
67 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
39 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
13 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
13 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
24 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
37 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
14 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
129 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
85 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
25 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
27 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
315 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
191 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
22 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
166 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
25 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
40 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
271 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
657 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
17 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
7 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?...
1
vote
1answer
122 views

Server returned HTTP response code: 500

External third party service is occasionally getting Server returned HTTP response code: 500 when it does a POST to salesforce webservice class, but only occasionally. Most of the times it is working ...
1
vote
0answers
40 views

Is the Salesforce Lightning External Services (Beta) free

Does the External Services functionality cost extra or is it an included feature? https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/rn_forcecom_external_services.htm
0
votes
1answer
22 views

Webservice overloading workaround

according to the documentation we can't overload a webservice method. If I need a dynamic option but can only call one method what would be the best way to get this to work?
3
votes
2answers
299 views

If we change the parameters used in webservice method in our org., will this cause error at end user consuming old WSDL?

Please enlighten me\correct me on following point: When we expose our class as SOAP Web service, End User consumes Enterprise/Partner WADL Class's generated WSDL and then post request to our ...