Package javax.wsdl.extensions

Examples of javax.wsdl.extensions.ExtensionRegistry.createExtension()


        port.setName(this.service.getName() + "HttpSoapPort");
        port.setBinding(this.httpSoapBinding);
        ExtensionRegistry extensionRegistry = null;
        try {
            extensionRegistry = WSDLFactory.newInstance().newPopulatedExtensionRegistry();
            SOAPAddress soapAddress = (SOAPAddress) extensionRegistry.createExtension(
                    Port.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "address"));
            soapAddress.setLocationURI("http://localhost:8080/axis2/services/" + this.service.getName());
            port.addExtensibilityElement(soapAddress);
        } catch (WSDLException e) {
            throw new SchemaGenerationException("Can not crete a wsdl factory");
View Full Code Here


        bindingOperation.setBindingOutput(bindingOutput);

        ExtensionRegistry extensionRegistry = null;
        try {
            extensionRegistry = WSDLFactory.newInstance().newPopulatedExtensionRegistry();
            SOAPOperation soapOperation = (SOAPOperation) extensionRegistry.createExtension(
                    BindingOperation.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "operation"));
            soapOperation.setSoapActionURI("urn:" + operation.getName());
            soapOperation.setStyle("document");
            bindingOperation.addExtensibilityElement(soapOperation);
View Full Code Here

                    BindingOperation.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "operation"));
            soapOperation.setSoapActionURI("urn:" + operation.getName());
            soapOperation.setStyle("document");
            bindingOperation.addExtensibilityElement(soapOperation);

            SOAPBody inputSoapBody = (SOAPBody) extensionRegistry.createExtension(
                    BindingInput.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "body"));
            inputSoapBody.setUse("literal");
            bindingInput.addExtensibilityElement(inputSoapBody);

            SOAPBody outputSoapBody = (SOAPBody) extensionRegistry.createExtension(
View Full Code Here

            SOAPBody inputSoapBody = (SOAPBody) extensionRegistry.createExtension(
                    BindingInput.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "body"));
            inputSoapBody.setUse("literal");
            bindingInput.addExtensibilityElement(inputSoapBody);

            SOAPBody outputSoapBody = (SOAPBody) extensionRegistry.createExtension(
                    BindingOutput.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "body"));
            outputSoapBody.setUse("literal");
            bindingOutput.addExtensibilityElement(outputSoapBody);

            // adding fault messages
View Full Code Here

                faultName = faultName.substring(faultName.lastIndexOf(".") + 1);
                bindingFault = definition.createBindingFault();
                bindingFault.setName("fault" + faultName);
                bindingOperation.addBindingFault(bindingFault);

                SOAPFault soapFault = (SOAPFault) extensionRegistry.createExtension(
                        BindingFault.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "fault"));
                soapFault.setUse("literal");
                soapFault.setName("fault" + faultName);
                bindingFault.addExtensibilityElement(soapFault);
            }
View Full Code Here

   
    private Schema getSchemaImplementation(Definition def) {
        ExtensionRegistry reg = def.getExtensionRegistry();
        ExtensibilityElement extension;
        try {
            extension = reg.createExtension(javax.wsdl.Types.class, WSDLConstants.QNAME_SCHEMA);
        } catch (WSDLException e) {
            throw new RuntimeException("Problem creating schema implementation", e);
        }
        //  try to cast the resulting extension:
        try {
View Full Code Here

        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

        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

   
    private Schema getSchemaImplementation(Definition def) {
        ExtensionRegistry reg = def.getExtensionRegistry();
        ExtensibilityElement extension;
        try {
            extension = reg.createExtension(javax.wsdl.Types.class, WSDLConstants.QNAME_SCHEMA);
        } catch (WSDLException e) {
            throw new RuntimeException("Problem creating schema implementation", e);
        }
        //  try to cast the resulting extension:
        try {
View Full Code Here

            JMSAddressSerializer jmsAddressSerializer = new JMSAddressSerializer();
            try {
                extReg.registerSerializer(JMSAddress.class, ToolConstants.JMS_ADDRESS, jmsAddressSerializer);
                extReg
                    .registerDeserializer(JMSAddress.class, ToolConstants.JMS_ADDRESS, jmsAddressSerializer);
                jmsAddress = (JMSAddress)extReg.createExtension(Port.class, ToolConstants.JMS_ADDRESS);
                if (env.optionSet(ToolConstants.JMS_ADDR_DEST_STYLE)) {
                    jmsAddress.setDestinationStyle((String)env.get(ToolConstants.JMS_ADDR_DEST_STYLE));
                }
                if (env.optionSet(ToolConstants.JMS_ADDR_INIT_CTX)) {
                    jmsAddress.setInitialContextFactory((String)env.get(ToolConstants.JMS_ADDR_INIT_CTX));
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.