Package javax.wsdl

Examples of javax.wsdl.Port


        Iterator ite = serviceMap.values().iterator();
        while (ite.hasNext()) {
            Service service = (Service)ite.next();
            Iterator portIte = service.getPorts().values().iterator();
            while (portIte.hasNext()) {
                Port port = (Port)portIte.next();
                Binding binding = port.getBinding();
                if (!bindingMap.containsKey(binding.getQName())) {
                    Node errNode = ErrNodeLocator.getNode(document, WSDLConstants.QNAME_SERVICE, service
                        .getQName().getLocalPart(), port.getName());
                    schemaWSDLValidator.addError(errNode, " port : " + port.getName()
                                                          + " reference binding is not defined");
                    isValid = false;
                }
            }
        }
View Full Code Here


                portConfiguration = cb.buildConfiguration(PORT_CONFIGURATION_URI, id,
                                                          bus.getConfiguration());
            }

            // add the additional provider
            Port port = null;
            try  {
                port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), ref);
            } catch (WSDLException ex) {
                throw new WebServiceException("Could not get port from wsdl", ex);
            }
View Full Code Here

        }
       
    }
   
    private String getEndpointPortName() {
        Port port;
        String portName = null;
        try {
       
            port = EndpointReferenceUtils.getPort(endPoint.getBus().getWSDLManager(),
                                                  endPoint.getEndpointReferenceType());
            if (null != port) {
                portName = port.getName();
            } else {
                portName = "";
            }
       
        } catch (WSDLException e) {
View Full Code Here

            portCfg = cb.buildConfiguration(PORT_CONFIGURATION_URI, id, bus.getConfiguration());
        }

        // add the additional provider

        Port port = null;
        try  {
            port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), ref);
        } catch (WSDLException ex) {
            throw new WebServiceException("Could not get port from wsdl", ex);
        }
View Full Code Here

    private Configuration createConfiguration(EndpointReferenceType ref) {
        Configuration busConfiguration = bus.getConfiguration();
        QName serviceName = EndpointReferenceUtils.getServiceName(ref);
        Configuration endpointConfiguration = busConfiguration
            .getChild(ENDPOINT_CONFIGURATION_URI, serviceName.toString());
        Port port = null;
        try {
            port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), ref);           
        } catch (WSDLException ex) {
            // ignore
        }
View Full Code Here

        }
    }

    private BindingOperation getBindingOperation(String operationName) throws WSDLException {
        WSDLHelper helper = new WSDLHelper();
        Port port = EndpointReferenceUtils.getPort(this.bus.getWSDLManager(), this.endpointRef);
        return helper.getBindingOperation(port.getBinding(),
                                          operationName);
    }
View Full Code Here

    private void initOpMap() throws WSDLException {
        Definition def = EndpointReferenceUtils.getWSDLDefinition(bus.getWSDLManager(), reference);
        if (def == null) {
            return;
        }
        Port port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), reference);
        List ops = port.getBinding().getBindingOperations();
        Iterator opIt = ops.iterator();
        while (opIt.hasNext()) {
            BindingOperation op = (BindingOperation)opIt.next();
            BindingInput bindingInput = op.getBindingInput();
            List elements = bindingInput.getExtensibilityElements();
View Full Code Here

    public EndpointReferenceType getEndpointReferenceType() {
        return reference;
    }

    private String getBindingIdFromWSDL() {
        Port port = null;
        try {
            port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), reference);
        } catch (WSDLException we) {
            return null;
        }
        return ((ExtensibilityElement)port.getExtensibilityElements().get(0)).
            getElementType().getNamespaceURI();
    }
View Full Code Here

        return EndpointReferenceUtils.getServiceName(
             reference).toString();
    }
   
    protected String findPortName(EndpointReferenceType reference) {     
        Port port = null;
        String name = " ";
        try {
            port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), reference);
            name = port.getName();
        } catch (WSDLException e) {
            // wsdlexception
        }       
        return name;       
    }
View Full Code Here

        if ("GET".equals(req.getMethod())) {
            try {
                Definition def = EndpointReferenceUtils.getWSDLDefinition(bus.getWSDLManager(), reference);
               
                resp.addHeader("Content-Type", "text/xml");
                Port port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), reference);
                List<?> exts = port.getExtensibilityElements();
                if (exts.size() > 0) {
                    ExtensibilityElement el = (ExtensibilityElement)exts.get(0);
                    if (el instanceof SOAPAddress) {
                        SOAPAddress add = (SOAPAddress)el;
                        add.setLocationURI(req.getRequestURL().toString());
View Full Code Here

TOP

Related Classes of javax.wsdl.Port

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.