Skip to content

pgaertig/redbay-ws-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redbay WebServices Client (SOAP)

Java CI with Maven

Please consult Redbay Integration Platform documentation to obtain details on the Redbay API calls.

Build

This project requires Java JDK 11 and is not yet released on Maven Central. To build locally run the below:

mvn clean install

The tooling dependencies are defined in ASDF .tool-versions file.

Usage

Add this dependency to your project pom.xml:

<dependency>
    <groupId>pl.redbay</groupId>
    <artifactId>redbay-ws-client</artifactId>
    <version>1.0.0</version>
</dependency>

Development usage

There is interactive JRuby client available to test calls. For the first time install JRuby and pry gem.

asdf plugin-add ruby
JAVA_HOME=$(asdf where java) asdf install ruby
gem install pry --no-ri --no-rdoc

Then run the client script:

./dev/redbay-client.rb rb-client.config.properties

Example invocation:

[1] pry(#<RedbayCli>)> a = api.getProductsChanges(ticket, LocalDateTime.of(2000, 1, 1, 0, 0))
=> #<Java::PlRedbayWsClientTypes::ArrayOfChanges:0x123307c4>
[2] pry(#<RedbayCli>)> a.items.size
=> 2928

See RedbayClientTest for invocation examples.

License

The source code of this project is licensed under Apache License 2.0