Examples of ExtensionRegistry


Examples of javax.wsdl.extensions.ExtensionRegistry

    }

    private void createSoapExtensors(EndpointInfo ei, SoapBindingInfo bi, boolean isSoap12) {
        try {
            // We need to populate the soap extensibilityelement proxy for soap11 and soap12
            ExtensionRegistry extensionRegistry = WSDLFactory.newInstance().newPopulatedExtensionRegistry();
            SoapAddressPlugin addresser = new SoapAddressPlugin();
            addresser.setExtensionRegistry(extensionRegistry);
                //SoapAddress soapAddress = SOAPBindingUtil.createSoapAddress(extensionRegistry, isSoap12);
            String address = ei.getAddress();
            if (address == null) {
View Full Code Here

Examples of javax.wsdl.extensions.ExtensionRegistry

    private void createSoapBinding(final SoapBindingInfo bi) throws WSDLException {
        boolean isSoap12 = bi.getSoapVersion() instanceof Soap12;
        Bus bs = getBus();
        WSDLManager m = bs.getExtension(WSDLManager.class);
        ExtensionRegistry extensionRegistry = m.getExtensionRegistry();

        SoapBinding soapBinding = SOAPBindingUtil.createSoapBinding(extensionRegistry, isSoap12);
        soapBinding.setStyle(bi.getStyle());
        soapBinding.setTransportURI(bi.getTransportURI());
        bi.addExtensor(soapBinding);
View Full Code Here

Examples of javax.wsdl.extensions.ExtensionRegistry

    private ExtensionRegistry getExtentionRegistry() {

        // Use IBM's implementation as a base registry. They have implemented
        // extensibility objects for SOAP,HTTP,MIME and we should not
        // loose these functions.
        ExtensionRegistry er = new com.ibm.wsdl.extensions.PopulatedExtensionRegistry();

        BPELPropertySerializer bpelPropSerializer = new BPELPropertySerializer();
        BPELPropertyAliasSerializer bpelPropAliasSerializer = new BPELPropertyAliasSerializer();
        BPEActionSerializer bpeActionSerializer = new BPEActionSerializer();
        BPEInputSerializer bpeInputSerializer = new BPEInputSerializer();
        BPEOutputSerializer bpeOutputSerializer = new BPEOutputSerializer();
        BPEFaultSerializer bpeFaultSerializer = new BPEFaultSerializer();
        BPEVariableMapSerializer bpeVariableSerializer = new BPEVariableMapSerializer();

        // Register the BPEL extension points
        er.registerSerializer(Definition.class, ExtentionConstants.Q_ELEM_BPEL_PROPERTY, bpelPropSerializer);
        er.registerDeserializer(Definition.class, ExtentionConstants.Q_ELEM_BPEL_PROPERTY, bpelPropSerializer);
        er.mapExtensionTypes(Definition.class, ExtentionConstants.Q_ELEM_BPEL_PROPERTY, BPELProperty.class);
        er.registerSerializer(Definition.class, ExtentionConstants.Q_ELEM_BPEL_PROPERTY_ALIAS, bpelPropAliasSerializer);
        er.registerDeserializer(Definition.class, ExtentionConstants.Q_ELEM_BPEL_PROPERTY_ALIAS,
                bpelPropAliasSerializer);
        er.mapExtensionTypes(Definition.class, ExtentionConstants.Q_ELEM_BPEL_PROPERTY_ALIAS, BPELPropertyAlias.class);

        // register the BPE extension points
        er.registerSerializer(BindingOperation.class, ExtentionConstants.Q_ELEM_BPE_ACTION, bpeActionSerializer);
        er.registerDeserializer(BindingOperation.class, ExtentionConstants.Q_ELEM_BPE_ACTION, bpeActionSerializer);
        er.mapExtensionTypes(BindingOperation.class, ExtentionConstants.Q_ELEM_BPE_ACTION, BPEAction.class);
        er.registerSerializer(BindingInput.class, ExtentionConstants.Q_ELEM_BPE_INPUT, bpeInputSerializer);
        er.registerDeserializer(BindingInput.class, ExtentionConstants.Q_ELEM_BPE_INPUT, bpeInputSerializer);
        er.mapExtensionTypes(BindingInput.class, ExtentionConstants.Q_ELEM_BPE_INPUT, BPEInput.class);
        er.registerSerializer(BindingOutput.class, ExtentionConstants.Q_ELEM_BPE_OUTPUT, bpeOutputSerializer);
        er.registerDeserializer(BindingOutput.class, ExtentionConstants.Q_ELEM_BPE_OUTPUT, bpeOutputSerializer);
        er.mapExtensionTypes(BindingOutput.class, ExtentionConstants.Q_ELEM_BPE_OUTPUT, BPEOutput.class);

        er.registerSerializer(BindingFault.class, ExtentionConstants.Q_ELEM_BPE_FAULT, bpeFaultSerializer);
        er.registerDeserializer(BindingFault.class, ExtentionConstants.Q_ELEM_BPE_FAULT, bpeFaultSerializer);
        er.mapExtensionTypes(BindingFault.class, ExtentionConstants.Q_ELEM_BPE_FAULT, BPEFault.class);

        er.registerSerializer(Definition.class, ExtentionConstants.Q_ELEM_BPE_VAR, bpeVariableSerializer);
        er.registerDeserializer(Definition.class, ExtentionConstants.Q_ELEM_BPE_VAR, bpeVariableSerializer);
        er.mapExtensionTypes(Definition.class, ExtentionConstants.Q_ELEM_BPE_VAR, BPEVariableMap.class);

        return er;
    }
View Full Code Here

Examples of javax.wsdl.extensions.ExtensionRegistry

    }   

    private void buildWsdlExtensibilities(BindingInfo bindingInfo) {
        Addressing addressing = getAddressing();
        if (addressing != null) {           
            ExtensionRegistry extensionRegistry = getBus().getExtension(WSDLManager.class)
            .getExtensionRegistry();           
            try {
                ExtensibilityElement el = extensionRegistry.createExtension(javax.wsdl.Binding.class,
                                                                            JAXWSAConstants.
                                                                            WSAW_USINGADDRESSING_QNAME);
                el.setRequired(addressing.required());
                bindingInfo.addExtensor(el);
               
View Full Code Here

Examples of javax.wsdl.extensions.ExtensionRegistry

   
    protected abstract ServiceEndpoint createExternalEndpoint();

    protected WSDLReader createWsdlReader() throws WSDLException {
        WSDLFactory factory = WSDLFactory.newInstance();
        ExtensionRegistry registry = factory.newPopulatedExtensionRegistry();
        registerExtensions(registry);
        WSDLReader reader = factory.newWSDLReader();
        reader.setFeature(Constants.FEATURE_VERBOSE, false);
        reader.setExtensionRegistry(registry);
        return reader;
View Full Code Here

Examples of javax.wsdl.extensions.ExtensionRegistry

        return reader;
    }
   
    protected WSDLWriter createWsdlWriter() throws WSDLException {
        WSDLFactory factory = WSDLFactory.newInstance();
        ExtensionRegistry registry = factory.newPopulatedExtensionRegistry();
        registerExtensions(registry);
        WSDLWriter writer = factory.newWSDLWriter();
        //writer.setExtensionRegistry(registry);
        return writer;
    }
View Full Code Here

Examples of javax.wsdl.extensions.ExtensionRegistry

        }
    }   
   
    protected WSDLReader createWsdlReader() throws WSDLException {
        WSDLFactory factory = WSDLFactory.newInstance();
        ExtensionRegistry registry = factory.newPopulatedExtensionRegistry();
        registerExtensions(registry);
        WSDLReader reader = factory.newWSDLReader();
        reader.setFeature(Constants.FEATURE_VERBOSE, false);
        reader.setExtensionRegistry(registry);
        return reader;
View Full Code Here

Examples of org.apache.woden.wsdl20.extensions.ExtensionRegistry

                        new Object[] {elementType, parentType.getName()},
                        ErrorReporter.SEVERITY_ERROR);
                return null;
            }

            ExtensionRegistry extReg = fWsdlContext.extensionRegistry;

            ExtensionDeserializer extDS = extReg.queryDeserializer(parentType, elementType);

            return extDS.unmarshall(parentType, parent, elementType, el, desc, extReg);
        }
        catch (WSDLException e)
        {
View Full Code Here

Examples of org.apache.ws.commons.schema.extensions.ExtensionRegistry

     */
    public void init() {
       
        stack = new Stack<SchemaKey>();
        unresolvedTypes = new HashMap<QName, List<TypeReceiver>>();
        extReg = new ExtensionRegistry();
        knownNamespaceMap = new HashMap<String, XmlSchema>();
        schemaResolver = new DefaultURIResolver();
        schemas = new HashMap<SchemaKey, XmlSchema>();
        // LAST, since the ctor for XmlSchema will reach back into here.
        xsd = new XmlSchema(XmlSchema.SCHEMA_NS, this);
View Full Code Here

Examples of org.jboss.as.controller.extension.ExtensionRegistry

        this.serverProxies = serverProxies;
        this.prepareStepHandler = prepareStepHandler;
        this.vaultReader = vaultReader;
        this.ignoredRegistry = ignoredRegistry;
        this.bootstrapListener = bootstrapListener;
        this.extensionRegistry = new ExtensionRegistry(ProcessType.HOST_CONTROLLER, runningModeControl);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.