FileDocCategorySizeDatePackage
MetadataResolverImpl.javaAPI DocExample3057Tue May 29 16:56:34 BST 2007com.sun.xml.ws.mex.client

MetadataResolverImpl

public class MetadataResolverImpl extends com.sun.xml.ws.api.wsdl.parser.MetaDataResolver
Plugin to wsimport for mex/ws-transfer requests.

Fields Summary
MetadataClient
mClient
Constructors Summary
protected MetadataResolverImpl()

        mClient = new MetadataClient();
    
Methods Summary
public com.sun.xml.ws.api.wsdl.parser.ServiceDescriptorresolve(java.net.URI location)
This method is called by JAX-WS code to retrieve metadata. The contract is that, if there are problems trying to get the metadata with mex, this method returns null and the JAX-WS code can try retrieving it another way (for instance, with a ?wsdl http GET call).

        final Metadata mData = mClient.retrieveMetadata(location.toString());
        if (mData == null) {
            return null;
        }
        return new ServiceDescriptorImpl(mData);