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

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
1answer
27 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
11 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
73 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
38 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
21 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
38 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
12 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
23 views

Weird behaviour from Apex when making a callout: Read Time out Exception

I have an integration framework whose code goes like this: First in another method we are creating the httpRequest object: HttpRequest objHttpRequest = createHttpRequest(boolUseContinuation, ...
0
votes
0answers
11 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
19 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
26 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
12 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
63 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
76 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
18 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
26 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
180 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
101 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
21 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
114 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
24 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
37 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
258 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
339 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
76 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
33 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
290 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 ...
1
vote
1answer
47 views

upload files of more than 6MB to sharepoint from VF page and get the response

I am having a VF where the user will browse the file and in the apex, I am encoding that file and uploading it to sharepoint and storing the response in salesforce. I am not storing the file/request ...
2
votes
1answer
62 views

Is there any way to get response header details in exposed SOAP webservice Apex class method?

Please enlighten me\correct me on following point: Is there any way to get response header details in exposed SOAP webservice Apex class method? Like for expamle: For visualforce page, we can ...
0
votes
2answers
67 views

Alexa Rank integration with salesforce

need to get website rank from alexa and added automatically into salesforce custom objects https://www.alexa.com/siteinfo/google.com Rank is 1 custom field Site__c = Google Rank__c == need to ...
0
votes
1answer
116 views

External server did not return any content

I am trying to call a webservice methods generated from WSDL. I am able to get the success reponse from SOAP UI. But I am getting the below error from Apex System.CalloutException: IO Exception: ...
1
vote
3answers
33 views

Testing Multiple Mocks for Different Test Methods

I am trying to get my code coverage up and I have a class where I am getting responses from an endpoint. I need to get different responses for different tests. Ex: Test Method 1 I need to simulate ...
0
votes
0answers
67 views

401 Error for NTLM authentication with SharePoint

I am using Nate Wallace's awesome library hosted at Github to connect to SharePoint from Salesforce using NTLM authentication.It seems I am missing something in my headers(I think) from my side as I ...
0
votes
1answer
155 views

Custom Login method to access custom SOAP Web services

I know that one of the way to invoke the custom web service is to first get the sessionId using the login() using Enterprise/Partner wsdl and then append that SessoinId with every call to the web ...
4
votes
2answers
472 views

Create a Time Delay in APEX without Exceeding CPU Limit

I have a APEX function (call this from another method) which make a SOAP web service callout every 2 seconds to check a status, when I get the status as 'Complete', then I call another method. I used ...
1
vote
1answer
71 views

Error while opening PDF document created through Future method

I have a webservice class 'restExample' which first performs DML operations and then calls a future method 'createDocument()'. This method will create PDF document. One important point: Running user ...
2
votes
1answer
27 views

How to save response in static resource to call that response in web service Test Class?

I'm getting the flowing error in Webservice test class. Methods defined as TestMethod do not support Web service callouts? I think in test execution we need to make a callout or I'm not sure what is ...
3
votes
1answer
464 views

Passing a List of Custom Objects to Batch Apex

I am attempting to use batch to handle a deserialized JSON response of 12,000 records to upsert objects. I currently have a class that makes the webservice callout, deserializes the response, sets ...
3
votes
2answers
192 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 ...
0
votes
1answer
26 views

Schedule Iteration of Webservice Callouts

I have an endpoint I am getting updates from, but the only arguments the end point takes is two date parameters. To keep the heap size down, I am limited to about a date range of three months. I am ...
1
vote
1answer
41 views

setFieldsToNull method not working in a custom webservice class

We have a Salesforce custom webservice; this custom webservice is consumed by an external application. This custom webervice supports an upsert on Contact object and the source application is trying ...
-3
votes
1answer
46 views

Salesforce webservice

I developed a custom web service using Soap . The web service is supposed to send 1900+ records which satisfied the conditions in integration. When tested it only sent 1400 records and remaining are ...
0
votes
0answers
12 views

wsdl2apex skipping null tags [duplicate]

I have an imported WSDL, that invokes a C# service, which does not allow empty or null (as a string) representing as null values for numeric data formats, showing an error that the service can not ...
0
votes
1answer
23 views

Currency formula field shows scientific notation of a number when generated a JSON

I am having some issues when I generate a JSON to be send via web service, the field is a currency formula field but some long numbers are showing in scientific notation, when the web service read the ...
0
votes
0answers
41 views

Webservice request and response for salesforce in C#

I have one web service reference added through wsdl in my C# project, this webservice have something like below updateStatus(data AS WEObject) AS WSResponse when going through the code I found these ...
0
votes
1answer
116 views

Insert Bulk Data Received From Web Service

I'm working on a integration project where I'm supposed to get millions of data by doing a callout to a REST API which I then need to insert in a custom object. I'm having issues understanding 2 ...