Git Product home page Git Product logo

soap-proxy's Introduction

Soap proxy

This service listens to POST requests on /soap-proxy, adds a Bearer token as Authorization header, forwards them to the specified soap endpoint, and returns the response from the soap endpoint.

In case a 401 is returned, the service retrieves a fresh token and retries.

To inspect current running configuration, run GET http://hostname:port

Building

run .\mvnw clean package -DskipTests from project root, then pick up a jar from target directory.

Configuration

As spring supports many ways to configure the application, please refer to spring official documentation.

All methods can be combined as long as the priority is respected. Consult the above document.

The simplest way to provide configuration is to provide properties as command line arguments, eg:

java -jar soap-proxy.jar --soap-proxy.soap-endpoint=http://some-soap-endpoint ...
  • http.client.ssl.trust-store - trust store location removed see soap-proxy.trust-store
  • http.client.ssl.trust-store-password removed see soap-proxy.trust-store-password
  • soap-proxy.trust-store - trust store location
  • soap-proxy.trust-store-password - trust store password
  • soap-proxy.soap-endpoint - whole url of the soap endpoint to forward to
  • soap-proxy.auth-redirect-uri - uri to send to authentication service as redirect
  • soap-proxy.auth-url - authentication url
  • soap-proxy.auth-grant-type - authentication grant type
  • soap-proxy.auth-client-id - authentication client id
  • soap-proxy.auth-client-secret - authentication client secret
  • soap-proxy.trust-store - trust store location
  • soap-proxy.trust-store-password - trust store password in UTF-8
  • soap-proxy.protocol - SSL protocol to use
  • soap-proxy.connect-timeout - connect timeout in ms (default 5000)
  • soap-proxy.connection-request-timeout - connection request timeout in ms (default 5000)
  • soap-proxy.socket-timeout - socket timeout in ms (default 5000)
  • server.port - port on which to listen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.