SK SKYVVA Documentation

1. Overview of SKYVVA Soap and Rest API

#### Learning Objective:

After completing this unit, you’ll be able to:

Introduction

SoapUI is an open-source web service testing application for service-oriented architectures and representational state transfers. We can connect soap UI with the salesforce organization to push data.

Required details:

We can push data using the following:

What is a SOAP API?

SOAP is a standard communication protocol system that permits processes using different operating systems like Linux and Windows to communicate via HTTP and its XML. SOAP-based APIs are designed to create, recover, update, and delete records like accounts, passwords, leads, and custom objects. These offer over twenty different kinds of calls that make it easy for the API developers to maintain their accounts, perform accurate searches, and much more. These can then be used with all those languages that support web services. SOAP APIs take advantage of making web-based protocols such as HTTP and XML that are already operating on all operating systems that are why its developers can easily manipulate web services and get responses without caring about language and platforms at all.

Explaining a Simple SOAP Example

SOAP, by its very nature, requires a little more setup, but I think you’ll be amazed at how simple it is to use. Begin this example by creating a Windows Forms application using Apex. The sample code uses java, but the same technique works fine with other Apex languages (you’ll need to modify the code to fit). Add labels, text boxes, and buttons as shown here (the Latitude and Longitude fields are read-only).

How to Integrate SoapUI to SKYVVA

Follow the given steps to connect SoapUI with SKYVVA Step1: Generate API file

Go to SoapUI

Step2:  Go to the SoapUI application

[su_box title="Note" box_color="#2a8af0" title_color="#000000"]Refresh sessionId with 15-10 minutes because it changes frequently[/su_box]

Step3: Now repeat almost the same steps but this time download  SKYVVA  WSDL

Step 4: Create an Interface in your org

Go to the related page and create an IStructure

Step5: Go to SoapUI to connect SKYVVA with Soap UI

00D7F000001bZ8f!AQEAQNjsb3J8mRbgmaxbkCVyEddn1hbyDUuFkvD.ali3CWVC0_8UIC65ek0XEvWUD410R3NM9FLG8T2Z_NL67g7PDFi1Vg7u a0i7F000003gJ2JQAU Test_SoapUI Name Test BillingCity Mumbai BillingCountry India

Step6:  Check result Go to your Salesforce org

Congratulations your record has been updated successfully

2   What is REST API?

REST is an architectural style of web services that works as a channel of communication between different computers or systems on the internet. The term REST API is something else. Those application programming interfaces that are backed by the architectural style of the REST architectural system are called REST APIs. REST API-compliant web services, database systems, and computer systems permit requesting systems to get robust access and redefine representations of web-based resources by deploying a predefined set of stateless protocols and standard operations. By these protocols and operations and redeploying the manageable and updatable components without causing the effect on the system, REST API systems deliver fast performance, reliability, and more progression.

Explaining a Simple REST Example IntegrateBatch

The examples in this section use REST API resources to create, retrieve, update, and delete records, along with other record-related operations.

Login to your Salesforce org

Now here something is very important Method POST Endpoint  URL: https://skyvva-test-dev-ed.lightning.force.com/ RESOURCE: /services/apexrest/skyvvasolutions/integrateBatch

Now go back to your Salesforce org

Click on Related List & create an IStructure

Go to SoapUI Paste  this code under the Media type section URL: https://skyvva-test-dev-ed.lightning.force.com/ RESOURCE: /services/apexrest/skyvvasolutions/integrateBatch {"INTEGRATIONID" : "a0W2v000019ePQOEA2", "INTERFACENAME" :  "akash_Interface", "messages": [ { "BillingCountry": "Cam", "Name": "Test01", "BillingCity": "PP" }, { "BillingCountry": "Cam", "Name": "Test02", "BillingCity": "PP" }, { "BillingCountry": "Cam", "Name": "Test03", "BillingCity": "PP" } ] }

Great you pass

Go to your Salesforce org

Here is all the information about our Integration Inbound processing

Explaining a Simple REST Example Create New Message

Follow the same steps to create the REST project. Go back to your Salesforce org

Click on Related List to create IStructure

{ "integrationid":"a0W2v000019eQGkEAM", "INTERFACENAME":"Interface_createNewMessage" , "messages":[ { "imessage":{ "skyvvasolutions__status__c":"Pending", "skyvvasolutions__Comment__c":"Test Comment1123456" }, "idata":{ "BillingCity":"Billing City0", "Name":"Account01" } }, { "imessage":{ "skyvvasolutions__status__c":"New", "skyvvasolutions__Comment__c":"Test Comment1123456" }, "idata":{ "BillingCity":"Billing City0", "Name":"Account22" } }, { "imessage":{ "skyvvasolutions__status__c":"Failed", "skyvvasolutions__Comment__c":"Test Comment1123456" }, "idata":{ "BillingCity":"Billing City0", "Name":"Account12" } } ] }

Go to your Salesforce org

This is an example of a Failed message seeing a red flag, If the user has business requirements New, Pending, and Cancelled messages use the method process message to reprocess. As now we explain in next step

Explaining a Simple REST Example Process Message

We have to follow the same steps for creating REST Project 3

Go back to your Salesforce org

Go to SoapUI

{ "INTEGRATIONNAME" : "Integration_createNewMessage", "INTERFACENAME" : "Interface_createNewMessage", "MODE":"SYNC", "STATUS":[ "New", "Pending", "Failed" ], "messages": [ "a0N2v00000aLYAlEAO", "a0N2v00000aLYAmEAO", "a0N2v00000aLYAnEAO" ] } [su_box title="Key to remember" box_color="#2a8af0" title_color="#000000"]Click here to find messageID[/su_box]

Go to SoapUI

Go to your Salesforce org

Explaining a Simple REST Example Integrate Synchronous

This feature is created to allow user to call Skyvva Services by REST Api from their system.

Create an interface & copy the Name

Click on the Related list & create IStructure

Go to SoapUI

{ "integrationid" : "Integrate_synchronous", "interfacename" : "Interface_synchronous", "batchmode" : "false", "messages": [ { "Name": "India", "BillingCity": "Mumbai", "BillingCountry": "India" } , { "Name": "USA", "BillingCity": "LA", "BillingCountry": "Virgina" } ] }

Great code pass successfully

Click on the Search button

The green flag status reflects that your inbound integration was successfully achieved with the help of SoapUI.

Open this article in the interactive viewer →