Skip to content

e-Contract/jaxws-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JAX-WS Demo Project

This project allows for experimentations with JAX-WS within a JBoss EAP 7.3 or WildFly 23 application server.

We demonstrate adding support for ECDSA as the WS-Policy level.

This project implements the following WS-SecurityPolicy:

<sp:AlgorithmSuite>
    <wsp:Policy>
        <wsp:ExactlyOne>
            <sp:Basic128 />
            <sp:Basic256 />
            <ecsp:Basic128ECDSA xmlns:ecsp="urn:be:e-contract:security-policy"/>
            <ecsp:Basic256ECDSA xmlns:ecsp="urn:be:e-contract:security-policy"/>
        </wsp:ExactlyOne>
    </wsp:Policy>
</sp:AlgorithmSuite>

allowing the usage of ECDSA signatures for WS-Security based authentication.

Apache Configuration:

Use the following apache configuration file:

<Location "/jaxws-demo">
    ProxyPass ajp://localhost:8009/jaxws-demo
    ProxyPassReverse ajp://localhost:8009/jaxws-demo
</Location>

We tried the following over HTTP, but then we receive a WS-Policy verification error (TransportBinding: TLS is not enabled).

<Location "/jaxws-demo">
    ProxyPass http://localhost:8080/jaxws-demo
    ProxyPassReverse http://localhost:8080/jaxws-demo
	RequestHeader set X-Forwarded-Proto "https" 
    ProxyPreserveHost On
</Location>

JBoss Configuration

Use the following undertow AJP connector configuration:

<ajp-listener name="ajp" socket-binding="ajp"/>

Use the following logging configuration:

            <periodic-rotating-file-handler name="DEMO" autoflush="true">
                <level name="DEBUG"/>
                <formatter>
                    <named-formatter name="PATTERN"/>
                </formatter>
                <file relative-to="jboss.server.log.dir" path="demo.log"/>
                <suffix value=".yyyy-MM-dd"/>
                <append value="true"/>
            </periodic-rotating-file-handler>
            <logger category="be.e_contract.demo" use-parent-handlers="false">
                <level name="DEBUG"/>
                <handlers>
                    <handler name="DEMO"/>
                </handlers>
            </logger>
            <logger category="org.jboss.ws" use-parent-handlers="false">
                <level name="DEBUG"/>
                <handlers>
                    <handler name="DEMO"/>
                </handlers>
            </logger>
            <logger category="org.apache.cxf" use-parent-handlers="false">
                <level name="DEBUG"/>
                <handlers>
                    <handler name="DEMO"/>
                </handlers>
            </logger>
            <logger category="org.jboss.wsf" use-parent-handlers="false">
                <level name="DEBUG"/>
                <handlers>
                    <handler name="DEMO"/>
                </handlers>
            </logger>

Deploy the demo web application

Deploy on a local running WildFly application server via:

mvn clean install wildfly:deploy

You can run the integration tests using the integration-tests Maven profile.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published