Package com.sun.xml.ws.mex.client.schema

Examples of com.sun.xml.ws.mex.client.schema.Metadata


    protected static QName[]  doMexRequest(final String wsdlLocation, final String stsURI) throws WSTrustException {

        final QName[] serviceInfo = new QName[2];
        final MetadataClient mexClient = new MetadataClient();

        final Metadata metadata = mexClient.retrieveMetadata(wsdlLocation);

        //this method gives the names of services and the corresponding port details
        if(metadata != null){
            final List<PortInfo> ports = mexClient.getServiceInformation(metadata);
View Full Code Here


     * 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).
     */
    public ServiceDescriptor resolve(final URI location) {
        final Metadata mData = mClient.retrieveMetadata(location.toString());
        if (mData == null) {
            return null;
        }
        return new ServiceDescriptorImpl(mData);
    }
View Full Code Here

            if (section.getDialect().equals(WSDL_DIALECT)) {
                if (section.getAny() != null) {
                    getServiceInformationFromNode(portInfos, section.getAny());
                }
                if (section.getMetadataReference() != null) {
                    final Metadata newMetadata =
                        retrieveMetadata(section.getMetadataReference());
                    List<PortInfo> newPortInfos = getServiceInformation(newMetadata);
                    portInfos.addAll(newPortInfos);
                }
                if (section.getLocation() != null) {
                    final Metadata newMetadata =
                        retrieveMetadata(section.getLocation());
                    List<PortInfo> newPortInfos = getServiceInformation(newMetadata);
                    portInfos.addAll(newPortInfos);
                }
            }
View Full Code Here

            state = reader.next();
        } while (state != reader.START_ELEMENT ||
            !reader.getLocalName().equals("Metadata"));
       
        final Unmarshaller uMarhaller = jaxbContext.createUnmarshaller();
        final Metadata mData = (Metadata) uMarhaller.unmarshal(reader);
        cleanData(mData);
        return mData;
    }
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.mex.client.schema.Metadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.