JSON RPC/RestFull Keil ARM - json

Does ARM Keil HTTP embedded server supports JSON RPC with cgx calls?
Does ARM Keil HTTP embedded server also supports RestFul with cgx calls?

It's not possible to implement a real RestFul interface on the library version of the Keil HTTP webserver as you can't access the HTTP requests.
Probably with the source code variant you can accomplish this.

Related

Does it possible to save WebSocket gateway with the same route in Azure API Management

We are using Azure API Management where is supporting WebSocket, but we need 2 different endpoint routes for it, because you can`t create route to your API:
http(s)://{base_url} and ws(s)://{base_url},
you must add difference by using suffix, like :
http(s)://{base_url}
ws(s)://{base_url}/{suffix}
or
http(s)://{base_url}/{suffix}
ws(s)://{base_url}
How we can configure same endpoits ?
During the WebSocket passthrough the client application establishes a WebSocket connection with the API Management Gateway
Check for the steps in adding WebSocket API to APIM here.
Make sure we follow below limitations:
WebSocket APIs are not supported yet in the Consumption tier.
WebSocket APIs are not supported yet in the self-hosted gateway.
Azure CLI, PowerShell, and SDK currently do not support management operations of WebSocket APIs
Refer to this SO thread in including two endpoints for same URL in backend, thanks to Hury for great explanation. Though it is for functions app, but the process is similar.

What App server to use for json and soap API

I am trying to select a app server platform to service JOSN & Soap POST requests from client app on Desktops. The app server runs on linux and use PHP code.
I searched and found PHP framework but that doesn't give you easy to use auth user/password, so you have to do the auth in app code. What is to use for simple request/response app server with secure auth like user/password on first request and then token like normal web servers.
Currently using Drupal 7 REST services module to handle request auth, but SOAP has security issues. Looking for better and light weight framework.
For your API : https://www.drupal.org/project/jsonapi (it's gonna be implemented in 8.7 anymay)
If you have an external authentication provider (like keycloak, azureAD…) : https://www.drupal.org/project/oauth2_jwt_sso
If you don't : https://www.drupal.org/project/simple_oauth

How to test that my Ultralight 2.0 IOT agent receives payload

I am using the Ultralight 2.0 IOT Agent.
Although I can see that the payload, that my gateway sends, is subscribed at a specific topic into the mosquitto MQTT broker, how could I test that the IOTAgent is listening at port 4061 and that it is receiving something from the broker?
I am refering to the IOTAgent-UL which is running on a CentOS 7 VM as a service. I have access to it with REST calls and I also see that the payloads, that my gateway sends, are subscribed into the MQTT broker. How could I pass my payloads from the mosquitto to the IOTAgent and after to the Context Broker?
thanks a lot!
What you are asking for seems to be related with the basic operational workflow of the IOTAgents in general. Thus, I'd recommend you to have a look to the following Step by step guide. It is based in another agent (the one for JSON payloads instead of UL) but most of the procedure is the same, so I think it could be useful.
EDIT: JSON format is documented here. UL format is documented here. Payload format is indepedent of the transport, i.e. is the same no matter if you use HTTP or MQTT.

Creating a http web service in message broker

I need to create a http post request that will put a message in a message queue.So far I am able to do it successfull within the test framework i.e: using the integration node.
My question is how I will be able to test this from a external browser?
Do I need to deploy it in an external server?
Any links or suggestion will be really helpful.
I often use curl for testing webservices deployed to IIB. You can use the "-d" parameter to specify a file containing the POST data and this works well for both HTTP and SOAP.
I don't think browsers are meant to call web services directly, try SOAPUI for testing.
Message Broker Applications need to be deployed on a Broker and Execution Group or Integration Node and Integration Server (after V9).

How to expose a SOAP data service with a JSON proxy service on ESB?

I'm working on Stratos Live.
I have implemented a SOAP data service.
I would like to expose it as a JSON REST service defining a proxy on the ESB.
How can I define it ?
A pass-through proxy ? a transformer-proxy ?
(I have already tried to define a pass-through proxy, but with it I expose soap too; I did not find how to configure json protocol)
I found this example :
http://docs.wso2.org/wiki/display/ESB451/Sample+440%3A+Exposing+a+SOAP+Service+Over+JSON
But it refers to an on premise use : how can I use it on Stratos Live console ?
Is there an example for Stratos Live too ?
Thanks in advance.
You can expose your data as RESTful resources directly from the WSO2 Data Services Server. Following documentation will help you on it.
http://docs.wso2.org/wiki/display/DSS301/Expose+Data+as+REST+Resources
You don't need an ESB proxy service in this situation because your requirement can be achieved directly from the Data Services Server. A proxy service might become handy if you had any transformation or service chaining kind of scenarios to be done.