Gradle wsdl2java plugin

The Gradle wsdl2java plugin makes it easy to generate Java source from WSDL

License

License

GroupId

GroupId

com.github.janisz
ArtifactId

ArtifactId

wsdl2java
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle wsdl2java plugin
The Gradle wsdl2java plugin makes it easy to generate Java source from WSDL
Project URL

Project URL

http://github.com/janisz/gradle-wsdl2java
Source Code Management

Source Code Management

https://github.com/janisz/gradle-wsdl2java.git

Download wsdl2java

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.janisz/wsdl2java/ -->
<dependency>
    <groupId>com.github.janisz</groupId>
    <artifactId>wsdl2java</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.janisz/wsdl2java/
implementation 'com.github.janisz:wsdl2java:0.0.1'
// https://jarcasting.com/artifacts/com.github.janisz/wsdl2java/
implementation ("com.github.janisz:wsdl2java:0.0.1")
'com.github.janisz:wsdl2java:jar:0.0.1'
<dependency org="com.github.janisz" name="wsdl2java" rev="0.0.1">
  <artifact name="wsdl2java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.janisz', module='wsdl2java', version='0.0.1')
)
libraryDependencies += "com.github.janisz" % "wsdl2java" % "0.0.1"
[com.github.janisz/wsdl2java "0.0.1"]

Dependencies

compile (6)

Group / Artifact Type Version
org.apache.axis : axis jar 1.4
javax.activation : activation jar 1.1
wsdl4j : wsdl4j jar 1.6.3
commons-discovery : commons-discovery jar 0.5
javax.xml : jaxrpc jar 1.1
javax.mail : mail jar 1.4

Project Modules

There are no modules declared in this project.

gradle-wsdl2java Build Status

Gradle plugin takes a WSDL document and generates fully annotated Java code from which to implement a service

##Usage

Add the following to your build file to setup where the plugin should be downloaded from:

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath 'com.github.janisz:wsdl2java:0.0.1'
    }
}

apply plugin: 'wsdl2java'

Configuration

wsdl2java {
    wsdlUrl = 'https://webapi.allegro.pl/service.php?wsdl'
    outputDir = 'generated'
    namespaceToPackage = [
            'urn:AllegroWebApi' : 'pl.allegro.webapi.uploader',
            'https://webapi.allegro.pl/service.php' : 'pl.allegro.webapi.service',
    ]
    verbose = false
}
Option Type Description
wsdlUrl String WSDL address, could be URL or local file path
outputDir String Directory path where generated sources should be places, by default it's project build directory
namespaceToPackage Map<String, String> Dictionary that will translate namespaces from WSDL to taret class packages
verbose boolean Indicate if comments during the code generation process will be displayed

TODO

  • add support for multiple WSDLs (for now you can use this file)
  • add AXIS dependecies to compile scope
  • fix Gradle 2.0 issues

License

Code released under the Apache License v. 2

Versions

Version
0.0.1