Package org.apache.cxf.service.model

Examples of org.apache.cxf.service.model.ServiceInfo


            Map<String, Element> schemas = (Map<String, Element>)serviceList.get(0)
                .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_ELEMENT_LIST);
            if (schemas == null) {
                schemas = new java.util.HashMap<String, Element>();
                ServiceInfo serviceInfo = serviceList.get(0);
                for (SchemaInfo schemaInfo : serviceInfo.getSchemas()) {
                    if (schemaInfo.getElement() != null && schemaInfo.getSystemId() == null) {
                        String sysId = schemaInfo.getElement().getAttribute("targetNamespce");
                        if (sysId == null) {
                            sysId = serviceInfo.getTargetNamespace();
                        }
                        schemas.put(sysId, schemaInfo.getElement());
                    }
                    if (schemaInfo.getElement() != null && schemaInfo.getSystemId() != null) {
                        schemas.put(schemaInfo.getSystemId(), schemaInfo.getElement());
View Full Code Here


        Map<String, Element> schemas = (Map<String, Element>)serviceList.get(0)
            .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_ELEMENT_LIST);
        if (schemas == null) {
            schemas = new java.util.HashMap<String, Element>();
            ServiceInfo serviceInfo = serviceList.get(0);
            for (SchemaInfo schemaInfo : serviceInfo.getSchemas()) {
                if (schemaInfo.getElement() != null && schemaInfo.getSystemId() == null) {
                    String sysId = schemaInfo.getElement().getAttribute("targetNamespce");
                    if (sysId == null) {
                        sysId = serviceInfo.getTargetNamespace();
                    }
                    if (sysId != null) {
                        schemas.put(sysId, schemaInfo.getElement());
                    }
                }
View Full Code Here

        
        JAXBDataBinding databinding = new JAXBDataBinding();
        databinding.setContext(context);
        svc.setDataBinding(databinding);

        ServiceInfo svcfo = client.getEndpoint().getEndpointInfo().getService();

        // Setup the new classloader!
        Thread.currentThread().setContextClassLoader(cl);

        TypeClassInitializer visitor = new TypeClassInitializer(svcfo, intermediateModel);
View Full Code Here

        CorbaConduit conduit = setupCorbaConduit(false);           
        CorbaMessage message = control.createMock(CorbaMessage.class);
        Exchange exchange = control.createMock(Exchange.class);
        EasyMock.expect(message.getExchange());
        EasyMock.expectLastCall().andReturn(exchange);       
        ServiceInfo service = control.createMock(ServiceInfo.class);
        EasyMock.expect(exchange.get(ServiceInfo.class)).andReturn(service);
        List<CorbaTypeMap> list = control.createMock(List.class);
        List<CorbaTypeMap> typeMaps = control.createMock(List.class);
        EasyMock.expect(service.getExtensors(CorbaTypeMap.class)).andReturn(list);               
       
        OperationType opType = control.createMock(OperationType.class);
        conduit.getArguments(message);
        EasyMock.expectLastCall().andReturn(null)
        conduit.getReturn(message);
View Full Code Here

                orb = (org.omg.CORBA.ORB) message.getExchange().get(org.omg.CORBA.ORB.class);
            }
            corbaStaxObject.setOrb(orb);

            List<CorbaTypeMap> typeMaps = new ArrayList<CorbaTypeMap>();               
            ServiceInfo service = destination.getBindingInfo().getService();       
            List<TypeMappingType> corbaTypes = service.getDescription().getExtensors(TypeMappingType.class);
            if (corbaTypes != null) {
                CorbaUtils.createCorbaTypeMap(typeMaps, corbaTypes);
                corbaStaxObject.setTypeMaps(typeMaps);
                corbaStaxObject.setServiceInfo(service);
            }
View Full Code Here

                OperationType opType = bopInfo.getExtensor(OperationType.class);
                OperationInfo opInfo = bopInfo.getOperationInfo();
               
                List<CorbaTypeMap> typeMaps = new ArrayList<CorbaTypeMap>();

                ServiceInfo service = message.getExchange().get(ServiceInfo.class);
                List<TypeMappingType> corbaTypes =
                    service.getDescription().getExtensors(TypeMappingType.class);
                if (corbaTypes != null) {
                    corbaStaxObject.setTypeMaps(typeMaps);
                    corbaStaxObject.setServiceInfo(service);
                }
View Full Code Here

        CorbaInInterceptor inInterceptor = EasyMock.createMock(CorbaInInterceptor.class, new Method[] {m});      
                                                   
        CorbaMessage msg = control.createMock(CorbaMessage.class);
        CorbaDestination destination = control.createMock(CorbaDestination.class);
        BindingInfo bInfo = control.createMock(BindingInfo.class);
        ServiceInfo sInfo = control.createMock(ServiceInfo.class);
        DescriptionInfo dInfo = control.createMock(DescriptionInfo.class)
        EasyMock.expect(msg.getDestination()).andReturn(destination).times(2);       
        EasyMock.expect(destination.getBindingInfo()).andReturn(bInfo);
        EasyMock.expect(bInfo.getService()).andReturn(sInfo);
        EasyMock.expect(dInfo.getExtensors(TypeMappingType.class)).andReturn(null);
        EasyMock.expect(sInfo.getDescription()).andReturn(dInfo);
       
        inInterceptor.handleNotRequestMessage(msg, destination);
        EasyMock.expectLastCall();
       
        control.replay();
View Full Code Here

        CorbaInInterceptor inInterceptor = EasyMock.createMock(CorbaInInterceptor.class, new Method[] {m});      
                                                   
        CorbaMessage msg = control.createMock(CorbaMessage.class);
        CorbaDestination destination = control.createMock(CorbaDestination.class);
        BindingInfo bInfo = control.createMock(BindingInfo.class);
        ServiceInfo sInfo = control.createMock(ServiceInfo.class);
        DescriptionInfo dInfo = control.createMock(DescriptionInfo.class);  
        EasyMock.expect(msg.getDestination()).andReturn(destination).times(2);       
        EasyMock.expect(destination.getBindingInfo()).andReturn(bInfo);
        EasyMock.expect(bInfo.getService()).andReturn(sInfo);
        EasyMock.expect(dInfo.getExtensors(TypeMappingType.class)).andReturn(null);
        EasyMock.expect(sInfo.getDescription()).andReturn(dInfo);
        EasyMock.expect(msg.containsKey(Message.REQUESTOR_ROLE)).andReturn(true);
       
        inInterceptor.handleRequestMessage(msg, destination);
        EasyMock.expectLastCall();
       
View Full Code Here

         CorbaInInterceptor inInterceptor = EasyMock.createMock(CorbaInInterceptor.class, new Method[] {m});      
                                                   
        CorbaMessage msg = control.createMock(CorbaMessage.class);
        CorbaDestination destination = control.createMock(CorbaDestination.class);
        BindingInfo bInfo = control.createMock(BindingInfo.class);
        ServiceInfo sInfo = control.createMock(ServiceInfo.class);
        DescriptionInfo dInfo = control.createMock(DescriptionInfo.class)
        EasyMock.expect(msg.getDestination()).andReturn(null);
        Exchange exchange = control.createMock(Exchange.class);
        EasyMock.expect(msg.getExchange()).andReturn(exchange);
        EasyMock.expect(exchange.getDestination()).andReturn(destination);       
        EasyMock.expect(destination.getBindingInfo()).andReturn(bInfo);
        EasyMock.expect(bInfo.getService()).andReturn(sInfo);
        EasyMock.expect(dInfo.getExtensors(TypeMappingType.class)).andReturn(null);
        EasyMock.expect(sInfo.getDescription()).andReturn(dInfo);
        EasyMock.expect(msg.containsKey(Message.REQUESTOR_ROLE)).andReturn(true);
       
        inInterceptor.handleRequestMessage(msg, destination);
        EasyMock.expectLastCall();
       
View Full Code Here

        CorbaInInterceptor inInterceptor = control.createMock(CorbaInInterceptor.class,
                                             new Method[] {m});
                                                                                                                      
        CorbaDestination destination = control.createMock(CorbaDestination.class);
        EndpointInfo endpointInfo = control.createMock(EndpointInfo.class);
        ServiceInfo sInfo = control.createMock(ServiceInfo.class);
        BindingInfo bInfo = control.createMock(BindingInfo.class);
        InterfaceInfo info = control.createMock(InterfaceInfo.class);
        BindingOperationInfo bopInfo = control.createMock(BindingOperationInfo.class);
        OperationInfo opInfo = control.createMock(OperationInfo.class);
        EasyMock.expect(destination.getBindingInfo()).andReturn(bInfo);
View Full Code Here

TOP

Related Classes of org.apache.cxf.service.model.ServiceInfo

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.