How can we consume external REST and SOAP services in Helidon SE.
Asked
Active
Viewed 422 times
2 Answers
0
The question is not explicitly related to Helidon SE.
Consuming REST or SOAP web services require writing a client, and you can accomplish this goal in several ways.
For REST ws you can refer here How do you create a REST client for Java? .
For SOAP ws here https://www.baeldung.com/java-soap-web-service .

Antonio Petricca
- 8,891
- 5
- 36
- 74
0
Helidon SE- Web client: https://helidon.io/docs/latest/#/se/webclient/01_introduction
//Create a WebClient with simple builder:
WebClient client = WebClient.builder()
.baseUri("http://localhost")
.build();
//Execute a simple GET request to endpoint:
Single<String> response = client.get()
.path("/endpoint")
.request(String.class);

HasH
- 1
- 2