Home

Awesome

MAX-WS

CI Status npm Release Issues

Mobile API for XML Web Services (MAX-WS).

WSDL to IOS Objective-C and Android Java Code Generator based on JAX-WS Wsimport.

##Note MAX-WS is initially a fork of mwsc.

MWSC (and related projects: mxjc, nano & pico) has been developed by bulldog2011 but stayed as is from 2013. As it is very well designed and implemented, I decided to fork and upgrade it.

Feature Highlight

  1. Standard based : based on Oracle JAX-WS 2.1 Wsimport, recognize most standard WSDL and XML Schema components.
  2. Objective-C Pico Binding Support : auto-generate PicoKit for IOS strongly typed proxy from WSDL.
  3. Android Nano Binding Support : auto-generate NanoKit for Android srongly typed proxy from WSDL.
  4. Doc Auto Generation : auto-generate code comments from WSDL and XML Schema annotations.
  5. JAX-WS/JAXB Binding Customization : support binding customization in case the code generated by defaut binding does not meet real needs.

The Big Picture

CodeGen Arch

How to Use

Download zip package from repository mentioned in version history below, latest stable release is 0.7.0, then extract the zip file and run mwsc script in command line:

Usage: max-ws [options] <WSDL_URI>

where [options] include:
  -nano                     target Nano for Android as code generation target(default)
  -privateField             generate private fields, accessed by public accessors, only for nano binding
  -pico                     target Pico for IOS as code generation target
  -prefix <prefix>          add prefix to the target classes, only for pico binding
                            (recommended to avoid possible name conflict)
  -b <path>                 specify jaxws/jaxb binding files or additional schemas
                            (Each <path> must have its own -b)
  -B<jaxbOption>            Pass this option to JAXB schema compiler
  -d <directory>            specify where to place generated source files
  -help                     display help
  -httpproxy:<host>:<port>  specify a HTTP proxy server (port defaults to 8080)
  -p <pkg>                  specifies the target package
  -quiet                    suppress mswc output
  -verbose                  output messages about what the compiler is doing
  -version                  print JAX-WS version information


Examples:
  max-ws -pico -prefix StockWS_ -d generated http://example.org/stock?wsdl
  max-ws -nano -d generated http://example.org/stock?wsdl

Version History

0.7.0 - April 9, 2015 : repository

0.6.0 — April 14, 2013 : repository

0.5.0 — March 25, 2013 : repository

Docs

  1. Wsdl Driven Development on iOS - the Big Picture
  2. Wsdl Driven Development on Android - the Big Picture

FAQ

Link to faq on wiki

Current Limitation

  1. Only Document/Literal style WSDL is support, RPC style wsdl is not supported
  2. Only single target namespace is supported(please specify target package if your wsdl contains multiple namespaces)
  3. Xsd nest anonymous type is only experimentally supported and is not recommended to use.
  4. Xsd:choice is not supported and will be ignored if presents
  5. Xsd any attribute is not supported

License

MAX-WS is available under the MIT license. See the LICENSE file for more info.