How to Create a SOAP Service in Salesforce

Trey AroseSalesforce, Technical TipsLeave a Comment

How to Create a SOAP Service in SFDC

Salesforce provides a powerful SOAP toolkit that developers can leverage to connect their services to their Salesforce.com enviromnet. In this entry we are going to show you how to create your SOAP service within Salesforce.com. First you will need to establish your Web Service logic. This can be done by creating a new Class in Salesforce.com. Below is an example that will create a new Account when called: global class AccountPlan{        //Define an object in apex that is exposed in apex web service   global class Plan {   webservice String Name;      webservice String aId; //Value Returned to Initial System    } … Read More

How to Create a Public RESTful Web Service on a Force.com Site

Trey AroseSalesforce, Technical TipsLeave a Comment

How to Create a Public RESTful Web Service on a Force.com Site

In the following tutorial we make a simple RESTful Web Service on a Force.com site. So lets get started, we will first create a Apex class by navigating to Your Name | Setup | Develop | Apex Classes | New Below is the  Apex code, @RestResource(urlMapping=’/myservice’) global class MyService { @HttpGet global static String doGet() { String name = RestContext.request.params.get(‘name’); return ‘Hello ‘+name; } } Now the next step is to make this Apex class accessible via Public URL. Navigate to Your Name | Setup | Develop | Sites   Click the name of the site you want to control. … Read More