WSDL to IOS Objective-C and Android Java Code Generator based on JAX-WS Wsimport
- Standard based : based on Oracle JAX-WS 2.1 Wsimport, recognize most standard WSDL and XML Schema components.
- Objective-C Pico Binding Support : auto-generate Pico for IOS strongly typed proxy from WSDL.
- Android Nano Binding Support : auto-generate Nano for Android srongly typed proxy from WSDL.
- Doc Auto Generation : auto-generate code comments from WSDL and XML Schema annotations.
- JAX-WS/JAXB Binding Customization : support binding customization in case the code generated by defaut binding does not meet real needs.
Download zip package from repository mentioned in version history below, latest stable release is 0.6.0, then extract the zip file and run mwsc script in command line:
Usage: mwsc [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:
mwsc -pico -prefix StockWS_ -d generated http://example.org/stock?wsdl
mwsc -nano -d generated http://example.org/stock?wsdl
- Enhancement: support Ant build.
- Feature : GUI for mwsc code generator
- Feature : mwsc code generator as a hosted service
0.6.0 — April 14, 2013 : repository
- This version is compatible with Nano 0.7.0 and Pico 0.5.0
- Feature: support Nano Web Service runtime for Android
0.5.0 — March 25, 2013 : repository
- Initial version supporting Pico Web Service runtime for iOS
- This version is compatible with Pico 0.5.0
- Wsdl Driven Development on iOS - the Big Picture
- Wsdl Driven Development on Android - the Big Picture
- Only Document/Literal style WSDL is support, RPC style wsdl is not supported
- Only single target namespace is supported(please specify target package if your wsdl contains multiple namespaces)
- Xsd nest anonymous type is only experimentally supported and is not recommended to use.
- Xsd:choice is not supported and will be ignored if presents
- Xsd any attribute is not supported
- The Objective-C classes generated does not support ARC(Automatic Reference Counting) yet.
(The MIT License)
Copyright (c) 2013 Leansoft Technology 51startup@sina.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.