Sun Microsystems J2ME manual Example, Command Supported Features -f for wscompile

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 126
Image 126

Note – Exactly one -genoption must be specified. The -foption requires a comma-separated list of features.

TABLE 15 lists the features (delimited by commas) that can follow the -foption. The wscompile tool reads a WSDL file, compiled service endpoint interface (SEI), or model file as input. The Type of File column indicates which of these files can be used with a particular feature.

TABLE 15 Command Supported Features (-f) for wscompile

Option

Description

Type of File

 

 

 

explicitcontext

turn on explicit service context mapping

WSDL

nodatabinding

turn off data binding for literal encoding

WSDL

noencodedtypes

turn off encoding type information

WSDL, SEI, model

nomultirefs

turn off support for multiple references

WSDL, SEI, model

novalidation

turn off full validation of imported

WSDL

 

WSDL documents

 

searchschema

search schema aggressively for subtypes

WSDL

serializeinterface

turn on direct serialization of interface

WSDL, SEI, model

s

types

 

wsi

enable WSI-Basic Profile features

 

 

(default)

 

resolveidref

Resolve xsd:IDREF

 

nounwrap

No unwrap.

 

 

 

 

B.6.1.1 Example

wscompile -gen -d generated config.xml

wscompile -gen -f:nounwrap -O -cldc1.1 -d generated config.xml

114 J2ME Wireless Toolkit User’s Guide • October 2004

Page 126
Image 126
Sun Microsystems J2ME manual Example, Command Supported Features -f for wscompile