Skip to content

athiththan11/RepoDeWS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RepoDeWS

A simple Web Service (SOAP) developed using Spring Boot.

The tool uses an in-memory (runtime) temporary H2 database to store sample data for demos. The H2 console is accessible from https://localhost:8443/h2-console and use admin as password.

NOTE: All defined service operations are fronted by Basic Authentication. Please refer Operations section

Web Service

Models

This sample WS contains the following models and supports CRUD operations on them

  • Developer
    • addDeveloper
    • getDeveloper
    • deleteDeveloper
  • Repo
    • addRepo
    • getRepo

WSDL

Access WSDL definition by navigating to the following link

https://localhost:8443/ws/developers.wsdl

Operations

The operations are fronted by a Basic Authentication. Use the following credentials when working with the listed dev-service (web service) operations

  • username: hydrogen
  • password: pandaAsthma

Developer

Add Developer
<addDeveloperRequest>
    <username>johndoe</username>
    <name>John Doe</name>
    <email>john@doe.com</email>
</addDeveloperRequest>
Get Developer
<getDeveloperRequest>
    <username>johndoe</username>
</getDeveloperRequest>
Delete Developer
<deleteDeveloperRequest>
    <username>johndoe</username>
</deleteDeveloperRequest>

Repo

Add Repo

<dev:addRepoRequest>
    <dev:name>repodews</dev:name>
    <dev:username>athiththan11</dev:username>
    <dev:forks>0</dev:forks>
</dev:addRepoRequest>
Get Repo
<getRepoRequest>
    <username>johndoe</username>
</getRepoRequest>

Build & Run

Execute the following command from the root folder to fire up the web service (spring-boot)

If you dont have maven installed, use the second listed command

mvn spring-boot:run

Use the following command if you dont have maven installed

.\mvnw spring-boot:run