How to ingegrate sabre booking SOAP API into React Native - rest

We are planning to use sabre SOAP api for booking
https://beta.developer.sabre.com/docs/soap_apis/air/book/book_air_segment
as its not available for REST. we are using react native to build our app and want to use above API. we had tried to integrate SOAP api but it doesn't work.
Is there any one out there who have used SOAP api to book the flight or any other SOAP api with react native? is there REST api available for booking the flight?
any information will be really helpful
thank you

When you want to integrate a SOAP web service ( or any other ) you should separate concerns to different application layer. To make an example my approach would by
Create a library that will be your simplified interface to the web service API, for example if the booking procedure is a subsequential call of remote services your library interface would be just $myClient->book($request).
Internally, the library will do all the calls that are necessary to make the job done.
Create you application backend and have that library as dependency: in the application layer you will store in your database all the data you need, manage log, exceptions etc.
This can be you JSON/REST API.
Frontend application: this will just render the data given by your application backend, the data supplied by your backend will be as simple as possible, ready to be rendered in a fancy layout.
For the frontend you can use any technology you like, Angular, React, Cordova etc..
Hope it helps
Cheers

Related

How to populate ktor server from another REST api?

I need to use an 3rd party rest api for my android app but this api requires me to use my own backend server.
So when i made a request from my app request will go to my ktor server and server should get data from another 3rd party api, how can i do that and what kinda structure should i use?
I usually prefer using ktor-client for this purposes, It is flexible, configurable and official package of ktor. I highly recommend it to you. Check the link.

REST API SERVICE FOR COLLECTING FORM DATA in JAVA

im planning to develop a webapplication using java and HTML implementing as REST Services and confused how ot start with what technologies..
As a First step my first requirement is just creating a login HTML page and create REST SERVICE for LOGIN which validates the user by connecting to Database and generates a session and next page say shopping page.
Please suggest the Java jars,ide, etc to start.
Sorry, your problem is very complex.
To make a website such as shopping page, you can write code with REST services or no need.
If REST Services is used, you must build and setup 2 system/application: web app & server app. (front-end & back-end). With any system/app, you need technologies its own.
To done, you must know many knowledges such as:
API, Rooter, OOP, MVC, how to connect DB,...
There are many IDE such as Eclipse,... or only need a Editor with a few plugin.

SalesForce to integrate with external RESTful service

Being new to SalesForce Integration, I am trying to understand the capability of SalesForce to integrate with external RESTful service (WADL file) and execute to extract data to use in SalesForce UI functionality.
I understand that SalesForce is able to execute SOAP over HTTP (WSDL file) service to integrate but I see there is no solid documents online to explore whether SalesForce can also execute external WADL file.
Please advice me.
There's no built in feature to consume a WADL. You can however, just write your own Apex code to make restful callouts.
Apex Restful Callouts Trailhead
Invoking HTTP Callouts

Difference between Apex REST and REST API

Can anyone tell me the difference between the REST API and APEX REST.I am new to REST concept.I am very much confused about them.
The REST API (Force.com REST API) is the generic API provided by Salesforce. On the other hand, the Apex REST API is an API written by yourself in apex to provide custom methods.
The Force.com REST API is great for things such as CRUD operations. You should write a custom Apex REST API when you want to perform more complicated actions.
REST -> architectural style for distributed hypermedia systems.
APREX REST -> Apex REST enables you to implement custom Web services in Apex and expose them through the REST architecture.
Second is used to build RESTful web services
Use the REST API most of the time. You can access your records and update them like you'd expect. But if you need to do something special, like update two records, and only have the changes saved if both updates were successful, then look at Apex REST, where you can customize what your API call does as much as you like.
More details in this interview: https://developer.salesforce.com/blogs/tech-pubs/2011/10/salesforce-apis-what-they-are-when-to-use-them.html

What is the benefit of RESTful Web Service Vs Using Just a simple Servlet?

Regardless of whether I create a RESTful Web service to be consumed by Ajax in my own pages, or by any user, I can provide the same functionality (data) to the application or user using a simple servlet.
I mean the user or application don't see any different between response provided by a simple servlet or respone provided by a RESTful web service. So, I'm guessing that the benefit is on the server side and to the developers. Can someone please tell me what are the benefits of using RESTful web services.
I appreciate any respone
By definition a webservice is intended to be consumed by any client granted access. If the client you are developing is the only application that you will ever need or want to access the resource then there is little benefit to creating a webservice. However, if you want to make the resource available as a service endpoint for more than just this application in a way that is implementation agnostic then a Restful webservice is a great way of doing it.