servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r633758 - in /servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc: ./ src/main/java/org/apache/servicemix/cxfbc/interceptors/ src/test/java/org/apache/servicemix/cxfbc/interceptors/ src/test/resources/org...
Date Wed, 05 Mar 2008 03:22:17 GMT
Author: ffang
Date: Tue Mar  4 19:22:16 2008
New Revision: 633758

URL: http://svn.apache.org/viewvc?rev=633758&view=rev
Log:
[SM-1260] apply patch with test on behalf of  Edell Nolan, Thanks Edell

Added:
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/CxfBcInterceptorTest.java
  (with props)
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/StockQuoteReporterRPCImpl.java
  (with props)
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl
  (with props)
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/xbean.xml
  (with props)
Modified:
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/pom.xml
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java

Modified: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/pom.xml?rev=633758&r1=633757&r2=633758&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/pom.xml
(original)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/pom.xml
Tue Mar  4 19:22:16 2008
@@ -351,6 +351,12 @@
                                         <extraargs>
                                             <extraarg>-verbose</extraarg>
                                         </extraargs>
+				    </wsdlOption>
+                                    <wsdlOption>
+                                        <wsdl>${basedir}/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl</wsdl>
+                                        <extraargs>
+                                            <extraarg>-verbose</extraarg>
+                                        </extraargs>
                                     </wsdlOption>
                                     <wsdlOption>
                                         <wsdl>${basedir}/src/test/resources/org/apache/servicemix/cxfbc/ws/security/hello_world.wsdl</wsdl>

Modified: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java?rev=633758&r1=633757&r2=633758&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
(original)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
Tue Mar  4 19:22:16 2008
@@ -126,7 +126,7 @@
                 Element param = DomUtil.getFirstChildElement(body);
                 boolean found = false;
                 while (param != null) {
-                    if (part.getName().equals(new QName(param.getNamespaceURI(), param.getLocalName())))
{
+                    if (part.getName().getLocalPart().equals(param.getLocalName())) {
                         found = true;
                         parts.add(wrapNodeList(param.getChildNodes()));
                         break;

Modified: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java?rev=633758&r1=633757&r2=633758&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java
(original)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiOutWsdl1Interceptor.java
Tue Mar  4 19:22:16 2008
@@ -17,6 +17,7 @@
 package org.apache.servicemix.cxfbc.interceptors;
 
 import java.util.ArrayList;
+import java.util.Iterator;
 import java.util.List;
 
 import javax.xml.stream.XMLStreamException;
@@ -38,6 +39,7 @@
 import org.apache.cxf.phase.Phase;
 import org.apache.cxf.service.model.BindingMessageInfo;
 import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.service.model.MessagePartInfo;
 import org.apache.cxf.staxutils.StaxUtils;
 import org.apache.servicemix.jbi.jaxp.SourceTransformer;
 import org.apache.servicemix.jbi.util.QNameUtil;
@@ -68,24 +70,6 @@
                         + QNameUtil.toString(element) + "' but expected '{"
                         + JbiConstants.WSDL11_WRAPPER_NAMESPACE + "}message'"));
             }
-            List<NodeList> partsContent = new ArrayList<NodeList>();
-            Element partWrapper = DomUtil.getFirstChildElement(element);
-            while (partWrapper != null) {
-                if (!JbiConstants.WSDL11_WRAPPER_NAMESPACE.equals(element
-                        .getNamespaceURI())
-                        || !JbiConstants.WSDL11_WRAPPER_PART_LOCALNAME
-                                .equals(partWrapper.getLocalName())) {
-                    throw new Fault(new Exception(
-                            "Unexpected part wrapper element '"
-                                    + QNameUtil.toString(element)
-                                    + "' expected '{"
-                                    + JbiConstants.WSDL11_WRAPPER_NAMESPACE
-                                    + "}part'"));
-                }
-                NodeList nodes = partWrapper.getChildNodes();
-                partsContent.add(nodes);
-                partWrapper = DomUtil.getNextSiblingElement(partWrapper);
-            }
 
             BindingOperationInfo bop = message.getExchange().get(
                     BindingOperationInfo.class);
@@ -101,25 +85,24 @@
             if (style == null) {
                 style = binding.getStyle();
             }
-            List<SoapHeaderInfo> headers = msg
-                    .getExtensors(SoapHeaderInfo.class);
-            for (SoapHeaderInfo header : headers) {
-                NodeList nl = partsContent.get(header.getPart().getIndex());
-                Element headerElement = message.get(Element.class);
-                for (int i = 0; i < nl.getLength(); i++) {
-                    headerElement.appendChild(nl.item(i));
-                }
-            }
 
             if ("rpc".equals(style)) {
                 addOperationNode(message, xmlWriter);
-            }
-            for (NodeList nl : partsContent) {
-                for (int i = 0; i < nl.getLength(); i++) {
-                    Node n = nl.item(i);
-                    StaxUtils.writeNode(n, xmlWriter, false);
+                getRPCPartWrapper(msg, element, message, xmlWriter);
+            } else {
+                Element partWrapper = DomUtil.getFirstChildElement(element);
+                while (partWrapper != null) {
+                    List<NodeList> partsContent = getPartsContent(message, element,
partWrapper, msg); 
+                    for (NodeList nl : partsContent) {
+                        for (int i = 0; i < nl.getLength(); i++) {
+                            Node n = nl.item(i);                            
+                            StaxUtils.writeNode(n, xmlWriter, false);
+                        }
+                    }
+                    partWrapper = DomUtil.getNextSiblingElement(partWrapper);
                 }
             }
+
             if ("rpc".equals(style)) {
                 xmlWriter.writeEndElement();
             }
@@ -129,6 +112,71 @@
             throw new Fault(e);
         }
     }
+
+    private void getRPCPartWrapper(BindingMessageInfo msg, 
+                                   Element element,
+                                   SoapMessage message, 
+                                   XMLStreamWriter xmlWriter) {
+        try {
+            List<MessagePartInfo> parts = msg.getMessageParts();
+            Iterator iter = parts.iterator();
+            Element partWrapper = DomUtil.getFirstChildElement(element);
+            while (partWrapper != null) {
+                MessagePartInfo msgPart = (MessagePartInfo) iter.next();
+                String prefix = msgPart.getName().getPrefix();
+                String name = msgPart.getName().getLocalPart();
+                StaxUtils.writeStartElement(xmlWriter, prefix, name, "");
+                List<NodeList> partsContent = getPartsContent(message, element,
+                                                              partWrapper, msg);
+                for (NodeList nl : partsContent) {
+                    for (int i = 0; i < nl.getLength(); i++) {
+                        Node n = nl.item(i);
+                        StaxUtils.writeNode(n, xmlWriter, false);
+                    }
+                }
+                xmlWriter.writeEndElement();
+                partWrapper = DomUtil.getNextSiblingElement(partWrapper);
+            }
+        } catch (Fault e) {
+            throw e;
+        } catch (Exception e) {
+            throw new Fault(e);
+        }
+    }
+    
+    // Get each parts content
+    private List<NodeList> getPartsContent(SoapMessage message,
+                                           Element element,
+                                           Element partWrapper, 
+                                           BindingMessageInfo msg) {
+        List<NodeList> partsContent = new ArrayList<NodeList>();        
+        if (partWrapper != null) {
+            if (!JbiConstants.WSDL11_WRAPPER_NAMESPACE.equals(element.getNamespaceURI())
+                    || !JbiConstants.WSDL11_WRAPPER_PART_LOCALNAME
+                            .equals(partWrapper.getLocalName())) {
+                throw new Fault(new Exception(
+                        "Unexpected part wrapper element '"
+                                + QNameUtil.toString(element)
+                                + "' expected '{"
+                                + JbiConstants.WSDL11_WRAPPER_NAMESPACE
+                                + "}part'"));
+            }
+            NodeList nodes = partWrapper.getChildNodes();
+            partsContent.add(nodes);
+        }
+            
+        List<SoapHeaderInfo> headers = msg.getExtensors(SoapHeaderInfo.class);
+        for (SoapHeaderInfo header : headers) {
+            NodeList nl = partsContent.get(header.getPart().getIndex());
+            Element headerElement = message.get(Element.class);
+            for (int i = 0; i < nl.getLength(); i++) {
+                headerElement.appendChild(nl.item(i));
+            }
+        }
+        
+        return partsContent;
+    }
+    
 
     protected String addOperationNode(Message message, XMLStreamWriter xmlWriter)
         throws XMLStreamException {

Added: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/CxfBcInterceptorTest.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/CxfBcInterceptorTest.java?rev=633758&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/CxfBcInterceptorTest.java
(added)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/CxfBcInterceptorTest.java
Tue Mar  4 19:22:16 2008
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.cxfbc.interceptors;
+
+import java.net.URL;
+import java.util.logging.Logger;
+
+import javax.xml.namespace.QName;
+
+import org.apache.servicemix.cxfbc.interceptors.types.quote.Quote;
+
+import org.apache.servicemix.tck.SpringTestSupport;
+import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
+import org.springframework.context.support.AbstractXmlApplicationContext;
+
+public class CxfBcInterceptorTest extends SpringTestSupport {
+
+    static final Logger LOG = Logger.getLogger(CxfBcInterceptorTest.class
+            .getName());
+
+    public void testEndpointRPCWithExternalConsumerWithMultipleResponeParts() throws Exception
{
+        
+        QName stockServiceName = new QName("http://servicemix.apache.org/cxfbc/interceptors",

+                                      "StockQuoteReporterRPCService");
+        URL wsdlUrl = CxfBcInterceptorTest.class.getClassLoader().getResource(
+                "org/apache/servicemix/cxfbc/interceptors/quote.wsdl");
+        StockQuoteReporterRPCService quoteService = new StockQuoteReporterRPCService(wsdlUrl,
stockServiceName);
+        
+        
+        QuoteReporterRPC port = quoteService.getStockQuoteReporterRPCPort();
+
+        javax.xml.ws.Holder<java.lang.String> retailTicker =  
+            new javax.xml.ws.Holder<java.lang.String>("RetailerRPC");             
  
+        
+        Quote quote = port.getStockQuote("FUSE", retailTicker);
+        Thread.sleep(1000);
+        //Thread.sleep(10 * 60 * 1000); 
+        
+        assertEquals("FUSE ESB", quote.getID());
+        assertEquals("8.00", quote.getTime());
+        assertEquals(26.0, quote.getVal(), 0);        
+        System.out.println("retail val = " + retailTicker.value);
+        assertEquals("IONA PLC", retailTicker.value);
+    }
+
+    @Override
+    protected AbstractXmlApplicationContext createBeanFactory() {
+        return new ClassPathXmlApplicationContext(
+            "org/apache/servicemix/cxfbc/interceptors/xbean.xml");
+    }
+
+
+}

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/CxfBcInterceptorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/CxfBcInterceptorTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/StockQuoteReporterRPCImpl.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/StockQuoteReporterRPCImpl.java?rev=633758&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/StockQuoteReporterRPCImpl.java
(added)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/StockQuoteReporterRPCImpl.java
Tue Mar  4 19:22:16 2008
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.cxfbc.interceptors;
+
+import java.util.logging.Logger;
+
+
+@javax.jws.WebService(endpointInterface = "org.apache.servicemix.cxfbc.interceptors.QuoteReporterRPC",
+                targetNamespace = "http://servicemix.apache.org/cxfbc/interceptors",
+                portName = "StockQuoteReporterRPCPort",
+                serviceName = "StockQuoteReporterRPCService",
+                wsdlLocation = "C:/fuse-esb-3.3.0.6/examples/cxf-java-first-rpc/cxf-server-rpc/src/main/resources/quote.wsdl")
+
+public class StockQuoteReporterRPCImpl implements QuoteReporterRPC {
+
+    private static final Logger LOG = Logger.getLogger(StockQuoteReporterRPCImpl.class.getName());
+
+    public org.apache.servicemix.cxfbc.interceptors.types.quote.Quote 
+    getStockQuote(java.lang.String stockTicker, 
+                  javax.xml.ws.Holder<java.lang.String> retailTicker) {
+        
+        LOG.info("Executing operation getStockQuote");
+        System.out.println(stockTicker);
+        System.out.println(retailTicker.value);
+        try {
+            org.apache.servicemix.cxfbc.interceptors.types.quote.Quote quoteStock = 
+                new org.apache.servicemix.cxfbc.interceptors.types.quote.Quote();
+            quoteStock.setID("FUSE ESB");
+            quoteStock.setTime("8.00");
+            quoteStock.setVal(26);
+            retailTicker.value = "IONA PLC";
+            return quoteStock;
+        } catch (Exception ex) {
+            ex.printStackTrace();
+            throw new RuntimeException(ex);
+        }
+    }
+    
+}

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/StockQuoteReporterRPCImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/interceptors/StockQuoteReporterRPCImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl?rev=633758&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl
(added)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl
Tue Mar  4 19:22:16 2008
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<wsdl:definitions name="java_first"
+	targetNamespace="http://servicemix.apache.org/cxfbc/interceptors" 
+	          xmlns:tns="http://servicemix.apache.org/cxfbc/interceptors" 
+		  xmlns:ns1="http://schemas.xmlsoap.org/wsdl/" 
+		  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+		  xmlns:xsd1="http://servicemix.apache.org/cxfbc/interceptors/types/quote" 
+		  xmlns:ns2="http://servicemix.apache.org/cxfbc/interceptors/types" 
+		  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
+		  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+  <wsdl:types>
+	  <schema targetNamespace="http://servicemix.apache.org/cxfbc/interceptors/types/quote"
+            xmlns="http://www.w3.org/2001/XMLSchema">>
+	    <complexType name="quote">
+              <sequence>
+               <element name="ID" type="string" minOccurs="0"/>
+	       <element name="time" type="string" minOccurs="0"/>
+               <element name="val" type="float"/>
+            </sequence>
+      </complexType>
+    </schema>
+  </wsdl:types>
+  
+  <wsdl:message name="getStockQuote">
+	  <wsdl:part name="stockTicker" type="xsd:string">          
+	  </wsdl:part>
+          <wsdl:part name="retailTicker" type="xsd:string"></wsdl:part>
+  </wsdl:message>
+  <wsdl:message name="getStockQuoteResponse">
+	<wsdl:part name="updatedQuote" type="xsd1:quote">        
+	</wsdl:part>
+        <wsdl:part name="retailTicker" type="xsd:string"></wsdl:part>
+  </wsdl:message>
+  
+  <wsdl:portType name="QuoteReporterRPC">
+    <wsdl:operation name="getStockQuote">
+      <wsdl:input name="getStockQuote" message="tns:getStockQuote">
+    </wsdl:input>
+    <wsdl:output name="getStockQuoteResponse" message="tns:getStockQuoteResponse">
+    </wsdl:output>
+    </wsdl:operation>
+  </wsdl:portType>
+  
+  <wsdl:binding name="QuoteReporterRPCBinding" type="tns:QuoteReporterRPC">
+    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <wsdl:operation name="getStockQuote">
+      <soap:operation style="rpc"/>
+      <wsdl:input name="getStockQuote">
+	      <soap:body use="literal" namespace="http://servicemix.:apache.org/cxfbc/interceptors"/>
+      </wsdl:input>
+      <wsdl:output name="getStockQuoteResponse">
+	      <soap:body use="literal"  namespace="http://servicemix.apache.org/cxfbc/interceptors"/>
+      </wsdl:output>
+    </wsdl:operation>
+  </wsdl:binding>
+  
+  <wsdl:service name="StockQuoteReporterRPCService">
+	  <wsdl:port name="StockQuoteReporterRPCPort" binding="tns:QuoteReporterRPCBinding">
+          <soap:address location="http://localhost:9092/StockQuoteReporterRPCService"/>
+    </wsdl:port>
+  </wsdl:service>
+</wsdl:definitions>

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/quote.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/xbean.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/xbean.xml?rev=633758&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/xbean.xml
(added)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/xbean.xml
Tue Mar  4 19:22:16 2008
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  
+-->
+<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
+       xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
+       xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
+       xmlns:QuoteReporterRPC="http://servicemix.apache.org/cxfbc/interceptors">
+
+  <sm:container id="jbi" embedded="true">
+    
+    <sm:endpoints>
+      <cxfse:endpoint>
+        <cxfse:pojo>
+          <bean class="org.apache.servicemix.cxfbc.interceptors.StockQuoteReporterRPCImpl"
/>
+        </cxfse:pojo>
+      </cxfse:endpoint>
+      <cxfbc:consumer wsdl="org/apache/servicemix/cxfbc/interceptors/quote.wsdl"
+                      targetService="QuoteReporterRPC:StockQuoteReporterRPCService"
+                      targetInterface="QuoteReporterRPC:QuoteReporterRPC">
+      </cxfbc:consumer>
+    </sm:endpoints>
+    
+  </sm:container>
+</beans>

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/xbean.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/xbean.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/interceptors/xbean.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message