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.

learn more… | top users | synonyms

1
vote
2answers
31 views

how to serialize JSON and send it through Trigger every time edited and inserted?

I am just curious to know how to send JSON data with post method using @future call-outs to external system with a trigger (for after insert and update) , any one can help me to show some example on ...
1
vote
1answer
34 views

salesforce to salesforce using partner wsdl in Apex - query call failing

I am trying to connect to other salesforce org. I have partner wsdl. I have used FuseIT SFDC explorer to create Apex class from this partner wsdl. I am successfully able to login to other SF org using ...
3
votes
1answer
64 views

Continuation Error “Apex class 'ApexPage.ContinuationController' does not exist”

I am trying to use Continuation for the first time and am hitting a strange error. Below is a simple page I created with both a Synchronous Callout and a Continuation Callout button. When, in my ...
3
votes
1answer
36 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 ...
1
vote
0answers
16 views

X-Content-Type-Options Header Missing

Web Browser XSS Protection is not enabled, or is disabled by the configuration of the 'X-XSS-Protection' HTTP response header on the web server
3
votes
0answers
37 views

From Salesforce how to invoke ext webservice using SAML assertion?

We have salesforce connected to SAML SSO(OKTA) and OKTA is IDP for salesforce. We have a Java legacy system which provides a Web service and it is also part of SSO. Legacy application expects SAML ...
1
vote
0answers
57 views

Call external REST web service using Javascript

I have a custom object AccountNotes__c and a curstom field URL. When I save a new Note I have to check for the valid URL by calling external REST webservice and once it is valid data, the record has ...
1
vote
0answers
124 views

You are not authorized to access this API

You are not authorized to access this API Error 403 PUT I am getting this response when i am updating non admin users signature in gmail using email settings api. The following code is working ...
2
votes
1answer
26 views

Retrieving events from web services API

I am trying to call the Web Services API to retrieve events using the code examples on the following pages: ...
0
votes
1answer
39 views

Apex Callouts retrieve audio content

I am making a callout to a 3rd party to retrieve an mp3 file The endpoint is a HTTP GET (https://api.ubity.com/recording?key=HV5nPTLk98UPeTLxqwA8&callid=ABC12345) The response is the actual MP3 ...
-2
votes
0answers
31 views

500 Error Internal Error

At our call center the reps are getting the error "error 500 internal server error web service call, Requested resource Not Available. Status is Internal' Server Error Status Code 500" when trying to ...
3
votes
1answer
37 views

Javascript Remoting vs Consuming Web Service

I am accessing a service side function through a javascript button on a visualforce page and I wanted to know; what is a better solution - Javascript Remoting or the AJAX toolkit (consuming a web ...
1
vote
2answers
22 views

WebService SOAP Request Log

Is there a way to log the incoming SOAP request before concerned apex call is called. I mean what is responsible for converting SOAP request into call to apex class? Also for call out to SOAP web ...
1
vote
1answer
19 views

Webservice keyword

While exposing apex class as SOAP web service, we declare the class as global and include a method with keyword Webservice and static. However in few scenarios I have seen few instance variable as are ...
1
vote
1answer
29 views

Unable to lock record from Apex web service method

I have a class that's used to prioritize leads in a lead queue based on rules that our business users can create and manage. One method in particular is used to find the first record in the ...
0
votes
0answers
9 views

Service invokation error handling logging [duplicate]

I am calling many external SOAP based web services from controller. Is there a best practice framework / pattern / app using which i can achieve exception handling and logging while calling external ...
1
vote
0answers
16 views

Service invokation pattern [closed]

I often need to call many external SOAP based services from controller. Is there a best practice framework / design pattern we can follow to manage code better.
1
vote
1answer
57 views

Salesforce webservice API Input parameter limit

I have requirement to expose Apex Class method as SOAP type webservice API which has more than 50 fields (input parameters) but when I try to save my code its giving me compilation error saying ...
0
votes
1answer
19 views

Unable to Save email in the Activity History

I have a custom button to send an email. The code is working fine. Now I would like to insert those email in the activity history. I did set mail.setSaveAsActivity(true). But when I click the ...
0
votes
1answer
30 views

How to post some inbound message to salesforce with username and password?

I want to post some inbound request to salesforce by using salesforce credentials. Can anyone suggest me the best and secure way to make this communication happen between external system and ...
1
vote
1answer
19 views

Schema error while trying to upload a WSDL

I'm trying to upload the following wsdl to generate apex classes.But i'm getting a schema error Do I need to make any changes on the xsd? Error: Failed to parse wsdl: Found schema import from ...
1
vote
1answer
64 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 ...
0
votes
1answer
35 views

Trouble executing Salesforce web service!

I have written a web service in Salesforce, that when executed by a 3rd party, would create a Task in Salesforce. When I am trying to execute it using Apigee (https://snap.apigee.com/1ShlySU), I am ...
0
votes
1answer
23 views

Data Requirements for Security Review to test Web Services in a package

I have a package that I am trying to get through security review. The package is really an API layer that other packages rely on, so it doesn't have a UI you can submit calls through - just global ...
0
votes
0answers
35 views

REST Web Service

I am trying to create a rest based web service to get a list of account. @RestResource(urlMapping='/v1/wsAccounts/*') global class wsAccounts_V1 { @HttpGet global static List<Account> ...
1
vote
2answers
59 views

Setting up a connection to an external web service

I haven't worked with web services and was hoping someone could provide some guidance. I have read the API documentation for this external web service API and I need some help understanding how I can ...
2
votes
4answers
150 views

How to insert a record and then do callout? [duplicate]

I have a visualforce page where i get a serial number and making callout to get the related information from external system on click of a button. Before making the callout i need to insert a record ...
0
votes
1answer
39 views

Getting desired XML Structure using Apex Webservice

I have a inbound webservice written in Apex. When I am generating the WSDL file and validating the Request XML format I see a flat XML structure. This is not what am expecting. I would like to have ...
0
votes
1answer
42 views

Webservice test class [closed]

I need some help writing a test class for the following. Any help/suggestions would be greatly appreciated. Thanks global class Oppty_SearchResponse{ webservice Boolean isSuccess {set;get;} ...
6
votes
2answers
217 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. ...
1
vote
1answer
78 views

Custom Button that will change a field in a custom object and consequently invoke before update trigger on the same object

I have a ajax cutom button that calls a apex class and the class is changing status field of that object. Now I want to invoke a before update trigger on the same object, which is not working. ...
1
vote
2answers
58 views

Need help writing a test class for webservice classes

I am having difficulties writing a test class for two of my classes. One is a webservice class and the other is a helper class. I have those two working in my code just fine, but am absolutely lost as ...
2
votes
1answer
106 views

SOAP Stub Call out XML Request Data in Apex not in debug log

I like to capture and store XML Request data in custom object before making SOAP api call out for some special purpose, I don't currently see option to get the actual request data in apex, the ...
1
vote
3answers
16 views

Create/Update Contact/Lead from ESB

I have technical design needs to be finalized. I want to get some expert opinion about which approach would be better. Please provide me helpful feedback. Here is brief about my design: ESB will ...
1
vote
1answer
33 views

Incorrect Outbound Message Organization ID?

I'm trying to check for the organization id, per SF instructions, when processing an outbound message in a web service. I am comparing the org Id in the message to one I have put in the ...
2
votes
2answers
53 views

Use System.runAs() in a Test Method for calling web service

Everytime I solve a problem, another appears. More than a problem, I would say a SalesForce restrictions. So, I want to test some code (which makes a web service call in order to display some data) ...
5
votes
2answers
89 views

Unable to Generate Apex Code from WSDL

I have two salesforce orgs and I am trying to do SOAP integration between these two via WSDL import. From the first Salesforce Org (let us say S1) I did the following a) Clicked on the "WSDL" of ...
0
votes
0answers
41 views

Bounce email and email limit handle in apex

I have a list of emails. There is a wrong email address in it. i want to send email message to other address by avoiding wrong address in the list. so how can i do? problem: when i did that all ...
0
votes
0answers
14 views

Give file name when download something from amazon s3

I am Integrating amazon s3. i have successfully done but the problem is file name is not coming which i want. code is here for file name.
2
votes
0answers
131 views

How to pass the parameters from one salesforce org to another salesforce org?

VF Page <apex:page controller="Apex_Rest_DemoController"> <apex:form > <apex:pageBlock > <apex:pageBlockButtons > <apex:commandButton value="Create ...
-1
votes
1answer
87 views

How to Write a Test Class for Webservice Class?

Situation I wrote a web service class. From my understanding unit tests in salesforce are supposed to test the whole functionality (end to end). But I don't know how to test this external interface. ...
1
vote
1answer
43 views

Is it possible to call external webservice(API) in ExactTarget?

We suppose the action will be triggered in some steps in Automation Studio or Journey Builder. After action is triggered, a remote webservice call is made to 3rd party system, and we can use the ...
1
vote
0answers
35 views

Import and use client provided .cer certificate in api callout

This may be a common issue that many of us have faced but unfortunately not getting concrete answer on any of the blogs/forums. I want to use client provided external .cer certificate in making API ...
2
votes
2answers
66 views

Use Outbound Message and Salesforce API in the Same Asmx Web Service

I've created an asmx web service to handle an outbound message from Salesforce and an update operation to Salesforce. I originally created this web service to only handle outbound messages and I ...
1
vote
1answer
121 views

Waiting for Response. Google Time Zone and GeoCode API

I am trying to make a TimeZone class that does the process to get a time zone. I am using the Google API's. In order to get the timezone you have to make a callout to the Google Geocode API and get ...
0
votes
1answer
30 views

Retrieve data from a WebService and fill Standard Page (Lead) fields

Here's my scenario: I need to create a basic search, based on the custom field "ZipCode__c". User types in the zip code and then I have to use a WebService to retrieve the address information ...
2
votes
0answers
16 views

ExactTarget - How would I link back to the GroupDefinition from the CustomerKey given in the AsyncActivityStatus CustomerKey object

I am trying to take a AsyncActivityStatus return object and get the GroupDefinition based on the CustomerKey it returns for a Group Refresh (4 digit number). I've tried looking up by ID, no result. ...
0
votes
0answers
13 views

Is there (or will there be) a .Net version of the Force.com Web Services Connector (WSC)

I'm wondering is there (or will there be) a .Net version of the Force.com Web Services Connector (WSC)? Reading this page might suggest there is a .Net version of the library.
1
vote
1answer
335 views

how to send multiple parameters to restful webservice [duplicate]

i want to send multiple parameters to restful webservice in salesforce HttpRequest req = new HttpRequest(); req.setHeader('Content-Length', '0'); ...
2
votes
1answer
57 views

Delete a ressource from cloudinary

I'm using cloudinary to store images. when I try to delete a resource, I get the following error message: HTTP method DELETE doesn't support output. my source code: Http h = new Http(); ...