Giter Club home page Giter Club logo

wsdl2apigee's Introduction

wsdl2apigee

wsdl2apigee is an open source project that extends Apigee Edge functionality to provide the ability to:

  • Expose a SOAP Service as a REST API (over JSON or XML) or
  • Expose a SOAP Service in a pass through mode for deployment on Apigee Edge

Support

This is an open-source project of the Apigee Corporation. It is not covered by Apigee support contracts. However, we will support you as best we can. For help, please open an issue in this GitHub project. You are also always welcome to submit a pull request.

Install

mvn install

Usage

java -jar wsdl2apigee-1.0.0-jar-with-dependencies.jar -wsdl=<wsdl URL or Path>

Other Options

java -jar wsdl2apigee-1.0.0-jar-with-dependencies.jar -wsdl=<wsdl URL or Path> -passthru=<true|false> -desc=<description> -allpost=<true|false> -opsmap=<opsmapping.xml> -service=<service name> -port=<port name> -debug=<true|false> -oauth=<true|false> -vhosts=comma separated values for virtuals hosts> -build=<build folder name> -cors=<true|false> -apikey=<true|false> -quota=<true|false> -basepath=<specify base path>

Defaults:
passthru=false            Do not convert to API/JSON. Treat as SOAP
allpost=false             Treat all wsdls operations as HTTP POST
service=If the wsdl contains > 1 service, specify the name. Otherwise, the first service is selected
port=If the service contains > 1 port, specify the port name. Otherwise, the first port is selected
debug=false               Set to true to enable trace.
vhosts=default
oauth=false               Don't add the oauth policy
apikey=false              Don't add apikey verification
quota=false               Works only if apikey or oauth is set
basepath=Uses the basepath from the wsdl
cors=false                Don't enable CORS; Works only for SOAP to REST
build=specify build folder   default is temp folder; ensure user has access to read/write to temp folder
opsmap=specify operations map

Output

You should see an API Proxy bundle generated in the same folder you ran the command. The bundle follows the convention of {soap-servicename}.zip. You can import the bundle via the Edge Admin UI or tools like apigeetool.

Open API Specification

When a proxy bundle for SOAP->REST is generated, an attempt is made to generate an Open API specification. This document is hosted at http://{proxy-url}/{basePath}/openapi.json

NOTE: The Open API specification is not expected to be accurate for all WSDLs. For ex: OAS does not support xsd:choice.

WSDL

When a proxy bundle for SOAP PassThru is generated, the WSDL is hosted at http://{proxy-url}/{basePath}?wsdl

Appendix

OpsMap: A file that maps WSDL operations to HTTP Verbs. A Sample Ops Mapping file looks like:

{
  "proxywriter": {
    "get": {
      "operation": [
        {
          "pattern": "get",
          "location": "beginsWith"
        },
        {
          "pattern": "inq",
          "location": "beginsWith"
        },
        {
          "pattern": "search",
          "location": "beginsWith"
        },
        {
          "pattern": "list",
          "location": "beginsWith"
        },
        {
          "pattern": "retrieve",
          "location": "beginsWith"
        }
      ]
    },
    "post": {
      "operation": [
        {
          "pattern": "create",
          "location": "contains"
        },
        {
          "pattern": "add",
          "location": "beginsWith"
        },
        {
          "pattern": "process",
          "location": "beginsWith"
        }
      ]
    },
    "put": {
      "operation": [
        {
          "pattern": "update",
          "location": "beginsWith"
        },
        {
          "pattern": "change",
          "location": "beginsWith"
        },
        {
          "pattern": "modify",
          "location": "beginsWith"
        },
        {
          "pattern": "set",
          "location": "beginsWith"
        }
      ]
    },
    "delete": {
      "operation": [
        {
          "pattern": "delete",
          "location": "beginsWith"
        },
        {
          "pattern": "remove",
          "location": "beginsWith"
        },
        {
          "pattern": "del",
          "location": "beginsWith"
        }
      ]
    }
  }
}

wsdl2apigee's People

Contributors

srinandan avatar coverbeck avatar gideongoodwin avatar earth2marsh avatar dkoitzsch avatar johncanthony avatar

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.