How consume REST service to expose it in oData - rest

I have a REST service that I call from my client app. The service use JSON to manage data.
I want insert SAP NetWeaver Gateway between client and REST server to expose the REST data as oData.
The REST service have get and put methods to read and write data from/to db.
Now I have to decide the way in which starting:
Translate data from/to REST server using ABAP code to serialize data in the two ways (get REST data and create oData in response to a url get oData call and create the REST call in response to a url post oData call)
Use SMP - SAP Mobile Platform (Eclipse plugin) to write integration code (in javascript) to consume REST service in reading and writing exposing this service ad oData. http://scn.sap.com/community/developer-center/mobility-platform/blog/2015/04/08/integration-gateway-rest-data-source-overview-of-blogs
The 2nd solution seems to be the best way (no-require ABAP programming, use js high level language, parse-libs to manage oData and json ...) but i don't know if SMP was created to do this work.
And what is the result of the 2nd method? It seems to be a zip file (similar to a war) that I can push to the SAP Gateway to deploy the integration-logic. Right? How can I test my code without deploy every time the zip on SAP Gateway?

The recommended approach is to create a create Odata service in SAP Gateway and consume it in your app using SMP 3 or HCPms (SAP's mobile solution on cloud).
Use SMP SDK to consume the Odata service.

Related

sending xml data to a rest api using data factory & self hosted integration runtime

I am trying to POST data to a REST API using Azure Data Factory.
The REST API only accepts and returns XML.
As the ADF Rest API activity only handles Json, I will have to do this via an azure function.
The issue with this is the Azure Function cant use our hosted integration runtime. The hosted integration runtime is on a VM with a static IP which has been whitelisted by the API owner and so is required.
Im asking for help listing my options to perform the following in Azure:
Read data from an on premise sql server, outputted in xml.
pass this data row by row to the API
thank you for any help.

Invoke external REST service form IBM BAW19.x

I need to invoke external webservice from IBM BAW 19.x. All documentation I referred to points to having a swagger file for the REST service, then create External Service using the swagger which will create all service artifacts (methods, parameters etc.) and then create a service flow which will use this service. My problem is I do not have a swagger file for this external REST service.
Is there any other way to do this?
Thanks in advance

How to invoke a Springboot Rest Service from ADF 12c

I have a Rest webservice to invoke from Oracle ADF. The service simply returns a success flag and a message. No need to have a Data Control for this.
Is there a rest client that I can use to invoke this rest service?
Other than 'REST Data Control, there is not any in-built in REST client available
in 'Oracle ADF'. Since 'Oracle ADF' is J2EE framework, you can any other java library like Jersey to invoke the RESTful service.
Rest client create http request GET, PUT, POST etc... to restful webservice.
You can use
org.springframework.web.client.RestTemplate
To call restFul API
Other way is using postman

Azure Logic App custom connector SOAP endpoint using WSDL

I am using a Logic App for which I need to create a custom connector. This connector depends on a web service, for which I am trying to add using wsdl definition.
Now If I provide the url, it needs authentication, which I am not able to provide via this UI. I can see the parameters can be provided while using it in the logic app. However it fails to pull the services and hence not creating the definition for the connector
I tried downloading the wsdl and adding here as a file, but the schema have xs import tags, because of which its failing again. And as per this answer, I can not replace it with actual schema.
<xs:import namespace="http://some.name/" schemaLocation="./path/to/it.xsd"/>
Is there a way that I do not need to provide the custom connector definition manually and make it work using wsdl, as it contains a lot of endpoints and it would be too much to add all actions and triggers manually. Plus it would be also reference for me if needed in future for such scenario
You may try this if the services are accessible over the internet, then you call service endpoint over HTTP or HTTPS from azure logic apps. This article will help you with details steps to be followed: https://learn.microsoft.com/en-us/azure/connectors/connectors-native-http
If it is not accessible over the internet then this article will help with step by step process: https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-gateway-connection
Before you can access data sources on premises from your logic apps, you need to create an Azure resource after you install the on-premises data gateway on a local computer. Your logic apps then use this Azure gateway resource in the triggers and actions provided by the on-premises connectors that are available for Azure Logic Apps.
Also check this

Creation of a SOAP service possible in micronaut?

I want to create a SOAP service in micronaut using kotlin. I can not find information about how to do this. Annotations like #WebService are not being hosted as an endpoint.
I've successfully exposed the result to a rest endpoint.
I found information about how to implement a soap client in micronaut.
I succeeded in publishing the endpoint using endpoint.publish(..., ...), but I want to use the built-in netty-server, and perhaps built-in annotations, to prevent having to expose my services in a different class.
I don't think you would use micronaut http client for that. Look at apache axis 2 and see how you can use that.