Skip to content
Snippets Groups Projects
Commit 43a6ad26 authored by Haidar's avatar Haidar
Browse files

feat: add topup and code endpoint publish

parent b86a7b12
Branches
Tags
1 merge request!3feat: add new endpoint and soap services
...@@ -3,14 +3,18 @@ package org.example; ...@@ -3,14 +3,18 @@ package org.example;
import javax.xml.ws.Endpoint; import javax.xml.ws.Endpoint;
import org.example.service.ChallengeServiceImpl; import org.example.service.ChallengeServiceImpl;
import org.example.service.TopupServiceImpl;
import org.example.service.restCodeServiceImpl;
public class Main { public class Main {
public static void main(String[] args) { public static void main(String[] args) {
try { try {
Endpoint.publish("http://0.0.0.0:8081/ws/testing", new ChallengeServiceImpl()); Endpoint.publish("http://0.0.0.0:8081/topup", new TopupServiceImpl());
Endpoint.publish("http://0.0.0.0:8081/code", new restCodeServiceImpl());
System.out.println("Server started"); System.out.println("Server started");
} catch (Exception e) { } catch (Exception e) {
System.out.println("Something Wrong"); System.out.println("Something Wrong, error is " + e);
} }
} }
} }
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment