SOAP API in Play Framework Scala - scala

Is there any complete step-by-step guide or material available on how to use SOAP API in Play Framework with Scala?
I have seen people post about scalaxb but couldn't find any guide on how exactly to use it. Any recommendation/link/repositroy will be helpful.
P.S: I cannot use REST API because it's client's requirement to use SOAP and it CANNOT be changed. I have WSDL of the service I am supposed to interact with.

Related

How to implement a REST API base servlets and Tomcat8 with Spring/Hibernate

i am new all around REST API and Servlets and i need to implement a Web application which get as a Host,User,Password and receiving the messages from the inbox mail list and print them.
i am looking for a good example how to do that or an example that demonstrate this
there is a good place for tutorials to learn it?
I recommend you to use Apache CXF or SpringFramework REST services. This here is perfect example how to do this.

Documenting API with Swagger

I'm new in Swagger. I have an API and I want to document it with Swagger based on model, not on annotation. Please provide some guide how can I do it? Thanks in advance! I need literature, examples, tutorial etc.
Swagger is the easiest way to create REST API documentation and the sand box for your API, You need to just follow some annotation rule defined by swagger API.
You have to learn the following thing first-
Basic REST API concepts
REST API with Play.
Look in Swagger annotations.
You can see the demo at http://petstore.swagger.io/
To understand the flow see in the following files
https://github.com/swagger-api/swagger-play-sample-app/blob/master/app/controllers/PetController.scala
https://github.com/swagger-api/swagger-play-sample-app/blob/master/conf/routes

Writing an api-doc for Swagger

I'm trying to use the Swagger UI, and it says that I should begin by writing an api-doc that describes the exact api for a REST api. The problem is that I have no idea what this means. Is this document written in plain English? Or is there a certain format that will be able to generate the UI?
Thank you!
Swagger is a specification for describing REST APIs. Documentation of the specification can be found here - https://github.com/swagger-api/swagger-spec.
Generally, there are two ways to document your API. If you already have an existing API with code, you can use any of the existing libraries (https://github.com/swagger-api/swagger-spec#additional-libraries) to integrate into your code and generate documentation at run time. Some of those libraries also offer offline generation of such docs.
If you're looking to design an API, or would rather not integrate another library into your application, you can use https://github.com/swagger-api/swagger-editor either locally or with the online version - http://editor.swagger.io.
Once you have the documentation, you can use Swagger UI to visualize and test it.

Need help getting started with making REST services using GAE

I've just started on a small project to create some REST services using Google App Engine and Java. I'm new to both technologies, but I've done some reading on both. I'm familiar with SOAP (have used them previously), and I think I understand the conceptual differences between REST and SOAP.
Currently I need info regarding two things:
1) I'm trying to find some tutorial which builds a simple REST service from scratch for deploying on Google App Engine (GAE). The simpler the better, but it should have at least a few routing options. I don't need any UI, if that matters.
2) Which RESTful Framework should I use with Google App Engine. Again, simplicity is what I'd like, and something which has tutorials and a newcomer can easily grasp.
My ultimate goal is to just write a REST wrapper with multiple routing options, which eventual consumes some pre-existing SOAP services and returns their results.
Have you checked out Google Cloud Endpoints for creating a REST service? Its pretty simple and straightforward, also has support for OAuth.
I would give Jello framework a try. It offers a clean, and simple to follow, JSON format and provides a very powerful and comprehensive RESTful implementation that follows the OData specification.
Here is Jello's REST development guide: http://jello-framework.com/guide/rest.html

Play framework + GWT + Restful

We're developing an app using play framework for the backend (with Restful services), and GWT in the client . We want to call Restful services from GWT. Can we use RestyGWT just to build the request and get JSON?
I have read the RestyGWT documentation (http://restygwt.fusesource.org/documentation/restygwt-user-guide.html) but I don't have all clear, because we don't need build Restful service, just call them from client.
Thanks in advance.
I think in your case you can use two feature of RestyGWT:
Calling Restful web services which developed using Play Framework, see this part of documentations.
Manipulating JSON objects in your GWT application using RestyGWT API for encoding and decoding Java Object to JSON, see this part of documentations.