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

0
votes
1answer
20 views

Web Workers in Sales Force

I have a details button that when clicked sends the record (opportunity) for an Apex controller that sends this record to a web service (SOAP). The problem is that my browser comes to halt in sending ...
0
votes
2answers
45 views

Heap Storage Limit exception while creating attachment

I have a custom object Call2_vod__c which is detail to Account. It has a Signature_vod__c field that is in encoded base64 format. Now for one Account, I can create an attachment from any of the ...
0
votes
2answers
21 views

field value contained in list

I have an apex class where I need to check if a field value of a particular record is contained in a pre-defined list. Please find my code here.Can someone please help? Apex class: global class ...
0
votes
1answer
19 views

Web Service Callout exception: Invalid Session Id

public class webServicesTriggerClass { @future(callout = true) public static void webServicesMethod(list<ID> Id1) { partnerSoapSforceCom.Soap sp = new partnerSoapSforceCom.Soap(); ...
1
vote
2answers
26 views

@future method: Unsupported parameter type

I am trying to copy records from one org to other via web services. I am calling a class which has logic written into a trigger. But @ future method is not taking sObject list as a parameter. Can ...
1
vote
0answers
26 views

Calling a webservice method from apex test class

I have a simple webservice method that updates Account Status from a custom Button in the Opportunity page: Global class Backoffice { WebService static Integer GenerateBackofficeTask(id opId) { ...
-2
votes
3answers
25 views

Outbound Message vs WS callout [closed]

I have got an requirement where I need to update the Oracle system. I am confused on what should I do . Should I make Outbound message ? Should I consume their WSDL and update the records with ...
0
votes
1answer
21 views

Redirect VF Page after sendEmail

I have a VF page with a submit button, when the user clicks on the submit button it sends an email. I need the page to redirect to a thank you page after they hit submit. I am getting this error: ...
-1
votes
0answers
18 views

No operation available for request {http://soap.sforce.com/schemas/class/WsOrder}UpsertOrders

since yesterday (after the maintenance) we are getting those errors for all out custom WSs. any idea why? it worked great last week..... thanks!
1
vote
1answer
19 views

IO Exception: External server did not return any content

I have a window service that is password protected.I have generate Apex class from that window service WSDL.Now i am try to call the service using stub method its shows me a error message"IO ExCeption ...
0
votes
2answers
38 views

Suggestions for Unit Tests on an APEX Class that Calls a Web Service and Retrieves XML

I am attempting to write a series of unit tests on a 2300+ line APEX class. The gist of the class is that it makes a Rest Request and retrieves an XML object from a web service. The class then ...
12
votes
2answers
134 views
+200

Rest Routing with Multiple Wildcards / Supporting REST Routing for Nested Resources

Question Running into a SalesForce REST mapping issue involving multiple wildcards in an url. Is this not supported? Is there anyway to supporting routing for nested resources? My Setup I have this ...
3
votes
2answers
29 views

Customizing web services endpoint(URL) across sandbox/PROD orgs

I am calling a external web service via APEX and it is working fine..However the endpoint(URL) is hard coded in the code and it would be different when I migrate the code to QA sandbox..How can ...
2
votes
1answer
35 views

Equivalent data type in standard or custom object to persists blob data?

I have built a webservice in salesforce so that it is being consumed from SAP. So, when a sales order is created in SAP, it would call the salesforce webservice and post the sales order details and ...
1
vote
1answer
21 views

How to create UPSERT operation on CASE object in Salesfoce using .NET

I went through following link , it says , you can access SF objects using EnterPrise WSDL in .NET. .Net to Salesforce Integration My question is , what is the best method by which i can create and ...
0
votes
0answers
19 views

Failed to send request to sales force url

I am working on Java ( JSP & Servlet ) I am creating JAVA Dynamic Web project to Create SalesForce Data Loader... I am using SOAP API as Web Service... I am using sales force "Partner WSDL" API ...
1
vote
0answers
24 views

Outbound Messages, Apex Callouts or Polling

We need certain events in SalesForce to trigger our web service endpoints being hit (to kick off internal processes). As I understand it, there are 3 options here: Outbound Messages Apex Callouts ...
2
votes
1answer
65 views

How to pass parameters in web service class in Salesforce

I am writing a web service that would expose Salesforce fields and this one would be called by an external system. The scenario is that when a user there would views a record detail page of the ...
0
votes
0answers
12 views

Email Templates, Custom Components and Web Service - avoid repeated calls to webservice that return invariant results

I have an email template. Which requires to send data from a web service. Current scenario is i call template for each contact i need to send email to. Template is linked to a custom component and a ...
1
vote
1answer
33 views

Test class for Batch class with web service callout and test data

I have a batch class which in turn makes REST callouts(No future annotation). Now I want to write test class for same. Currently what i tried - -StaticResourceCalloutMock class in salesforce - ...
3
votes
2answers
76 views

JSON response parser returning some fields null

I am trying to parse a JSON response from google. All the fields are populating with the exception of 'lat' and 'lng'. Not sure what I need to do to get the coordinates. Any help is much ...
2
votes
1answer
98 views

How to set timeout for web service call

I want to call out my web service after the insert process of a custom object with a delay of 2 minutes. But i am getting that exception FATAL_ERROR|System.CalloutException: Read timed out How can i ...
3
votes
3answers
90 views

Making rest request with Oauth

I have all four Oauth token consumerKey, consumerSecret, accessKey and accessSecret. I need to make a request to a url from my apex code. Is there any library or a way to make this request. In java I ...
0
votes
1answer
42 views

Looking for hands on example or reference for SOAP API integration

I am looking for some help in understanding Salesforce SOAP integration. Also, what would you suggestion,if I am a non-java person then the efforts i need to take up via books and tool to learn the ...
0
votes
0answers
25 views

Unable to call C# web service

I am trying to invoke an asmx web service via button click in a visualforce page. But i am getting that error: Access control configuration prevents your request from being allowed at this time. ...
0
votes
1answer
32 views

How to invoke a C# web service from a Salesforce trigger

I have written a C# web service and it has a web method that gets last inserted Account object from Salesforce by using Salesforce Web Service API after that inserts these datas to an MSSQL database. ...
3
votes
1answer
30 views

SANDBOX - Access webservice getting below error - added my machine IP in the Remote Site Detail

ERROR The requested URL could not be retrieved While trying to retrieve the URL: The following error was encountered: • Access Denied. Access control configuration prevents your request from ...
0
votes
1answer
55 views

Why is my Google request denied?

I am trying to integrate Salesforce with Google textsearch in order to acquire a JSON response with desired information. My request is getting denied and I can't figure out why. Any help is much ...
1
vote
0answers
32 views

Error while getting response in SOAP Webservice Integration

I am facing issue while invoking a webservice call. Request is getting processed properly at other system end but since its an async call I get back response with empty body. Problem is this ...
0
votes
0answers
24 views

C# Api compare to ApexDataloader

I am trying to load table from salesforce into excel cvs, for that used, I tested the ApexDataLoader and found out that to load whole lead table for my organization take around 4~5 min, and have ...
0
votes
1answer
38 views

Webservice failure to call

Please find the class below. The method called is ASCS_DaaS_APISoap. I am unable to understand where it breaks and not fetching real data.Can some one please help me out in this? //Generated by ...
4
votes
1answer
93 views

JSON.deserializeUntyped returns “unrecognized token: 'NULL'”, when JSON token has a null value

We're creating our JSON responses to my salesforce callouts in house, so I'm guessing the issue has to do with how we're representing NULL in the JSON response. Here's a snippet of the response SF ...
0
votes
1answer
28 views

How to create a public service(Without authentication) in SalesForce which redirect to any external URL using community application?

I have a following use case(I have no option to use site.com). 1. Agent create a time sensitive public link(Without authentication) for any document (Document is on Amazon S3 but public link is ...
2
votes
1answer
102 views

DupeBlocker Error - No Access to web service from contact object

We're using DupeBlocker v 3.6.10 and getting an error when creating an account that seems to be a problem with it's error handling. If we try to create an account from the contact, it will throw the ...
2
votes
0answers
28 views

Stop Salesforce removing https:// from start of web service url

I have set up an apex web service that receives an http get request from an external system with a querystring appended. Salesforce requires the web service endpoint to use HTTPS, which is fine, but ...
1
vote
1answer
16 views

Website Integration and inserting data into two different objects

I'm fairly new to Salesforce coding but familiar with the admin tasks. Here is what I'm supposed to do - I have a webpage (Wordpress site) through which a user can subscribe to various products. ...
1
vote
0answers
45 views

WSDL2Apex Generation Failed Element not defined for part 'result'

I'm trying to import a wsdl file into salesforce with wsdl2apex, however i'm failing with the following error: Apex Generation Failed Element not defined for part 'result' These are my ...
0
votes
0answers
34 views

Error in webservice-Rest Service?

I am following this blog Post Shivasoft where you can get Records From One Org to Another Using REST API. I have Followed the Same Thing As mentioned tin Blog Still I am Not getting any results This ...
3
votes
2answers
138 views

No service available for class for Soap call

I'm searching a simple Webservice test on Salesforce. I created a simple WS global class AccountPlan { webservice String area; webservice String region; //Define an object in apex that ...
2
votes
1answer
95 views

Unable to determine IP address from host name when trying to hit external system from salesforce

I get the below error when trying to hit the external system Unable to determine IP address from host name The dnsserver returned: Name Error: The domain name does not exist. The ...
2
votes
1answer
53 views

How to make a callout to a webservice that is connected through a VPN?

I am trying to make a callout to a SAP webservice that is connected through a VPN. It is not accessible and getting IO Exception Unauthorized end point error. System.CalloutException: IO ...
2
votes
0answers
26 views

Loading data before Webservice callouts?

I need Opportunity record to be inserted in test class and then use that Id in webservice call out. Tried every different combination but it asks me commit the DML operation before doing webservice ...
2
votes
1answer
91 views

Mocking a webservice CalloutException for a SOAP Fault

I have a mock class for a web service that implements WebServiceMock. With some requests the actual web service being mocked will return a SOAP Fault that results in a System.CalloutException in ...
-7
votes
1answer
96 views

FATAL_ERROR|System.ListException: Duplicate id in List [duplicate]

HI I wrote the webservice i am updating the field in quote object field based upon the opportuntiy field but it showing an error FATAL_ERROR|System.ListException: Duplicate id in list Error occur ...
6
votes
1answer
152 views

Creating a class by consuming a WSDL document Schema:attribute

I have a problem with salesforce functionality. I've created flat WSDL file but when I am trying to create class in salesforce I still get this error: Error: Failed to parse wsdl: Unsupported ...
1
vote
2answers
67 views

Missing SOAP action header

Im trying to get the session ID of another user in the same org by sending the following request by using the data from my enterprise wsdl and its an developer edition. <?xml version="1.0" ...
0
votes
2answers
81 views

How get SMS Details in Sandbox by using Twilio API

I have install the Twilio package in Sandbox and I have register the mobile number in Twilio it generates new number. Then I need to get the SMS and create a new case in Sandbox.Where will I get the ...
0
votes
0answers
62 views

Rest Web Service call from same org

Class: @RestResource(urlMapping='/GetService/*') global with sharing class getservice1 { @HttpPost global static String postRestMethod() { ...
0
votes
0answers
41 views

Receiving SOAP messages in APEX

I have been trying to figure this for a long time now, my issue is : There is an outbound message that is being sent from a workflow rule (on create) with the Record Id, I want to capture this ...
1
vote
1answer
288 views

Calling Apex class from Javascript button: how to pass an sObject as a parameter?

I've got an apex class with a webservice method that I'm trying to fire from a custom button on the page layout of the object the method will be doing stuff to. My javascript for the custom button ...