servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r584111 - in /incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src: main/java/org/apache/servicemix/cxfbc/ main/java/org/apache/servicemix/cxfbc/interceptors/ test/java/org/apache/servicemix/cxfbc/ test/resources/o...
Date Fri, 12 Oct 2007 09:48:29 GMT
Author: ffang
Date: Fri Oct 12 02:48:28 2007
New Revision: 584111

URL: http://svn.apache.org/viewvc?rev=584111&view=rev
Log:
add oneway test for cxf bc provider

Modified:
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProviderMessageObserver.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/GreeterImplForProvider.java
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider.xml
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider/xbean.xml

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java?rev=584111&r1=584110&r2=584111&view=diff
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
Fri Oct 12 02:48:28 2007
@@ -64,6 +64,7 @@
 import org.apache.cxf.service.model.BindingOperationInfo;
 import org.apache.cxf.service.model.EndpointInfo;
 import org.apache.cxf.service.model.MessagePartInfo;
+import org.apache.cxf.service.model.ServiceInfo;
 import org.apache.cxf.transport.ChainInitiationObserver;
 import org.apache.cxf.ws.rm.Servant;
 import org.apache.cxf.wsdl11.WSDLServiceFactory;
@@ -216,6 +217,17 @@
 
             EndpointInfo ei = cxfService.getServiceInfos().iterator().next()
                     .getEndpoints().iterator().next();
+            for (ServiceInfo serviceInfo : cxfService.getServiceInfos()) {
+                if (serviceInfo.getName().equals(service)
+                    && getEndpoint() != null 
+                    && serviceInfo.getEndpoint(new QName(
+                            serviceInfo.getName().getNamespaceURI(), getEndpoint())) != null)
{
+                    ei = serviceInfo.getEndpoint(new QName(
+                                serviceInfo.getName().getNamespaceURI(), getEndpoint()));
+             
+                }
+            }
+            
 
             if (endpoint == null) {
                 endpoint = ei.getName().getLocalPart();

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java?rev=584111&r1=584110&r2=584111&view=diff
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java
Fri Oct 12 02:48:28 2007
@@ -29,6 +29,7 @@
 import javax.jbi.messaging.NormalizedMessage;
 import javax.wsdl.factory.WSDLFactory;
 import javax.wsdl.xml.WSDLReader;
+import javax.xml.namespace.QName;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamWriter;
 import javax.xml.transform.Source;
@@ -57,6 +58,7 @@
 import org.apache.cxf.service.Service;
 import org.apache.cxf.service.model.BindingOperationInfo;
 import org.apache.cxf.service.model.EndpointInfo;
+import org.apache.cxf.service.model.ServiceInfo;
 import org.apache.cxf.transport.Conduit;
 import org.apache.cxf.transport.ConduitInitiator;
 import org.apache.cxf.transport.ConduitInitiatorManager;
@@ -149,6 +151,7 @@
             //
         }
         message.setContent(XMLStreamWriter.class, writer);
+        message.put(org.apache.cxf.message.Message.REQUESTOR_ROLE, true);
         outChain.doIntercept(message);
         XMLStreamWriter xtw = message.getContent(XMLStreamWriter.class);
         if (xtw != null) {
@@ -221,6 +224,16 @@
                 
                 ei = cxfService.getServiceInfos().iterator().next()
                         .getEndpoints().iterator().next();
+                for (ServiceInfo serviceInfo : cxfService.getServiceInfos()) {
+                    if (serviceInfo.getName().equals(service)
+                        && getEndpoint() != null 
+                        && serviceInfo.getEndpoint(new QName(
+                                serviceInfo.getName().getNamespaceURI(), getEndpoint()))
!= null) {
+                        ei = serviceInfo.getEndpoint(new QName(
+                                    serviceInfo.getName().getNamespaceURI(), getEndpoint()));
+                 
+                    }
+                }
 
                 if (endpoint == null) {
                     endpoint = ei.getName().getLocalPart();

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProviderMessageObserver.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProviderMessageObserver.java?rev=584111&r1=584110&r2=584111&view=diff
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProviderMessageObserver.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProviderMessageObserver.java
Fri Oct 12 02:48:28 2007
@@ -57,8 +57,9 @@
     private MessageExchange messageExchange;
 
     private CxfBcProvider providerEndpoint;
-    
-    public CxfBcProviderMessageObserver(MessageExchange exchange, CxfBcProvider providerEndpoint)
{
+
+    public CxfBcProviderMessageObserver(MessageExchange exchange,
+            CxfBcProvider providerEndpoint) {
         this.messageExchange = exchange;
         this.providerEndpoint = providerEndpoint;
     }
@@ -80,36 +81,45 @@
         try {
             contentType = (String) message.get(Message.CONTENT_TYPE);
             SoapMessage soapMessage = new SoapMessage(message);
-            
-            //create XmlStreamReader
+
+            // create XmlStreamReader
+            BindingOperationInfo boi = providerEndpoint.getEndpointInfo()
+                    .getBinding().getOperation(messageExchange.getOperation());
+            if (boi.getOperationInfo().isOneWay()) {
+                return;
+            }
             XMLStreamReader xmlStreamReader = createXMLStreamReaderFromMessage(soapMessage);
             soapMessage.setContent(XMLStreamReader.class, xmlStreamReader);
-            soapMessage.put(org.apache.cxf.message.Message.REQUESTOR_ROLE, true);
+            soapMessage
+                    .put(org.apache.cxf.message.Message.REQUESTOR_ROLE, true);
             Exchange cxfExchange = new ExchangeImpl();
             soapMessage.setExchange(cxfExchange);
-                   
-            BindingOperationInfo boi = providerEndpoint.getEndpointInfo().getBinding().getOperation(messageExchange.getOperation());
+
             cxfExchange.put(BindingOperationInfo.class, boi);
             cxfExchange.put(Endpoint.class, providerEndpoint.getCxfEndpoint());
-            //create Interceptor chain
-            
+            // create Interceptor chain
+
             PhaseChainCache inboundChainCache = new PhaseChainCache();
-            PhaseManager pm = providerEndpoint.getBus().getExtension(PhaseManager.class);
+            PhaseManager pm = providerEndpoint.getBus().getExtension(
+                    PhaseManager.class);
             List<Interceptor> inList = new ArrayList<Interceptor>();
             inList.add(new JbiInWsdl1Interceptor());
-            
-            PhaseInterceptorChain inChain = inboundChainCache.get(pm.getInPhases(), inList);
+
+            PhaseInterceptorChain inChain = inboundChainCache.get(pm
+                    .getInPhases(), inList);
             inChain.add(providerEndpoint.getOutInterceptors());
             inChain.add(providerEndpoint.getOutFaultInterceptors());
             soapMessage.setInterceptorChain(inChain);
             inChain.doIntercept(soapMessage);
-            
-            if (soapMessage.get("jbiFault") != null 
-                    &&  soapMessage.get("jbiFault").equals(true)) {
+
+            if (boi.getOperationInfo().isOneWay()) {
+                messageExchange.setStatus(ExchangeStatus.DONE);
+            } else if (soapMessage.get("jbiFault") != null
+                    && soapMessage.get("jbiFault").equals(true)) {
                 Fault fault = messageExchange.createFault();
                 fault.setContent(soapMessage.getContent(Source.class));
                 messageExchange.setFault(fault);
-            } else  if (messageExchange instanceof InOut) {
+            } else if (messageExchange instanceof InOut) {
                 NormalizedMessage msg = messageExchange.createMessage();
                 msg.setContent(soapMessage.getContent(Source.class));
                 messageExchange.setMessage(msg, "out");
@@ -130,9 +140,11 @@
                     && Boolean.TRUE.equals(messageExchange
                             .getProperty(JbiConstants.SEND_SYNC));
             if (txSync) {
-                providerEndpoint.getContext().getDeliveryChannel().sendSync(messageExchange);
+                providerEndpoint.getContext().getDeliveryChannel().sendSync(
+                        messageExchange);
             } else {
-                providerEndpoint.getContext().getDeliveryChannel().send(messageExchange);
+                providerEndpoint.getContext().getDeliveryChannel().send(
+                        messageExchange);
             }
 
         } catch (Exception e) {
@@ -144,16 +156,17 @@
             }
         }
     }
-    
+
     private XMLStreamReader createXMLStreamReaderFromMessage(Message message) {
         XMLStreamReader xmlReader = null;
         try {
-            StreamSource bodySource = new StreamSource(message.getContent(InputStream.class));
+            StreamSource bodySource = new StreamSource(message
+                    .getContent(InputStream.class));
             xmlReader = StaxUtils.createXMLStreamReader(bodySource);
             xmlReader.nextTag();
             xmlReader.nextTag();
             xmlReader.nextTag();
-        }  catch (XMLStreamException e) {
+        } catch (XMLStreamException e) {
             e.printStackTrace();
         }
         return xmlReader;

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java?rev=584111&r1=584110&r2=584111&view=diff
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
Fri Oct 12 02:48:28 2007
@@ -179,9 +179,6 @@
         Document doc = DomUtil.createDocument();
         
         Element jbiFault = DomUtil.createElement(doc, new QName(JBIConstants.NS_JBI_BINDING,
JBIFault.JBI_FAULT_ROOT));
-        /*Node jbiFaultString = doc.importNode(soapFault.getElementsByTagName(
-                JBIFault.JBI_FAULT_STRING).item(0), true);
-        jbiFault.appendChild(jbiFaultString);*/
         Node jbiFaultDetail = doc.importNode(soapFault.getElementsByTagName(JBIFault.JBI_FAULT_DETAIL).item(0).getFirstChild(),
true);
         jbiFault.appendChild(jbiFaultDetail);
         message.setContent(Source.class, new DOMSource(doc));

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java?rev=584111&r1=584110&r2=584111&view=diff
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBcProviderTest.java
Fri Oct 12 02:48:28 2007
@@ -32,6 +32,8 @@
 import org.apache.cxf.interceptor.LoggingOutInterceptor;
 import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
 import org.apache.cxf.service.model.ServiceInfo;
+import org.apache.hello_world_soap_http.Greeter;
+import org.apache.hello_world_soap_http.GreeterImpl;
 import org.apache.servicemix.client.DefaultServiceMixClient;
 import org.apache.servicemix.cxfse.CxfSeComponent;
 import org.apache.servicemix.jbi.jaxp.SourceTransformer;
@@ -46,26 +48,23 @@
     
     private DefaultServiceMixClient client;
     private InOut io;
-    
+    private CxfSeComponent component;
     
     protected void setUp() throws Exception {
         super.setUp();
-        client = new DefaultServiceMixClient(jbi);
-        io = client.createInOutExchange();
-        io.setService(new QName("http://apache.org/hello_world_soap_http", "SOAPService"));
-        io.setInterfaceName(new QName("http://apache.org/hello_world_soap_http", "Greeter"));
-        io.setOperation(new QName("http://apache.org/hello_world_soap_http", "greetMe"));
-    }
-    
-    
-    public void testProvider() throws Exception {
-        LOG.info("test provider");
-        CxfSeComponent component = new CxfSeComponent();
+        
+        component = new CxfSeComponent();
         jbi.activateComponent(component, "CxfSeComponent");
         //Deploy proxy SU
         component.getServiceUnitManager().deploy("proxy", getServiceUnitPath("provider"));
         component.getServiceUnitManager().init("proxy", getServiceUnitPath("provider"));
         component.getServiceUnitManager().start("proxy");
+    }
+    
+    
+    public void testProvider() throws Exception {
+        LOG.info("test provider");
+           
         
         //start external service
         JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
@@ -79,7 +78,11 @@
         endpoint.getOutInterceptors().add(new LoggingOutInterceptor());
         ServiceInfo service = endpoint.getEndpointInfo().getService();
         assertNotNull(service);
-        
+        client = new DefaultServiceMixClient(jbi);
+        io = client.createInOutExchange();
+        io.setService(new QName("http://apache.org/hello_world_soap_http", "SOAPServiceProvider"));
+        io.setInterfaceName(new QName("http://apache.org/hello_world_soap_http", "Greeter"));
+        io.setOperation(new QName("http://apache.org/hello_world_soap_http", "greetMe"));
         //send message to proxy
         io.getInMessage().setContent(new StringSource(
                 "<message xmlns='http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper'>"
@@ -91,8 +94,56 @@
               + "</message>"));
         client.sendSync(io);
         assertTrue(new SourceTransformer().contentToString(
-                io.getOutMessage()).indexOf("Hello ffang 3Negative number cant be added!")
>= 0);
+                io.getOutMessage()).indexOf("Hello ffang 3") >= 0);
+
+        //test exception handle
+        io = client.createInOutExchange();
+        io.setService(new QName("http://apache.org/hello_world_soap_http", "SOAPServiceProvider"));
+        io.setInterfaceName(new QName("http://apache.org/hello_world_soap_http", "Greeter"));
+        io.setOperation(new QName("http://apache.org/hello_world_soap_http", "greetMe"));
+        io.getInMessage().setContent(new StringSource(
+                "<message xmlns='http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper'>"
+              + "<part> "
+              + "<greetMe xmlns='http://apache.org/hello_world_soap_http/types'><requestType>"
+              + "exception test"
+              + "</requestType></greetMe>"
+              + "</part> "
+              + "</message>"));
+        client.sendSync(io);
+        assertTrue(new SourceTransformer().contentToString(
+                io.getOutMessage()).indexOf("Hello exception test Negative number cant be
added!") >= 0);
+        
+        //test onway
+        factory = new JaxWsServerFactoryBean();
+        factory.setServiceClass(Greeter.class);
+        factory.setServiceBean(new GreeterImpl());
+        address = "http://localhost:9002/providertest_oneway";
+        factory.setAddress(address);
+        server = factory.create();
+        endpoint = server.getEndpoint();
+        endpoint.getInInterceptors().add(new LoggingInInterceptor());
+        endpoint.getOutInterceptors().add(new LoggingOutInterceptor());
+        service = endpoint.getEndpointInfo().getService();
+        assertNotNull(service);
+        io = client.createInOutExchange();
+        io.setService(new QName("http://apache.org/hello_world_soap_http", "SOAPServiceProvider"));
+        io.setInterfaceName(new QName("http://apache.org/hello_world_soap_http", "Greeter"));
+        io.setOperation(new QName("http://apache.org/hello_world_soap_http", "greetMe"));
+        //send message to proxy
+        io.getInMessage().setContent(new StringSource(
+                "<message xmlns='http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper'>"
+              + "<part> "
+              + "<greetMe xmlns='http://apache.org/hello_world_soap_http/types'><requestType>"
+              + "oneway test"
+              + "</requestType></greetMe>"
+              + "</part> "
+              + "</message>"));
+        client.sendSync(io);
+        assertTrue(new SourceTransformer().contentToString(
+                io.getOutMessage()).indexOf("Hello oneway test oneway") >= 0);
     }
+    
+     
     
     @Override
     protected AbstractXmlApplicationContext createBeanFactory() {

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/GreeterImplForProvider.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/GreeterImplForProvider.java?rev=584111&r1=584110&r2=584111&view=diff
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/GreeterImplForProvider.java
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/GreeterImplForProvider.java
Fri Oct 12 02:48:28 2007
@@ -21,8 +21,9 @@
 
 import org.apache.cxf.calculator.AddNumbersFault;
 import org.apache.cxf.calculator.CalculatorPortType;
+import org.apache.hello_world_soap_http.Greeter;
 
-@WebService(serviceName = "SOAPService", 
+@WebService(serviceName = "SOAPServiceProvider", 
         portName = "SoapPort", 
         endpointInterface = "org.apache.hello_world_soap_http.Greeter", 
         targetNamespace = "http://apache.org/hello_world_soap_http")
@@ -30,16 +31,22 @@
 public class GreeterImplForProvider {
     private ComponentContext context;
     private CalculatorPortType calculator;
+    private Greeter greeter;
     public String greetMe(String me) {
         String ret = "";
+        
         try {
-            
-            ret = ret + getCalculator().add(1, 2);
-            ret = ret + getCalculator().add(1, -1);
+            if ("ffang".equals(me)) {
+                ret = ret + getCalculator().add(1, 2);
+            } else if ("exception test".equals(me)) {
+                ret = ret + getCalculator().add(1, -1);
+            } else if ("oneway test".equals(me)) {
+                getGreeter().greetMeOneWay("oneway");
+                ret = "oneway";
+            }
                         
         } catch (AddNumbersFault e) {
-            //should catch exception here
-            
+            //should catch exception here if negative number is passed
             ret = ret + e.getFaultInfo().getMessage();
         }
         return "Hello " + me  + " " + ret;
@@ -59,6 +66,14 @@
 
     public CalculatorPortType getCalculator() {
         return calculator;
+    }
+
+    public void setGreeter(Greeter greeter) {
+        this.greeter = greeter;
+    }
+
+    public Greeter getGreeter() {
+        return greeter;
     }
 
 

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider.xml?rev=584111&r1=584110&r2=584111&view=diff
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider.xml
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider.xml
Fri Oct 12 02:48:28 2007
@@ -21,7 +21,8 @@
        xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
        xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
        xmlns:test="urn:test"
-       xmlns:calculator="http://apache.org/cxf/calculator">
+       xmlns:calculator="http://apache.org/cxf/calculator"
+       xmlns:greeter="http://apache.org/hello_world_soap_http">
   
   <sm:container id="jbi" embedded="true">
     
@@ -32,6 +33,26 @@
                       endpoint="CalculatorPort"
                       service="calculator:CalculatorService"
                       interfaceName="calculator:CalculatorPortType"
+                      >
+        <cxfbc:inInterceptors>
+          <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
+        </cxfbc:inInterceptors>
+        <cxfbc:outInterceptors>
+          <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
+        </cxfbc:outInterceptors>
+        <cxfbc:inFaultInterceptors>
+          <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
+        </cxfbc:inFaultInterceptors>
+        <cxfbc:outFaultInterceptors>
+          <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
+        </cxfbc:outFaultInterceptors>
+      </cxfbc:provider>
+
+    <cxfbc:provider wsdl="/wsdl/hello_world.wsdl"
+                      locationURI="http://localhost:9002/providertest_oneway"
+                      endpoint="SoapPort"
+                      service="greeter:SOAPService"
+                      interfaceName="greeter:Greeter"
                       >
         <cxfbc:inInterceptors>
           <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider/xbean.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider/xbean.xml?rev=584111&r1=584110&r2=584111&view=diff
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider/xbean.xml
(original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/provider/xbean.xml
Fri Oct 12 02:48:28 2007
@@ -21,7 +21,8 @@
        xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
        xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
        xmlns:test="urn:test"
-       xmlns:calculator="http://apache.org/cxf/calculator">
+       xmlns:calculator="http://apache.org/cxf/calculator"
+       xmlns:greeter="http://apache.org/hello_world_soap_http">
   
     
       <cxfse:endpoint>
@@ -29,6 +30,9 @@
           <bean class="org.apache.servicemix.cxfbc.GreeterImplForProvider">
               <property name="calculator">
                   <cxfse:proxy service="calculator:CalculatorService" context="#context"
type="org.apache.cxf.calculator.CalculatorPortType" />
+              </property>
+              <property name="greeter">
+                  <cxfse:proxy service="greetr:SOAPService" context="#context" type="org.apache.hello_world_soap_http.Greeter"
/>
               </property>
           </bean>
               



Mime
View raw message