Examples of Port


Examples of javax.wsdl.Port

    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

Examples of javax.wsdl.Port

        }
    }

    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

Examples of javax.wsdl.Port

    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

Examples of javax.wsdl.Port

    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

Examples of javax.wsdl.Port

        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

Examples of javax.wsdl.Port

        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

Examples of javax.wsdl.Port

     */
    private boolean usingAddressing(LogicalMessageContext context) {
        boolean ret = false;
        if (ContextUtils.isRequestor(context)) {
            if (!usingAddressingDetermined.get()) {
                Port port = clientTransport == null ? null : clientTransport.getPort();
                if (port != null) {
                    Iterator<?> portExts =
                        port.getExtensibilityElements().iterator();
                    Iterator<?> bindingExts =
                        port.getBinding().getExtensibilityElements().iterator();
                    ret = hasUsingAddressing(portExts)
                        || hasUsingAddressing(bindingExts);
                } else {
                    ret = ContextUtils.retrieveUsingAddressing(context);
                }
View Full Code Here

Examples of javax.wsdl.Port

        TestRouter router = new TestRouter(null, def, rt);
        assertNotNull("WSDL Model should be set for the router", router.getWSDLModel());
        assertNotNull("RouteType should be set for the router", router.getRoute());

        Service s = def.getService(destSrv);
        Port p = router.getDestinationPorts(s);
       
        assertNotNull("Should have a wsdl port", p);
        assertEquals(destPort, p.getName());
       
        s = def.getService(sourceSrv);
        p = router.getSourcePort(s);
       
        assertNotNull("Should have a wsdl port", p);
        assertEquals(sourcePort, p.getName());
       
        //Check For Same Binding
        assertEquals(isSameBinding,
                   router.testIsSameBindingId(p));       
    }
View Full Code Here

Examples of javax.wsdl.Port

        if (null == sourceService
            || null == destService) {
            return false;
        }
       
        Port sourcePort = sourceService.getPort(st.getPort());
        Port destPort = destService.getPort(dt.getPort());
       
        if (null == sourcePort
            || null == destPort) {
            return false;
        }
View Full Code Here

Examples of javax.wsdl.Port

        List<SourceType> stList = route.getSource();
       
        List<Source> metadata = createMetadata();
        for (SourceType st : stList) {
            //TODO Config For Pass Through
            Port p = sourcePortMap.get(st.getService());
            WsdlPortProvider portProvider = new WsdlPortProvider(p);
            String srcBindingId = (String) portProvider.getObject("bindingId");
            Object implementor = null;
            if (isSameBindingId(srcBindingId)) {
                //Pass Through Mode
                implementor = new StreamSourceMessageProvider(wsdlModel, route);
            } else {
                //CodeGenerated Servant
                InvocationHandler implHandler = new SEIImplHandler(wsdlModel, route);
                implementor = createSEIImplementor(p.getBinding().getPortType(), implHandler);
            }

            Endpoint sourceEP = Endpoint.create(srcBindingId, implementor);

            Map<String, Object> properties =
                createEndpointProperties(st.getService(), p.getName());           
            sourceEP.setMetadata(metadata);
            sourceEP.setProperties(properties);
            //TODO Set Executor on endpoint.
            epList.add(sourceEP);
        }
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.