You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-dev@ws.apache.org by Owen D Burroughs <OW...@uk.ibm.com> on 2003/03/06 17:17:33 UTC

Update: automatic mapping of types support

Hi all,

An update to WSIFServiceFactory has been committed which allows features to
be set - see the WSIFServiceFactory source/javadoc for more info.

As part of this update, I have removed the recently added
automaticallyMapTypes methods on WSIFServiceFactory - it makes no sense to
deprecate them since this is all happening in-between releases and the
setFeature support provides better flexibility for the future. Setting
automatic mapping of types on or off is now achieved via setting a feature
on the factory. Here's how:
. . .
WSIFServiceFactory factory  = WSIFServiceFactory.newInstance();
factory.setFeature(WSIFConstants.WSIF_FEATURE_AUTO_MAP_TYPES, new Boolean(
true));
. . .

Other features which can be set are:
- The name of a WSIFMapper implementation to be used for automatic mapping
of types
- The name of a WSIFMappingConvention implementation to be used for
automatic mapping of types
- A username and password to be used if the WSDL file is behind an
authenticating proxy
- Caching of services (cachingOn method is now deprecated)

Feature names are stored as constants in WSIFConstants and descriptions of
them can be found in the source/javadoc for that class.

Owen