Skip to content

An example spring-boot application ready to be deployed in weblogic

Notifications You must be signed in to change notification settings

gyorgyabraham/spring-boot-weblogic-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-weblogic-example

An example spring-boot application ready to be deployed in weblogic (tested in 12c).

This is a very minimalistic application, but it already has some basics:

  • xsd file to define contract
  • mock service providing soap endpoint, utilizing generated classes from xsd
  • spring-boot and maven based build

How to use:

  1. Execute mvn clean package
  2. Deploy resulting .war file into weblogic
  3. You are all set! You can already POST request.xml to http://localhost:7001/mockservice (provided you have a running weblogic instance locally)

alt text

POST-ing from command line (requires curl)

[gyuszi@gyuszidev spring-boot-weblogic-example]$ curl -X POST -H "Content-Type: text/xml" --data-binary @request.xml http://localhost:7001/mockservice
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
        <ResponseStructure xmlns="http://gyorgyabraham.hu">
            <rsuid>errer2323sdfsdf</rsuid>
            <message>Hello from example app!</message>
        </ResponseStructure>
    </env:Body>
</env:Envelope>
[gyuszi@gyuszidev spring-boot-weblogic-example]$

The heart of our mini appliction is this soap endpoint.

    @PayloadRoot(namespace = "http://gyorgyabraham.hu", localPart = "RequestStructure")
    @ResponsePayload
    public ResponseStructure responseStructure(@RequestPayload RequestStructure request) {
        return new ResponseStructure() {{
            setRsuid(request.getRquid());
            setMessage("Hello from example app!");
        }};
    }

Please note that this application does not use any Java EE/EJB API. It does not use JAX-WS, but instead Spring-WS. Weblogic will not list anything if you open the detail of your deployment in the web console (REST/WEB services tab will be empty)

About

An example spring-boot application ready to be deployed in weblogic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages