0

How can we consume external REST and SOAP services in Helidon SE.

Gaurav
  • 53
  • 3
  • Please, edit your question and provide more details on what the exact issue do you have. What did you try and what went wrong? – astentx Nov 30 '20 at 16:36

2 Answers2

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