Service Proxy

API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
Alternatives To Service Proxy
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Zerocode72513a month ago27December 06, 2020106apache-2.0Java
A community-developed, free, open source, microservices API automation and load testing framework built using JUnit core runners for Http REST, SOAP, Security, Database, Kafka and much more. Zerocode Open Source enables you to create, change, orchestrate and maintain your automated test cases declaratively with absolute ease.
Apai Io64952123 years ago15February 12, 201817PHP
DISCONTINUED Amazon Product Adverstising Library based on PHP REST and SOAP (only V1) using the Product Advertising API.
Spring Web Services459
4 months ago2mitJava
Spring Web Services - SOAP and RESTful
Service Proxy406422 days ago24December 31, 202152apache-2.0Java
API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
Product Ei31618 days ago45May 15, 20191,033apache-2.0Java
An open source, a high-performance hybrid integration platform that allows developers quick integration with any application, data, or system.
2 days ago80apache-2.0Java
Castle Mock is a web application that provides the functionality to mock out RESTful APIs and SOAP web services.
Forrest221643 months ago69November 08, 202224mitPHP
A Laravel library for Salesforce
24 days ago1apache-2.0C#
My_Note 笔记练习demo
Micro Integrator1382212 days ago59May 15, 2019211apache-2.0Java
The cloud-native configuration driven runtime that helps developers implement composite microservices.
115 years ago15March 02, 20164mitC#
Message based webservice framework on the pure WCF
Alternatives To Service Proxy
Select To Compare

Alternative Project Comparisons

Membrane API Gateway

GitHub release

API Gateway for REST, WebSockets and legacy Web Services written in Java. Featuring:


API Security:

Legacy Web Services:


Get Started

  1. Download the binary and unzip it

  2. Run or service-proxy.bat in a terminal

  3. Change the configuration conf/proxies.xml

Run the samples, follow the REST or SOAP tutorial, see the documentation or the FAQ.


Try the following snippets by copying them into the conf/proxies.xml file.

Using OpenAPI for Configuration & Validation

Configures APIs from OpenAPI and validates messages against the definitions. Needed data like backend addresses are taken from the OpenAPI description. more...

This configuration is all you need to deploy from OpenAPI:

<api port="2000">
    <openapi location="fruitshop-api.yml" validateRequests="yes"/>

A list of deployed APIs if available at http://localhost:2000/api-doc

List of OpenAPI Deployments

Click on the API title to get the Swagger UI.

Swagger UI


Routing requests from port 2000 to when the path starts with /shop.

<api port="2000">
    <target url=""/>

Call the API by opening http://localhost:2000/shop in the browser.

Message Transformation

Create JSON from Query Parameters

<api port="2000" method="GET">
        <template contentType="application/json" pretty="yes">
            { "answer": ${params.answer} }
    <return statusCode="200"/>

Call this API with http://localhost:2000?answer=42 . Replace <return.../> with your <target url="backend-server"/>.

Transform JSON into TEXT, JSON or XML with Templates

Call the following APIs with this request:

curl -d '{"city":"Berlin"}' -H "Content-Type: application/json" "http://localhost:2000"

This template will transform the JSON input into plain text:

<api port="2000" method="POST">
        <template contentType="text/plain">
            City: ${}
    <return statusCode="200"/>

Use this one to transform into JSON:

<template contentType="application/json" pretty="true">
        "destination": "${}"

and that into XML:

<template contentType="application/xml">

Transform XML into Text or JSON

Using the xpathExtractor you can extract values from XML request or response bodies and store it in properties. The properties are then available as variables in the template plugin.

<api port="2000">
            <property name="fn" xpath="person/@firstname"/>
        <template>Buenas Noches, ${fn}sito!</template>
    <return statusCode="200" contentType="text/plain"/>

Complex Transformations using Javascript or Groovy

Use the Javascript or Groovy plugin for more powerful yet simple transformations.

<api port="2000">
            ({ id:7, place: })
    <return contentType="application/json"/>

Call the API with this curl command:

curl -d '{"city":"Berlin"}' -H "Content-Type: application/json" "http://localhost:2000"

Transformation with Computations

This script transforms the input and adds some calculations.

<api port="2000">

        function convertDate(d) {
            return d.getFullYear() + "-" + ("0"+(d.getMonth()+1)).slice(-2) + "-" + ("0"+d.getDate()).slice(-2);

            date: convertDate(new Date(,
            client: json.customer,
            total: => i.quantity * i.price).reduce((a,b) => a+b),
            positions: => ({
                pieces: i.quantity,
                price: i.price,
                article: i.description

See examples/javascript for a detailed explanation. The same transformation can also be realized with Groovy

Writing Extensions with Groovy or Javascript

Dynamically manipulate and monitor messages with Groovy:

<api port="2000">
            header.add("X-Groovy", "Hello from Groovy!")
            println("Status: ${message.statusCode}")
    <target url=""/>

Create a response with Javascript:

<api port="2000">
            var body = JSON.stringify({
                foo: 7,
                bar: 42

    <return/> <!-- Do not forward, return immediately -->

Also try the Groovy and Javascript example.


Membrane offers lots of security features to protect backend servers.

JSON Web Tokens

The API below only allows requests with valid tokens from Microsoft's Azure AD. You can also use the JWT token validator for other identity providers.

<api port="8080">
    <jwtAuth expectedAud="api://2axxxx16-xxxx-xxxx-xxxx-faxxxxxxxxf0">
        <jwks jwksUris="" />
    <target url="https://your-backend"/>


Secure an API with OAuth2

Use OAuth2/OpenID to secure endpoints against Google, Azure AD, github, Keycloak or Membrane authentication servers.

<api port="2001">
        <membrane src=""
                  scope="email profile"
        // Get email from OAuth2 and forward it to the backend 
        def oauth2 = 
    <target url="https://backend"/>

Try the tutorial OAuth2 with external OpenID Providers

Membrane as Authorization Server

Operate your own identity provider:

<api port="2000">
  <oauth2authserver location="logindialog" issuer="http://localhost:2000" consentFile="consentFile.json">
      <user username="john" password="password" email="[email protected]" />
      <client clientId="abc" clientSecret="def" callbackUrl="http://localhost:2001/oauth2callback" />
    <claims value="aud email iss sub username">
      <scope id="username" claims="username"/>
      <scope id="profile" claims="username email password"/>

See the OAuth2 Authorization Server example.

Basic Authentication

<api port="2000">
        <user name="bob" password="secret" />
    <target host="localhost" port="8080" />


Route to SSL/TLS secured endpoints:

<api port="8080">
  <target url=""/>

Secure endpoints with SSL/TLS:

<api port="443">
    <keystore location="membrane.jks" password="secret" keyPassword="secret" />
    <truststore location="membrane.jks" password="secret" />
  <target host="localhost" port="8080"  />

Rate Limiting

Limit the number of incoming requests:

<api port="2000">
  <rateLimiter requestLimit="3" requestLimitDuration="PT30S"/>
  <target host="localhost" port="8080" />


Distribute workload to multiple backend nodes. more ...

<api port="8080">
  <balancer name="balancer">
      <cluster name="Default">
        <node host="my.backend-1" port="4000"/>
        <node host="my.backend-2" port="4000"/>
        <node host="my.backend-3" port="4000"/>

Rewrite URLs

<api port="2000">
    	<map from="^/good-looking-path/(.*)" to="/backend-path/$1" />
    <target host="my.backend.server"/>


Log data about requests and responses to a file or database as CSV or JSON file.

<api port="2000">
  <log/> <!-- Logs to the console -->
  <statisticsCSV file="./log.csv" /> <!-- Logs finegrained CSV --> 
  <target url=""/>


Route and intercept WebSocket traffic:

<api port="2000">
  <webSocket url="http://my.websocket.server:1234">
  <target port="8080" host="localhost"/>

See documentation

SOAP Web Services

Integrate legacy services.

API configuration from WSDL

SOAP proxies configure themselves by analysing WSDL:

<soapProxy wsdl=""/>

Message Validation against WSDL and XSD

The validator checks SOAP messages against a WSDL document including referenced XSD schemas.

<soapProxy wsdl="">
  <validator />

See configuration reference for much more.

Popular Soap Projects
Popular Rest Projects
Popular Application Programming Interfaces Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Api Gateway
Reverse Proxy
Http Proxy