Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.58 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.58 KB

fics-api-client

This project contains a SOAP client library that can be used to call FICS web services. WSDLs and XSDs are located in: src/main/resources

This project can be utilized in your Backbase integration services as a Maven dependency. Simply include the following maven coordinates in the dependency section of your service's pom.xml

<groupId>com.backbase.accelerators</groupId>
<artifactId>fics-api-client</artifactId>
<version>1.0.0</version>

Build this project

From the root directory of this project, run:

mvn clean install

This will compile the project and generate Java classes from the WSDLs and XSDs the resources folder. The generated classes can be found in: target/generated-sources/cxf

Example usage - Defining application.yml configuration:

Properties should be defined in your Backbase integration service as follows. Please obtain actual configuration values from your customer.

fics:
  client:
    baseUrl: http://fics-webservice-host/wsFICS/wsfics.asmx
@Data
@Configuration
@ConfigurationProperties("fics.client")
public class FicsClientProperties {

    private String baseUrl;
}

Example usage - Defining a Spring Bean in Your Integration Service:

The below example wires up the FicsClient as a Spring bean.

@Configuration
public class FicsClientConfiguration {

    @Bean
    @SneakyThrows
    public FicsClient ficsClient(FicsClientProperties ficsClientProperties) {
        WsFICS wsFics = new WsFICS(new URL(ficsClientProperties.getBaseUrl())).getWsFICSSoap();
        return new FicsClient(wsFics);
    }
}