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

4
votes
0answers
26 views

Internal Salesforce.com Error and invalid Cross Reference id

I have a piece of code that has been working for the past few months without problem until recently. I cannot say to the exact day this started happening as this is still in a testing phase and this ...
0
votes
1answer
16 views

Redirecting a pageReference according to a picklist value

I created a class and include a webservice method that will generate the pdf and attach it to a record, but it's not working when I choose a specific value in the picklist in order to generate the ...
2
votes
0answers
38 views

Error - System.CalloutException: Received fatal alert: bad_record_mac

An existing integration from Salesforce to Oracle stopped working this morning. When I send an http request from Salesforce to an Oracle webservice, I get a message "System.CalloutException: Received ...
0
votes
1answer
16 views

Integrate Magento with SalesForce

What is the best (free) way to integrate salesforce with magento? Basically we want to be able to import the contacts of anyone who buys from our page into salesforce. - I could not find any useful ...
-2
votes
0answers
22 views

Integration Process using SOAP API in Salesforce.com [closed]

Iam new to SOAP API. I dont have any clear idea about SOAP API. Can any one explain step by step procedure for Integration process and How to send request & response, oAuth. And also i need ...
2
votes
1answer
66 views

Restful webservice with XML in Salesforce

I am trying to write this below xml from Contact object.Problem is compostion of the xml with nested childs is really complex.Can you help understand to demistfy this problem. "<request ...
1
vote
2answers
45 views

List Out of Bounds of 1

I am checking for products duplicated in my webservice but it is showing a "List Out of Bounds of 1" error in the below code. **for(integer j=0.prodsj++)** // Error Occur Point { { ...
4
votes
2answers
47 views

Method defined as testMethod do not support web service callouts, test skipped

I have been struggling with this error for a few days now. I get this error every time I try to run a test for a method that has an httpCallout. I followed the architecture from ...
1
vote
2answers
50 views

Sending a SOAP web-service for each Lead insert

I have a requirement where I have to send out a web service to a third party system every time a Lead is inserted. I can do it by calling the web service via trigger. However I want to make sure that ...
11
votes
0answers
74 views

How does Salesforce behave during scheduled outages?

If you have a scheduled outage with Salesforce in which Salesforce is 'Completely unavailable' what error message does a client of the APIs see when someone tries to call it? Is it a login failure? ...
1
vote
1answer
32 views

How to login and get a list of accounts from C#

I am trying access the Salesforce API from an external application. I've done the following: I've gone to the API tab and generated the WSDL. I then ran the .NET framework's WSDL tool to generate ...
2
votes
2answers
78 views

Apex Rest JSON serialization Error: Invalid type for Http* method: …Map.Object

Background I'm developing some generics apex web service (Rest). The response should be an standardised json schema like this: { "res": true, "message": "Records Upserted Ok", "data" : ...
2
votes
1answer
41 views

Custom button on listview to perform action on multiple leads (Lead Rotator)

I'm pretty new to apex. I did some java and other various languages in school, but this has been my first real project since then. The objective: Provide the capablity to rotate leads in a ...
1
vote
0answers
19 views

Web2Prospect not working

I am trying to create web2prospect by using with propertybase app but I got following error. kindly let me know if you know the solutions. My Code: <form name="web2prospect" onSubmit="return ...
0
votes
1answer
35 views

Getting the correct data extension rows in AMPScript

Our subscriber row has many rows, two of which are SubscriberKey, and ModifiedDate I have a data extension that contains info about what the subscriber purchased it is a one to many relationship, ...
3
votes
2answers
91 views

Certificate error from client side while sending HTTP request from Salesforce

I am trying to send an Http request from Salesforce to a third party system. Following is the code for http request. HTTP httpInstance = new HTTP(); HTTPRequest request = new HTTPRequest(); ...
1
vote
2answers
136 views

How to set values for input list parameters for the webservice methods in XML Request for SOAP UI?

I want to test my webservice using SOAP UI tool. I've loaded the WSDL in SOAP UI and it generated the request as given below. I know how to set input values for simple type. But i do not know how to ...
4
votes
1answer
67 views

Apex scheduled job to call .net web services hosted in IIS periodically

I just wondering if someone could guide me to a document of how to perform Apex scheduled job – To call .net web service hosted in IIS of external server on a periodic basis. My requirement is every ...
0
votes
1answer
44 views

WSDL not generated, displays blank page. Any ideas?

i have created a webservice with two inputs Customer and Product DTOs. I click WSDL link in the Apex Classes page and it does not generates WSDL instead displays blank page. Here is my class,Please ...
-4
votes
1answer
50 views

Test Class Showing an error

When i implemented the test class for webservice it showing an error is Compile Error: Invalid type: AccountWrapper.Contacts in my test class My Class webservice String accName; webservice ...
0
votes
1answer
123 views

Using SQL Server CLR procedure to retrieve data via Exact Target web services

I have written a basic c# program that calls the ExactTarget webservice and updates a subscriber list and that all worked fine. Then I took the class and created a CLR stored procedure and embedded ...
3
votes
1answer
86 views

Accessing the entire fault response from a CalloutException

This is an older problem that I had back in 2011 but got no further than promoting the Salesforce Idea: SOAPFault Information for Apex. It came up again today with users of a managed package wanting ...
0
votes
0answers
115 views

Web service callout failed using enterprise wsdl

I am using enterprise wsdl to login and get session id. as I have verified in login history, Its logged in successfully. But it throws the error when it invokes the another sfdc webservice from future ...
6
votes
1answer
106 views

Determining Namespace Prefix in JavaScript and Apex

When you have a dedicated Visualforce Page and can use modern JavaScript Remoting techniques, this is seldom an issue. But I'm looking at some historical code in a managed package like this: ...
-1
votes
1answer
105 views

Duplicate id in list

My service is working fine for single record insert when i send bulk records at that time it showing soapenv:ClientSystem.ListException: Duplicate id in list: 01ti0000002gUP1AAM ...
0
votes
1answer
54 views

Change a SOAP API Request Body

I want to add the following content to the Soap request body when webservice is invoked. <foo bar="baz">bar</foo> I tried to update the generated code by the WSDL file. public class ...
3
votes
1answer
139 views

Getting objects (complex type) as input parameters in webservice method (using SOAP) is possible or not?

global class TestWebService { webService static String sayHello(String a, String b) { return 'Hello, '+a+' '+b+'!!'; } } In the above webservice method it accepts two ...
0
votes
1answer
123 views

Calling VisualForce page from WebService

In trying to create a VisualForce page that renders as a PDF and call that inside of a WebSerivce, I keep getting an HTML content inside the WebService that seems to be redirecting to the login page. ...
2
votes
1answer
32 views

Get list of custom web services

Is it possible to get list of custom web services (SOAP API) from APEX classes ? In Setup ->Develop->Apex Classes there are all classes and it is difficult to find only specific one
1
vote
0answers
75 views

Salesforce REST API Time-out after 4 callouts

Good day. I really need help on this issue. I have tries every possible option here. I use the Salesforce REST API using C#. The works 100% fine but after a couple of calls out to SF i keep on ...
4
votes
1answer
45 views

Is there a way to load an internal Salesforce page from a scheduled batch?

My end goal is to be able to send license usage as well as data/file storage usage from clients to our org. As these values don't appear to be available directly via any API calls, I had to resort to ...
4
votes
2answers
414 views

What is the best approach to call a webservice from SFDC?

Objective: When an Account is created in Salesforce I need to call a SAP webservice and create a customer in SAP. What would be best approach? To call the SAP webservice from the Account trigger ...
2
votes
3answers
91 views

Workarounds for Sites page to update standard object?

I have a client who wants external users to submit data via a Sites VF page and update Opportunity records. Of course the Sites profile doesn't have permissions to update standard objects. Also, the ...
3
votes
1answer
87 views

Asynchronous calls returning error

While performing callouts over Docusign API (here) from an Apex class it works fine. And whenever I try to introduce any Asynchronous callouts (future / batch) it generates an error. I'm wondering ...
3
votes
0answers
46 views

AppExchange Code Review

I have created a managed package which i have submitted for code review after it passed the review through checkmarx code reviewer with no vulnerabilities. I have been using Tooling API in my managed ...
5
votes
1answer
162 views

how to get test coverage for @future and http response method in class

Below is my apex class and trigger, that is used to send sms from 3rd party application and that is working fine, but i'm not getting test coverage for class. If i use @future method my apex class ...
5
votes
2answers
205 views

Using OAuth 1.0 encoded requests for external webservice calls

I have a business requirement that necessitates a callout from Apex to an external .NET based web service that receives signed OAuth responses. There is no built-in support for this in Apex, but ...
1
vote
1answer
79 views

Test class for Trigger and web service class

This is my trigger, for sending SMS when account owner is changed trigger sms on Account (before insert,before update) { for(Account acc:trigger.new) { if(acc.Status__c=='Qualified' ...
1
vote
1answer
123 views

Dynamically set remote site Setting in Apex

I have created a managed package that uses tooling API for updating class, trigger etc. Everything runs fine with all sorts of testing. I have created this package in my Developer org. I had to set ...
1
vote
1answer
112 views

Test class Rest Webservice parameters

I´m having problems with url parameters (req.requestURI) in my test class. This is my code. REST CLASS: @RestResource(urlMapping='/Accounts/*') global class StoreController { @HttpGet ...
2
votes
0answers
56 views

My test classes are contributing towards uncovered code

I have a test class containing several WebServiceMock implementors. He looks like this: @isTest private class MyTestClass { public class ValidateMock implements WebServiceMock { public ...
3
votes
1answer
70 views

Outbound message hits webservice continously

I have a webservice written in .net which gets the request from the outbound message and sends the response. But salesforce keeps hitting my application and it still waits in outbound queue. How do I ...
5
votes
1answer
103 views

how to receive multipart/form-data requests

Im trying to set up an event driven framework, which needs a public salesforce endpoint to recieve webhook posts from a 3rd party service (mailgun). I have put together a custom rest endpoint that ...
0
votes
1answer
84 views

getting all the fields of account using custom apex webserivce

I'm trying to extract all the fields of an Account using custom a Apex webservice. As a first step, I wrote some sample code: global class testweb{ webservice static Account getAccount(){ ...
1
vote
1answer
43 views

webservices step by step process

could any one share links related to apex webservices. I want to pull Account database from salesforce and should give the acess of this to other platform developers.Some thing like SOAP .
4
votes
1answer
118 views

Error while trying Webservice

Hello Guys, I am learning Webservice but I am getting this error ::Error: Compile Error: Argument type of global method must also be global: Account at line 2 column 26 I am following the ...
2
votes
1answer
59 views

JSON.serialise give output with escape charater

I am doing this: JSON.serialize(payload); where payload is an object instance. and getting this: ...
4
votes
1answer
144 views

'The requested URL could not be retrieved' when trying to make a Callout

I'm using a service where I pass a URL with a zip code, and in return I get the address of a postal code. However I am getting this message, in fact the service does not return an exception, but that ...
1
vote
1answer
152 views

Test class for REST Api

@HttpPost global static Map <String,String> doPost(String firstName, String lastName, String phone, String email) { Lead lead = new Lead(); Map <String,String> sta = new Map ...
1
vote
1answer
24 views

What was the release date of version 145.3 of the ExactTarget Web Service API?

I need to know the release date of version 145.3 of the ExactTarget Web Service API?