Package com.ibm.wsdl.extensions.soap

Examples of com.ibm.wsdl.extensions.soap.SOAPAddressImpl


                service.getPorts().values().clear();

                for (int i = 0; i < serviceURL.length; i++) {
                    String url = serviceURL[i];
                    Port port = new PortImpl();
                    SOAPAddress soapAddress = new SOAPAddressImpl();

                    soapAddress.setElementType(SOAPConstants.Q_ELEM_SOAP_ADDRESS);
                    soapAddress.setLocationURI(url);
                    port.addExtensibilityElement(soapAddress);
                    port.setName(getName() + "Port" + i);
                    port.setBinding(binding);
                    service.addPort(port);
                }
View Full Code Here


        port.setBinding(binding);

        // Probably should use the end of the location Url
        port.setName(getServicePortName());

        SOAPAddress addr = new SOAPAddressImpl();
        addr.setLocationURI(locationUrl);

        port.addExtensibilityElement(addr);

        service.addPort(port);
    }
View Full Code Here

                for (Iterator iterator1 = ports.iterator(); iterator1.hasNext();) {
                    Port port = (Port) iterator1.next();

                    service.setQName(new QName(this.getName()));

                    SOAPAddress soapAddress = new SOAPAddressImpl();

                    soapAddress.setElementType(SOAPConstants.Q_ELEM_SOAP_ADDRESS);
                    soapAddress.setLocationURI(serviceURL);
                    port.getExtensibilityElements().clear();
                    port.addExtensibilityElement(soapAddress);
                }
            }
View Full Code Here

        Port port = def.createPort();
        port.setBinding(binding);
        port.setName(this.name + "Port");

        if (locationURI != null) {
            SOAPAddress soapAddress = new SOAPAddressImpl();
            soapAddress.setLocationURI(locationURI);
            port.addExtensibilityElement(soapAddress);
        }

        Service service = def.createService();
        service.setQName(new QName(TNS, this.name));
View Full Code Here

                PortImpl port = (PortImpl) def.createPort();
                port.setName(wsdlQName.getLocalPart() + WSDL_PORT_SUFFIX);
                port.setBinding(binding);
                service.addPort(port);

                SOAPAddressImpl soapAddress = new SOAPAddressImpl();
                soapAddress.setLocationURI(serviceLocation);
                port.addExtensibilityElement(soapAddress);
                def.addService(service);
            }

            if (!abstractWSDL) {
View Full Code Here

        String transportURI = "http://foo/transport";
        String location = "http://localhost/service";

        ServiceInfo si = new ServiceInfo();
        EndpointInfo ei = new EndpointInfo(si, wsdlSoapNs);
        SOAPAddress add = new SOAPAddressImpl();
        add.setLocationURI(location);
        ei.addExtensor(add);

        SoapBindingInfo bi = new SoapBindingInfo(si, "", Soap11.getInstance());
        bi.setTransportURI(transportURI);
        ei.setBinding(bi);
View Full Code Here

                        this.getServiceUnit().getComponent().getComponentContext().getEndpointDescriptor(serviceEndpoint);
                    definition = getBus().getExtension(WSDLManager.class)
                        .getDefinition((Element)description.getFirstChild());
                    List address = definition.getService(getTargetService()).getPort(getTargetEndpoint()).getExtensibilityElements();
                    if (address == null || address.size() == 0) {
                        SOAPAddressImpl soapAddress = new SOAPAddressImpl();
                        //specify default transport if there is no one in the internal wsdl
                        soapAddress.setLocationURI("http://localhost");
                        definition.getService(getTargetService()).getPort(getTargetEndpoint()).addExtensibilityElement(soapAddress);
                    }
                    List binding = definition.getService(getTargetService()).getPort(
                            getTargetEndpoint()).getBinding().getExtensibilityElements();
                    if (binding == null || binding.size() == 0) {
View Full Code Here

            createSoap11Extensors(ei, bi);
        }
    }

    private void createSoap11Extensors(EndpointInfo ei, SoapBindingInfo bi) {
        SOAPAddress address = new SOAPAddressImpl();
        address.setLocationURI(ei.getAddress());

        ei.addExtensor(address);

        SOAPBindingImpl sbind = new SOAPBindingImpl();
        sbind.setStyle(bi.getStyle());
View Full Code Here

        String transportURI = "http://foo/transport";
        String location = "http://localhost/service";

        ServiceInfo si = new ServiceInfo();
        EndpointInfo ei = new EndpointInfo(si, wsdlSoapNs);
        SOAPAddress add = new SOAPAddressImpl();
        add.setLocationURI(location);
        ei.addExtensor(add);

        SoapBindingInfo bi = new SoapBindingInfo(si, "", Soap11.getInstance());
        bi.setTransportURI(transportURI);
        ei.setBinding(bi);
View Full Code Here

        Port port = def.createPort();
        port.setBinding(binding);
        port.setName(this.name + "Port");

        if (locationURI != null) {
            SOAPAddress soapAddress = new SOAPAddressImpl();
            soapAddress.setLocationURI(locationURI);
            port.addExtensibilityElement(soapAddress);
        }

        Service service = def.createService();
        service.setQName(new QName(TNS, this.name));
View Full Code Here

TOP

Related Classes of com.ibm.wsdl.extensions.soap.SOAPAddressImpl

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.