Questions tagged [msf4j]

WSO2 Microservices Framework for Java (MSF4J) is a lightweight high performance framework for developing & running microservices.

WSO2 Microservices Framework for Java

Links

43 questions
4
votes
1 answer

How to exclude properties from DTO in REST based on parameter

I have a class like below. public class MyDto { private int id; private String name; private String address; // getters and setters ..... } I have a MS4J service like below with returns a JSON from this object. import…
2
votes
0 answers

Swagger UI Basic Authentication doesn't work, but curl does

I have a rest API implemented in Java (MSF4J codegen from swagger) and a swagger 2 definition that describes it. A swagger UI is hosted on a web server. The API is deployed on a VM somewhere on the internet. My Problem is that the "try it out"…
JWo
  • 650
  • 1
  • 6
  • 23
2
votes
1 answer

wso2 - WSF4J Service --deploy

how to deploy a microservice writted by WSF4J? like this: Navigate to the /bin directory and run the following command to start the MSF4J server. ./carbon.sh where is the carbon.sh ?
Mike
  • 419
  • 1
  • 6
  • 16
2
votes
2 answers

wso2 ​WSO2 Microservices Framework for Java petstore sample cannot run on ubuntu

I try to follow https://docs.wso2.com/display/MSS100/Running+as+an+MSA+Application to run petstore sample on ubuntu which is hosted on AWS. I met several issues: document is incorrect, it requires to download WSO2 Identity Server. Unpack the .zip…
richard
  • 1,845
  • 1
  • 20
  • 30
1
vote
1 answer

MSF4J POST method receiving partial data

I'm new to MSF4J and I need to write a REST API that accepts a large XML data through POST. I am using request.getMessegeBody() method to get the data. I discovered that it's now deprecated but I couldn't find the newer version of it so I decided to…
Piaget Hadzizi
  • 702
  • 8
  • 15
1
vote
0 answers

POST request with JSON parameters in MSF4J ERROR in Java

I've used to MSF4J to get a response by a post request. The code for post request handler is as below. @Path("/psi") public class HelloService { @POST @Path("/send") @Consumes(MediaType.APPLICATION_JSON) …
1
vote
1 answer

Can I make wso2 msf4j work with jersey?

WSO2 MSF4J to improve the size adds their own jaxrs-delegate which strips quite a bit of functionality from JAX-RS standard such as UriBuilder or BadRequestException I've noted a few of the limitations of WSO2's MSF4J implementation…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
1
vote
2 answers

WSO2IS JWT access token

I am trying get a JWT access token from WSO2 IS. I followed instructions from msf4j Oauth2 Security Sample, and managed to get a JWT acces token by resource owner password grant type. but I have problem authenticating the token externally. it…
George Wang
  • 765
  • 2
  • 13
  • 28
1
vote
1 answer

MSF4J integration test

Do we have any library for integration test with MSF4J, like we have one for spring boot? If someone knows about some sample library in github, would be of great help. Thanks, Manish
krmanish007
  • 6,749
  • 16
  • 58
  • 100
1
vote
1 answer

How to setup WSO2 Identitiy Server to skip authentication challenge page on OAuth2?

We are currently looking into WSO2 products for a new project. We want Identity Server to manage users (either direct sign-ups or via common OAuth2 providers, like Facebook) and authenticate users on some Microservice using MSF4J. Following these…
martn_st
  • 2,576
  • 1
  • 24
  • 30
1
vote
1 answer

Adding a Microservice to WSO2 Identity Server as a component

I have microservice running independently doing some stuff by talking separately to WSO2 Identity Server. Now I want to add this microservice to Identity server or kind of extending Identity Server to include the capabilities of the microservice so…
Meeran Mohideen
  • 169
  • 1
  • 3
  • 14
1
vote
1 answer

How to create JAX-RS Sub Resources with WSO2 MSf4J

I have create a sample micro service using WSO2 MSF4J. But i can't access the sub resources (services). Following are my service classes. Message Resource - @Path("/messages") @Consumes(MediaType.APPLICATION_JSON)…
Shashika
  • 219
  • 1
  • 6
  • 18
1
vote
1 answer

Wso2 msf4j- metrics and http monitoring example not run on macos

I am training myself in examples of wso2 msf4j. Concretely is example in the following…
Hoang Doanh
  • 99
  • 2
  • 11
1
vote
1 answer

WSO2 MSF4J - Maven Compiler Sample

I have a problem with Maven Compiler Hellow-Service sample. the response: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1] [INFO] Scanning for projects... [INFO] [INFO]…
Vitor Darela
  • 142
  • 7
0
votes
0 answers

How to create an "https" connection in an MSF4J microservice?

I'm new to MSF4J micorservices. I was trying out a hello-world MSF4J example as given here: https://javahelps.com/wso2-msf4j-hello-world. Everything works as expected, but when I try to access the service using an https url…
jogi343
  • 1
  • 1
1
2 3