JaxWS-Gateway

JaxWs-Gateway helps work with SOAP calls

License

License

Categories

Categories

Data
GroupId

GroupId

dk.bankdata.jaxws
ArtifactId

ArtifactId

gateway
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

pom
Description

Description

JaxWS-Gateway
JaxWs-Gateway helps work with SOAP calls

Download gateway

How to add to project

<!-- https://jarcasting.com/artifacts/dk.bankdata.jaxws/gateway/ -->
<dependency>
    <groupId>dk.bankdata.jaxws</groupId>
    <artifactId>gateway</artifactId>
    <version>1.0.4</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/dk.bankdata.jaxws/gateway/
implementation 'dk.bankdata.jaxws:gateway:1.0.4'
// https://jarcasting.com/artifacts/dk.bankdata.jaxws/gateway/
implementation ("dk.bankdata.jaxws:gateway:1.0.4")
'dk.bankdata.jaxws:gateway:pom:1.0.4'
<dependency org="dk.bankdata.jaxws" name="gateway" rev="1.0.4">
  <artifact name="gateway" type="pom" />
</dependency>
@Grapes(
@Grab(group='dk.bankdata.jaxws', module='gateway', version='1.0.4')
)
libraryDependencies += "dk.bankdata.jaxws" % "gateway" % "1.0.4"
[dk.bankdata.jaxws/gateway "1.0.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.25

Project Modules

There are no modules declared in this project.

Maven Central Javadoc Build Status License: MIT Known Vulnerabilities

Overview

This project contains optimations related to building JAX-WS requests.

Getting Started

See how to add this library to your project here https://search.maven.org/artifact/dk.bankdata.jaxws/gateway

Prerequisites

This library needs Java 8 or higher to function correctly

Download here

Author

License

This project is licensed under the MIT License

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Usage

In the following section there will be provided code examples of each part of this library

System environment and dependencies

For this library to function you need to do the following:

  1. add these dependencies to your gradle.build file
    compile(group: 'org.apache.cxf', name: 'cxf-rt-frontend-jaxws', version: '3.3.3')
    compile(group: 'org.apache.cxf', name: 'cxf-rt-transports-http', version: '3.3.3')

  2. define these system environment variables:
    SOAP_SCHEME
    SOAP_HOST
    SOAP_PORT

Application

In the Application class you need to configure the gateway. ei. which soap endpoints needs to be cached

import dk.bankdata.jaxws.gateway.cache.JaxWsCache;

@ApplicationScoped
@ApplicationPath("/")
public class RestApplication extends Application {
    @Inject
    private JaxWsCache jaxWsCache;

    @PostConstruct
    public void initialize() {
        jaxWsCache
                .port(SomeService.class, SomeServicePortType.class)
                .port(SomeService.class, SomeServiceOtherPortType.class)
                .port(SomeOtherService.class, SomeOtherPortType.class);
    }

    @Override
    public Set<Class<?>> getClasses() {
        ...        
    }

    @Override
    public Set<Object> getSingletons() {
        ...
    }

}

Get cached ports

To get the cached ports you need to annotate your porttype like this:

@RequestScoped
public class SomeServiceClient {
    @Inject @JaxWsEndpoint
    JaxWsGateway<SomeServicePortType> gateway;

    public SomeResponse getSomething(SomeRequest request, InputHeader inputHeader) {
        try {
            return gateway.port().getSomething(request, inputHeader);
        } catch (Exception e) {
            ...
        }
    }
}
```
dk.bankdata.jaxws

Bankdata

Bankdata is one of the largest financial technology companies in Denmark with 650 employees.

Versions

Version
1.0.4
1.0.3
1.0.2.1-BETA
1.0.2
1.0.2-BETA
1.0.1
1.0.0
0.3.10-BETA
0.3.9
0.3.8
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1