The Web Services page lets you preconfigure the features that are used by the wscompile tool to compile a web service:
If you are implementing an existing WSDL file, the wscompile tool will create a service end-point interface and implementation class for your web service.
If you are creating a web service from scratch, the wscompile tool creates a WSDL file.
Features
If you are implementing an existing WSDL file, you can check or type one or more of the following wscompile tool features:
| Feature | Effect on Web Service |
|---|---|
| datahandleronly | Maps attachments to the DataHandler type. |
| donotoverride | No regeneration of classes that already exist on the classpath. |
| donotunwrap | Disables unwrapping of document/literal wrapper elements in WSI mode (default). |
| explicitcontext | Turns on explicit service context mapping. |
| jaxbenumtype | Maps anonymous enumeration to its base type. |
| nodatabinding | Turns off data binding for literal encoding. |
| noencodedtypes | Turns off encoding type information. |
| nomultirefs | Turns off support for multiple references. |
| norpcstructures | No generation of RPC structures (-import only). |
| novalidation | Turns off full validation of imported WSDL documents. |
| resolveidref | Resolve xsd:IDREF. |
| searchschema | Searches schema aggressively for types. |
| serializeinterfaces | Turns on direct serialization of interface types. |
| strict | Generates code strictly compliant with the JAX-RPC Specification. |
| unwrap | Enables unwrapping of document/literal wrapper elements in WSI mode. |
| wsi | Checks for compliance with the WSI-Basic Profile, which is a specification for improved interoperability. For example, the WS-I Basic Profile prohibits the use of rpc/encoded. Therefore, if you set the wsi feature, a warning will be generated when you build a web service that uses a WSDL file that uses rpc/encoded. |
If you want to compile a document-style web service, you can check or type one or more of the following wscompile tool features:
If you want to compile a RPC-style web service, you can check or type one or more of the following wscompile tool features:
| Feature | Elenent | Required? |
|---|---|---|
| documentliteral | Not applicable | - |
| donotoverride | No regeneration of classes that already exist on the classpath. | No |
| noencodedtypes | Encoding rules are defined in the XML Schema.
By default, RPC-style web services have their encoding rules defined in the SOAP 1.1 Specification. With this feature, it uses the XML Schema defined in the types element for encoding purposes instead. |
No |
| nomultirefs | Turns off support for multiple references. | No |
| rpcliteral | By default, all web services that have at least one operation are compiled as RPC-style web services. | Yes |
| serializeinterfaces | Turns on direct serialization of interface types. | No |
| strict | Generates code strictly compliant with the JAX-RPC Specification. | No |
| useonewayoperations | Methods with void return types are mapped as one-way operations. | No |
If you want to compile a document-style web service, you can check or type one or more of the following wscompile tool features.
Related Topics
Developing Applications with NetBeans IDE,
| Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |