cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r492984 [2/2] - in /incubator/cxf/trunk: rt/core/ rt/core/src/test/java/org/apache/cxf/attachment/ rt/core/src/test/java/org/apache/cxf/wsdl11/ rt/core/src/test/resources/org/apache/cxf/wsdl11/ tools2/ tools2/common/src/main/java/org/apache...
Date Fri, 05 Jan 2007 11:20:08 GMT
Added: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WrapperAnnotator.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WrapperAnnotator.java?view=auto&rev=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WrapperAnnotator.java
(added)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WrapperAnnotator.java
Fri Jan  5 03:20:06 2007
@@ -0,0 +1,61 @@
+/**
+ * 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.cxf.tools.wsdlto.frontend.jaxws.processor.internal.annotator;
+
+import org.apache.cxf.tools.common.model.Annotator;
+import org.apache.cxf.tools.common.model.JavaAnnotatable;
+import org.apache.cxf.tools.common.model.JavaAnnotation;
+import org.apache.cxf.tools.common.model.JavaMethod;
+import org.apache.cxf.tools.common.model.JavaParameter;
+
+public class WrapperAnnotator implements Annotator {
+    JavaParameter wrapperRequest;
+    JavaParameter wrapperResponse;
+
+    public WrapperAnnotator(JavaParameter request, JavaParameter response) {
+        wrapperRequest = request;
+        wrapperResponse = response;
+    }
+    
+    public void annotate(JavaAnnotatable ja) {
+        JavaMethod method;
+        if (ja instanceof JavaMethod) {
+            method = (JavaMethod) ja;
+        } else {
+            throw new RuntimeException("RequestWrapper and ResponseWrapper can only annotate
JavaMethod");
+        }
+        if (wrapperRequest != null) {
+            JavaAnnotation wrapperRequestAnnotation = new JavaAnnotation("RequestWrapper");
+            wrapperRequestAnnotation.addArgument("localName", wrapperRequest.getType());
+            wrapperRequestAnnotation.addArgument("targetNamespace", wrapperRequest.getTargetNamespace());
+            wrapperRequestAnnotation.addArgument("className", wrapperRequest.getClassName());
+            method.addAnnotation("RequestWrapper", wrapperRequestAnnotation);
+            method.getInterface().addImport("javax.xml.ws.RequestWrapper");
+        }
+        if (wrapperResponse != null) {
+            JavaAnnotation wrapperResponseAnnotation = new JavaAnnotation("ResponseWrapper");
+            wrapperResponseAnnotation.addArgument("localName", wrapperResponse.getType());
+            wrapperResponseAnnotation.addArgument("targetNamespace", wrapperResponse.getTargetNamespace());
+            wrapperResponseAnnotation.addArgument("className", wrapperResponse.getClassName());
+            method.addAnnotation("ResponseWrapper", wrapperResponseAnnotation);
+            method.getInterface().addImport("javax.xml.ws.ResponseWrapper");
+        }
+    }
+}

Propchange: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WrapperAnnotator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WrapperAnnotator.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/JAXWSProfileTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/JAXWSProfileTest.java?view=diff&rev=492984&r1=492983&r2=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/JAXWSProfileTest.java
(original)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/JAXWSProfileTest.java
Fri Jan  5 03:20:06 2007
@@ -27,10 +27,10 @@
 import org.apache.cxf.tools.plugin.FrontEnd;
 import org.apache.cxf.tools.plugin.Generator;
 import org.apache.cxf.tools.plugin.Plugin;
-import org.apache.cxf.tools.wsdl2java.processor.WSDLToJavaProcessor;
 import org.apache.cxf.tools.wsdlto.core.AbstractWSDLBuilder;
 import org.apache.cxf.tools.wsdlto.core.FrontEndProfile;
 import org.apache.cxf.tools.wsdlto.core.PluginLoader;
+import org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor;
 import org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder;
 
 public class JAXWSProfileTest extends TestCase {

Modified: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/jaxws-plugin.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/jaxws-plugin.xml?view=diff&rev=492984&r1=492983&r2=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/jaxws-plugin.xml
(original)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/jaxws-plugin.xml
Fri Jan  5 03:20:06 2007
@@ -3,7 +3,7 @@
 <plugin name="tools-jaxws-frontend" version="2.0" provider="apache cxf" xmlns="http://cxf.apache.org/tools/plugin">
     <frontend name="jaxws" package="org.apache.cxf.tools.wsdlto.frontend.jaxws" profile="JAXWSProfile">
 	<container name="JAXWSContainer" toolspec="jaxws-toolspec.xml"/>
-	<processor name="WSDLToJavaProcessor" package="org.apache.cxf.tools.wsdl2java.processor"/>
+	<processor name="WSDLToJavaProcessor" package="org.apache.cxf.tools.wsdlto.frontend.jaxws.processor"/>
 	<builder name="JAXWSDefinitionBuilder" package="org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11"/>
 	<generators package="org.apache.cxf.tools.wsdl2java.frontend.jaxws">
 	    <generator name="AntGenerator"/>

Modified: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WebMethodAnnotatorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WebMethodAnnotatorTest.java?view=diff&rev=492984&r1=492983&r2=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WebMethodAnnotatorTest.java
(original)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WebMethodAnnotatorTest.java
Fri Jan  5 03:20:06 2007
@@ -28,11 +28,9 @@
 
 public class WebMethodAnnotatorTest extends TestCase {
 
-    WebMethodAnnotator annotator = new WebMethodAnnotator();
-    
     public void testAddWebMethodAnnotation() throws Exception {
         JavaMethod method = new JavaMethod();
-        annotator.addWebMethodAnnotation(method);
+        method.annotate(new WebMethodAnnotator());
         Map<String, JavaAnnotation> annotations = method.getAnnotationMap();
         assertNotNull(annotations);
         assertEquals(1, annotations.size());
@@ -41,7 +39,7 @@
 
     public void testAddWebResultAnnotation() throws Exception {
         JavaMethod method = new JavaMethod();
-        annotator.addWebResultAnnotation(method);
+        method.annotate(new WebResultAnnotator());
         Map<String, JavaAnnotation> annotations = method.getAnnotationMap();
         assertNotNull(annotations);
         assertEquals(1, annotations.size());

Modified: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WebParamAnnotatorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WebParamAnnotatorTest.java?view=diff&rev=492984&r1=492983&r2=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WebParamAnnotatorTest.java
(original)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/annotator/WebParamAnnotatorTest.java
Fri Jan  5 03:20:06 2007
@@ -29,14 +29,13 @@
 
 public class WebParamAnnotatorTest extends TestCase {
 
-    WebParamAnnotator annotator;
     JavaMethod method;
     JavaParameter parameter;
 
     public void setUp() {
-        annotator = new WebParamAnnotator();
         method = new JavaMethod();
         parameter = new JavaParameter();
+        parameter.setMethod(method);
     }
 
     private void init(JavaMethod m, JavaParameter param, SOAPBinding.Style style, boolean
wrapper) {
@@ -51,8 +50,7 @@
     
     public void testAnnotateDOCWrapped() throws Exception {
         init(method, parameter, SOAPBinding.Style.DOCUMENT, true);
-        
-        annotator.annotate(method, parameter);
+        parameter.annotate(new WebParamAnnotator());
 
         JavaAnnotation annotation = parameter.getAnnotation();
         assertEquals(2, annotation.getArguments().size());
@@ -62,8 +60,8 @@
 
     public void testAnnotateDOCBare() throws Exception {
         init(method, parameter, SOAPBinding.Style.DOCUMENT, false);
-        
-        annotator.annotate(method, parameter);
+
+        parameter.annotate(new WebParamAnnotator());
 
         JavaAnnotation annotation = parameter.getAnnotation();
         assertEquals(3, annotation.getArguments().size());
@@ -73,7 +71,7 @@
 
     public void testAnnotateRPC() throws Exception {
         init(method, parameter, SOAPBinding.Style.RPC, true);
-        annotator.annotate(method, parameter);
+        parameter.annotate(new WebParamAnnotator());
         JavaAnnotation annotation = parameter.getAnnotation();
         assertEquals(2, annotation.getArguments().size());
         assertEquals("@WebParam(partName = \"y\", name = \"y\")",

Modified: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java?view=diff&rev=492984&r1=492983&r2=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java
(original)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java
Fri Jan  5 03:20:06 2007
@@ -52,7 +52,7 @@
 
     public void testBuildDefinitionWithXMLBinding() {
         String qname = "http://apache.org/hello_world_xml_http/bare";
-        String wsdlUrl = getClass().getResource("/wsdl/hello_world_xml_bare.wsdl").toString();
+        String wsdlUrl = getClass().getResource("hello_world_xml_bare.wsdl").toString();
 
         JAXWSDefinitionBuilder builder = new JAXWSDefinitionBuilder();
         builder.setContext(env);
@@ -89,7 +89,7 @@
 
     public void testBuildDefinitionWithJMSTransport() {
         String qname = "http://cxf.apache.org/hello_world_jms";
-        String wsdlUrl = getClass().getResource("/wsdl/jms_test.wsdl").toString();
+        String wsdlUrl = getClass().getResource("jms_test.wsdl").toString();
 
         JAXWSDefinitionBuilder builder = new JAXWSDefinitionBuilder();
         builder.setContext(env);

Added: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/hello_world_xml_bare.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/hello_world_xml_bare.wsdl?view=auto&rev=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/hello_world_xml_bare.wsdl
(added)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/hello_world_xml_bare.wsdl
Fri Jan  5 03:20:06 2007
@@ -0,0 +1,147 @@
+<?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="HelloWorld" targetNamespace="http://apache.org/hello_world_xml_http/bare"

+		  xmlns="http://schemas.xmlsoap.org/wsdl/"
+		  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+		  xmlns:xformat="http://cxf.apache.org/bindings/xformat" 
+		  xmlns:tns="http://apache.org/hello_world_xml_http/bare"
+		  xmlns:x1="http://apache.org/hello_world_xml_http/bare/types"
+		  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+		  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    
+    <wsdl:types>
+	<schema targetNamespace="http://apache.org/hello_world_xml_http/bare/types" 
+		xmlns="http://www.w3.org/2001/XMLSchema" 
+		elementFormDefault="qualified">
+
+	    <element name="responseType" type="xsd:string"/>
+	    <element name="requestType" type="xsd:string"/>      
+	    <element name="myComplexStruct" type="x1:myComplexStructType"/>     
+	    
+	    <complexType name="myComplexStructType">
+		<sequence>
+		    <element name="elem1" type="xsd:string"/>
+		    <element name="elem2" type="xsd:string"/>
+		    <element name="elem3" type="xsd:int"/>
+		</sequence>
+	    </complexType>
+	</schema>
+    </wsdl:types>
+    
+    <wsdl:message name="sayHiRequest"/>
+    
+    <wsdl:message name="sayHiResponse">
+	<wsdl:part type="xsd:string" name="out"/>
+    </wsdl:message>
+    
+    <wsdl:message name="greetMeRequest">
+	<wsdl:part element="x1:requestType" name="me"/>
+    </wsdl:message>
+    
+    <wsdl:message name="greetMeResponse">
+	<wsdl:part element="x1:responseType" name="theResponse"/>
+    </wsdl:message>
+    
+    <wsdl:message name="sendReceiveDataRequest">
+	<wsdl:part type="x1:myComplexStructType" name="in"/>
+    </wsdl:message>
+    
+    <wsdl:message name="sendReceiveDataResponse">
+	<wsdl:part type="x1:myComplexStructType" name="out"/>
+    </wsdl:message>
+
+    <wsdl:message name="multiParamPartRequest">
+	<wsdl:part element="x1:requestType" name="in1"/>
+	<wsdl:part element="x1:myComplexStruct" name="in2"/>
+    </wsdl:message>
+    
+    <wsdl:message name="multiParamPartResponse">
+	<wsdl:part element="x1:responseType" name="out1"/>
+    </wsdl:message>
+    
+    <wsdl:message name="triPartRequest">
+	<wsdl:part element="x1:requestType" name="in3"/>
+	<wsdl:part element="x1:myComplexStruct" name="in1"/>
+	<wsdl:part element="x1:requestType" name="in2"/>
+    </wsdl:message>
+    
+    <wsdl:portType name="Greeter">
+	<wsdl:operation name="sayHi">
+	    <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/>
+	    <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="greetMe">
+	    <wsdl:input message="tns:greetMeRequest" name="greetMeRequest"/>
+	    <wsdl:output message="tns:greetMeResponse" name="greetMeResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="sendReceiveData">
+	    <wsdl:input message="tns:sendReceiveDataRequest" name="SendReceiveDataRequest"/>
+	    <wsdl:output message="tns:sendReceiveDataResponse" name="SendReceiveDataResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="testMultiParamPart" parameterOrder="in2 in1">
+	    <wsdl:input message="tns:multiParamPartRequest" name="multiParamPartRequest"/>
+	    <wsdl:output message="tns:multiParamPartResponse" name="multiParamPartResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="testTriPart" parameterOrder="in1 in3 in2">
+	    <wsdl:input message="tns:triPartRequest" name="triPartRequest"/>
+	    <wsdl:output message="tns:multiParamPartResponse" name="multiParamPartResponse"/>
+	</wsdl:operation>
+	<wsdl:operation name="testTriPartNoOrder">
+	    <wsdl:input message="tns:triPartRequest" name="triPartRequest"/>
+	    <wsdl:output message="tns:multiParamPartResponse" name="multiParamPartResponse"/>
+	</wsdl:operation>
+    </wsdl:portType>
+    
+    <wsdl:binding name="Greeter_XMLBinding" type="tns:Greeter">
+
+	<xformat:binding/>
+
+	<wsdl:operation name="sayHi">
+	    <wsdl:input>
+		<xformat:body rootNode="tns:sayHi"/>
+	    </wsdl:input>
+	    <wsdl:output/>
+	</wsdl:operation>
+	
+	<wsdl:operation name="greetMe">
+	    <wsdl:input/>
+	    <wsdl:output/>
+	</wsdl:operation>
+	
+	<wsdl:operation name="sendReceiveData">
+	    <wsdl:input/>
+	    <wsdl:output/>
+	</wsdl:operation>
+
+	<wsdl:operation name="testMultiParamPart">
+	    <wsdl:input>
+		<xformat:body rootNode="tns:multiParamRootReq"/>
+	    </wsdl:input>
+	    <wsdl:output/>
+	</wsdl:operation>
+
+    </wsdl:binding>
+    
+    <wsdl:service name="XMLService">
+	<wsdl:port binding="tns:Greeter_XMLBinding" name="XMLPort">
+	    <http:address location="http://localhost:9031/XMLService/XMLPort"/>
+	</wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

Propchange: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/hello_world_xml_bare.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/hello_world_xml_bare.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/hello_world_xml_bare.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/jms_test.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/jms_test.wsdl?view=auto&rev=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/jms_test.wsdl
(added)
+++ incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/jms_test.wsdl
Fri Jan  5 03:20:06 2007
@@ -0,0 +1,434 @@
+<?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.
+-->
+<definitions name="HelloWorldService" 
+    targetNamespace="http://cxf.apache.org/hello_world_jms" 
+    xmlns="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:jms="http://cxf.apache.org/transports/jms" 
+    xmlns:x1="http://cxf.apache.org/hello_world_jms/types"
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
+    xmlns:tns="http://cxf.apache.org/hello_world_jms" 
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+    <types>
+        <schema targetNamespace="http://cxf.apache.org/hello_world_jms/types"      xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:x1="http://cxf.apache.org/hello_world_jms/types" elementFormDefault="qualified">
+            <complexType name="ErrorCode">
+                 <sequence>
+                    <element name="minor" type="short"/>
+                    <element name="major" type="short"/>
+                </sequence>
+            </complexType>
+                <complexType name="testRpcLitFault">
+                    <sequence>
+                        <element name="faultType" type="string"/>
+                    </sequence>
+                </complexType>
+                <complexType name="testRpcLitFaultResponse">
+                    <sequence/>
+                </complexType>
+
+                <complexType name="NoSuchCodeLit">
+                    <sequence>
+                        <element name="code" type="x1:ErrorCode"/>
+                    </sequence>
+                </complexType>
+            <complexType name="BadRecord">
+                <sequence>
+                    <element name="reason" type="string"/>
+                    <element name="code" type="short"/>
+                </sequence>
+            </complexType>
+        </schema>
+    </types>
+
+    <message name="greetMe">
+        <part name="stringParam0" type="xsd:string"/>
+    </message>
+    <message name="greetMeResponse">
+        <part name="return" type="xsd:string"/>
+    </message>
+    <message name="sayHi"/>
+    <message name="sayHiResponse">
+        <part name="return" type="xsd:string"/>
+    </message>
+    <message name="greetMeOneWay">
+        <part name="stringParam0" type="xsd:string"/>
+    </message>
+    
+    <message name="testRpcLitFaultRequest">
+        <part name="in" type="xsd:string"/>
+    </message>
+    <message name="testRpcLitFaultResponse">
+        <part name="out" type="x1:testRpcLitFaultResponse"/>
+    </message>
+    <message name="NoSuchCodeLitFault">
+        <part name="NoSuchCodeLit" type="x1:NoSuchCodeLit"/>
+    </message>
+    <message name="BadRecordLitFault">
+        <part name="BadRecordLit" type="xsd:string"/>
+    </message>
+    
+    <portType name="HelloWorldPortType">
+        <operation name="greetMe">
+            <input message="tns:greetMe" name="greetMe"/>
+            <output message="tns:greetMeResponse" name="greetMeResponse"/>
+        </operation>
+        <operation name="sayHi">
+            <input message="tns:sayHi" name="sayHi"/>
+            <output message="tns:sayHiResponse" name="sayHiResponse"/>
+        </operation>
+        <operation name="greetMeOneWay">
+            <input message="tns:greetMeOneWay" name="greetMeOneWay"/>
+        </operation>
+        <operation name="testRpcLitFault">
+            <input name="testRpcLitFaultRequest" message="tns:testRpcLitFaultRequest"/>
+            <output name="testRpcLitFaultResponse" message="tns:testRpcLitFaultResponse"/>
+            <fault name="NoSuchCodeLitFault" message="tns:NoSuchCodeLitFault"/>
+            <fault name="BadRecordLitFault" message="tns:BadRecordLitFault"/>
+        </operation>
+    </portType>
+    
+    <portType name="HelloWorldOneWayPort">
+        <operation name="greetMeOneWay">
+            <input message="tns:greetMeOneWay" name="greetMeOneWay"/>
+        </operation>
+    </portType>
+    
+    <portType name="HelloWorldPubSubPort">
+        <operation name="greetMeOneWay">
+            <input message="tns:greetMeOneWay" name="greetMeOneWay"/>
+        </operation>
+    </portType>
+    
+    <binding name="HelloWorldPortBinding" type="tns:HelloWorldPortType">
+        <soap:binding style="rpc" transport="http://cxf.apache.org/transports/jms"/>
+        <operation name="greetMe">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="greetMe">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="greetMeResponse">
+                <soap:body  
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="sayHi">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="sayHi">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="sayHiResponse">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="greetMeOneWay">
+            <soap:operation style="rpc"/>
+            <input name="greetMeOneWay">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+        </operation>
+
+         <operation name="testRpcLitFault">
+            <soap:operation style="rpc"/>
+            <input>
+                <soap:body namespace="http://cxf.apache.org/hello_world_jms"  use="literal"/>
+            </input>
+            <output>
+                <soap:body namespace="http://cxf.apache.org/hello_world_jms"  use="literal"/>
+            </output>
+            <fault name="NoSuchCodeLitFault">
+                <soap:fault name="NoSuchCodeLitFault" namespace="http://cxf.apache.org/hello_world_jms"
use="literal"/>
+            </fault>
+            <fault name="BadRecordLitFault">
+                <soap:fault name="BadRecordLitFault" namespace="http://cxf.apache.org/hello_world_jms"
use="literal"/>
+            </fault>
+        </operation>
+    </binding>
+
+    <binding name="HelloWorldQueueBinMsgBinding" type="tns:HelloWorldPortType">
+        <soap:binding style="rpc" transport="http://cxf.apache.org/transports/jms"/>
+        <operation name="greetMe">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="greetMe">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="greetMeResponse">
+                <soap:body  
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="sayHi">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="sayHi">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="sayHiResponse">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="greetMeOneWay">
+            <soap:operation style="rpc"/>
+            <input name="greetMeOneWay">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+        </operation>
+    </binding>
+    
+    <binding name="HWStaticReplyQTextPortBinding" type="tns:HelloWorldPortType">
+        <soap:binding style="rpc" transport="http://cxf.apache.org/transports/jms"/>
+        <operation name="greetMe">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="greetMe">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="greetMeResponse">
+                <soap:body  
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="sayHi">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="sayHi">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="sayHiResponse">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="greetMeOneWay">
+            <soap:operation style="rpc"/>
+            <input name="greetMeOneWay">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+        </operation>
+    </binding>
+
+    <binding name="HWStaticReplyQBinMsgBinding" type="tns:HelloWorldPortType">
+        <soap:binding style="rpc" transport="http://cxf.apache.org/transports/jms"/>
+        <operation name="greetMe">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="greetMe">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="greetMeResponse">
+                <soap:body  
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="sayHi">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="sayHi">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="sayHiResponse">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="greetMeOneWay">
+            <soap:operation style="rpc"/>
+            <input name="greetMeOneWay">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+        </operation>
+    </binding>
+    
+    <binding name="HWJMSAddressingBinding" type="tns:HelloWorldPortType">
+    <soap:binding style="rpc" transport="http://cxf.apache.org/transports/jms"/>
+        <operation name="greetMe">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="greetMe">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="greetMeResponse">
+                <soap:body  
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="sayHi">
+            <soap:operation soapAction="" style="rpc"/>
+            <input name="sayHi">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+            <output name="sayHiResponse">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </output>
+        </operation>
+        <operation name="greetMeOneWay">
+            <soap:operation style="rpc"/>
+            <input name="greetMeOneWay">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+        </operation>
+    </binding>
+    
+    
+    <binding name="HelloWorldOneWayBinding" type="tns:HelloWorldOneWayPort">
+        <soap:binding style="rpc" transport="http://cxf.apache.org/transports/jms"/>
+        <operation name="greetMeOneWay">
+            <soap:operation style="rpc"/>
+            <input name="greetMeOneWay">
+                <soap:body 
+                    namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+            </input>
+        </operation>
+    </binding>
+    
+     <binding name="HelloWorldPubSubBinding" type="tns:HelloWorldPubSubPort">
+            <soap:binding style="rpc" transport="http://cxf.apache.org/transports/jms"/>
+            <operation name="greetMeOneWay">
+                <soap:operation style="rpc"/>
+                <input name="greetMeOneWay">
+                    <soap:body 
+                        namespace="http://cxf.apache.org/hello_world_jms" use="literal"/>
+                </input>
+            </operation>
+    </binding>
+    
+    <service name="HelloWorldQueueBinMsgService">
+        <port binding="tns:HelloWorldQueueBinMsgBinding" name="HelloWorldQueueBinMsgPort">
+            <jms:address
+               jndiConnectionFactoryName="ConnectionFactory" 
+               jndiDestinationName="dynamicQueues/test.jmstransport.binary">
+               <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.activemq.jndi.ActiveMQInitialContextFactory"/>
+               <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
+            </jms:address>
+            
+            <jms:client messageType="binary"/>
+            <jms:server durableSubscriberName="CXF_subscriber"/>
+        </port>
+    </service>
+    
+    <service name="HelloWorldService">
+           <port binding="tns:HelloWorldPortBinding" name="HelloWorldPort">
+               <jms:address
+                   jndiConnectionFactoryName="ConnectionFactory" 
+                   jndiDestinationName="dynamicQueues/test.jmstransport.text">
+                   <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+                   <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
+               </jms:address>
+            
+               <jms:server durableSubscriberName="CXF_subscriber"/>
+           </port>
+    </service>
+    
+    <service name="HelloWorldServiceLoop">
+        <port binding="tns:HWStaticReplyQBinMsgBinding" name="HelloWorldPortLoop">
+            <jms:address
+                jndiConnectionFactoryName="ConnectionFactory" 
+                jndiDestinationName="dynamicQueues/test.jmstransport.binary"
+                jndiReplyDestinationName="dynamicQueues/test.jmstransport.binary">
+                <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+                <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
+            </jms:address>
+            
+            <jms:client messageType="binary"/>
+            <jms:server durableSubscriberName="CXF_subscriber"/>
+        </port>
+    </service>
+    
+    <service name="HWStaticReplyQBinMsgService">
+        <port binding="tns:HWStaticReplyQBinMsgBinding" name="HWStaticReplyQBinMsgPort">
+            <jms:address
+                jndiConnectionFactoryName="ConnectionFactory" 
+                jndiDestinationName="dynamicQueues/test.jmstransport.binary"
+                jndiReplyDestinationName="dynamicQueues/test.jmstransport.binary.reply">
+                <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+                <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
+            </jms:address>
+            
+            <jms:client messageType="binary"/>
+            <jms:server durableSubscriberName="CXF_subscriber"/>
+        </port>
+    </service>
+
+    <service name="HWStaticReplyQTextMsgService">
+           <port binding="tns:HWStaticReplyQTextPortBinding" name="HWStaticReplyQTextPort">
+
+           <jms:address
+               jndiConnectionFactoryName="ConnectionFactory" 
+               jndiDestinationName="dynamicQueues/test.jmstransport.text"
+               jndiReplyDestinationName="dynamicQueues/test.jmstransport.text.reply">
+               <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+               <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
+            </jms:address>
+            
+            <jms:server durableSubscriberName="CXF_subscriber"/>
+           </port>
+    </service>
+    
+    <service name="HelloWorldOneWayQueueService">
+        <port binding="tns:HelloWorldOneWayBinding" name="HelloWorldOneWayQueuePort">
+            <jms:address
+               jndiConnectionFactoryName="ConnectionFactory" 
+               jndiDestinationName="dynamicQueues/test.jmstransport.oneway">
+               <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+               <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
+            </jms:address>
+            
+            <jms:server durableSubscriberName="CXF_subscriber"/>
+        </port>
+    </service>
+    
+    <service name="HelloWorldPubSubService">
+        <port binding="tns:HelloWorldPubSubBinding" name="HelloWorldPubSubPort">
+            <jms:address
+               destinationStyle="topic"
+               jndiConnectionFactoryName="ConnectionFactory" 
+               jndiDestinationName="dynamicTopics/test.jmstransport.oneway.topic">
+               <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+               <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
+            </jms:address>
+        </port>
+    </service>
+    
+    <service name="JMSSOAPServiceAddressing">
+        <port binding="tns:HWJMSAddressingBinding" name="HWJMSAddressingPort">
+            <jms:address
+               jndiConnectionFactoryName="ConnectionFactory" 
+               jndiDestinationName="dynamicQueues/test.jms.addr.queue"
+               jndiReplyDestinationName="dynamicQueues/test.jms.addr.reply.queue">
+               <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+               <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61500"/>
+            </jms:address>
+            <wswa:UsingAddressing xmlns:wswa="http://www.w3.org/2005/08/addressing/wsdl"/>
+        </port>
+    </service>
+    
+</definitions>
+
+

Propchange: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/jms_test.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/jms_test.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/tools2/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/jms_test.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/tools2/wsdlto/test/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools2/wsdlto/test/pom.xml?view=diff&rev=492984&r1=492983&r2=492984
==============================================================================
--- incubator/cxf/trunk/tools2/wsdlto/test/pom.xml (original)
+++ incubator/cxf/trunk/tools2/wsdlto/test/pom.xml Fri Jan  5 03:20:06 2007
@@ -42,116 +42,28 @@
 	    <version>${project.version}</version>
 	</dependency>
 	<dependency>
-	    <groupId>org.apache.cxf</groupId>
-	    <artifactId>cxf-common-schemas</artifactId>
-	    <version>${project.version}</version>
-	    <scope>test</scope>
-	</dependency>
-	<dependency>
-	    <groupId>org.apache.cxf</groupId>
-	    <artifactId>cxf-tools-validator</artifactId>
-	    <version>${project.version}</version>
-	</dependency>
-	<dependency>
-	    <groupId>org.apache.cxf</groupId>
-	    <artifactId>cxf-rt-core</artifactId>
-	    <version>${project.version}</version>
-	</dependency>
-
-	<dependency>
-	    <groupId>org.apache.cxf</groupId>
-	    <artifactId>cxf-api</artifactId>
-	    <version>${project.version}</version>
-	</dependency>
-
-	<dependency>
 	    <groupId>junit</groupId>
 	    <artifactId>junit</artifactId>
 	    <scope>test</scope>
 	</dependency>
-	<dependency>
-	    <groupId>org.easymock</groupId>
-	    <artifactId>easymockclassextension</artifactId>
-	    <scope>test</scope>
-	</dependency>
-	<dependency>
-	    <groupId>asm</groupId>
-	    <artifactId>asm</artifactId>
-	    <scope>test</scope>
-	</dependency>
 
-	<dependency>
-	    <groupId>velocity</groupId>
-	    <artifactId>velocity</artifactId>
-	</dependency>
-	<dependency>
-	    <groupId>wsdl4j</groupId>
-	    <artifactId>wsdl4j</artifactId>
-	</dependency>
-	<dependency>
-	    <groupId>com.sun.xml.bind</groupId>
-	    <artifactId>jaxb-xjc</artifactId>
-	</dependency>
-	<dependency>
-	    <groupId>com.sun.xml.bind</groupId>
-	    <artifactId>jaxb-impl</artifactId>
-	</dependency>
-	<dependency>
-	    <groupId>javax.xml.ws</groupId>
-	    <artifactId>jaxws-api</artifactId>
-	</dependency>
-	<dependency>
-	    <groupId>javax.xml.soap</groupId>
-	    <artifactId>saaj-api</artifactId>
-	</dependency>
-	<dependency>
-	    <groupId>woodstox</groupId>
-	    <artifactId>wstx-asl</artifactId>
-	    <scope>runtime</scope>
-	</dependency>
-	<dependency>
-	    <groupId>org.apache.cxf</groupId>
-	    <artifactId>cxf-common-utilities</artifactId>
-	    <version>${project.version}</version>
-	</dependency>
-	<dependency>
+        <dependency>
 	    <groupId>org.apache.cxf</groupId>
-	    <artifactId>cxf-common-schemas</artifactId>
+	    <artifactId>cxf-tools2-wsdlto-core</artifactId>
 	    <version>${project.version}</version>
 	</dependency>
-<!--
-	<dependency>
-	    <groupId>org.codehaus.castor</groupId>
-	    <artifactId>castor</artifactId>
-	    <version>1.0.4</version>
-	</dependency>
--->
-        
-        <dependency>
-		<groupId>org.apache.cxf</groupId>
-		<artifactId>cxf-tools2-wsdlto-core</artifactId>
-		<version>${project.version}</version>
-	</dependency>
 	
-	
-	<dependency>
-		    <groupId>org.apache.cxf</groupId>
-		    <artifactId>cxf-tools-wsdl2java</artifactId>
-		    <version>${project.version}</version>
-	</dependency>
-		
-		 
 	<dependency>
-		<groupId>org.apache.cxf</groupId>
-		<artifactId>cxf-tools2-wsdlto-databinding-jaxb</artifactId>
-		<version>${project.version}</version>	 	
+	    <groupId>org.apache.cxf</groupId>
+	    <artifactId>cxf-tools2-wsdlto-databinding-jaxb</artifactId>
+	    <version>${project.version}</version>	 	
 	</dependency>
 	
 	
 	<dependency>
-		<groupId>org.apache.cxf</groupId>
-		<artifactId>cxf-tools2-wsdlto-core</artifactId>
-		<version>${project.version}</version>
+	    <groupId>org.apache.cxf</groupId>
+	    <artifactId>cxf-tools2-wsdlto-core</artifactId>
+	    <version>${project.version}</version>
 	</dependency>
     </dependencies>
 </project>



Mime
View raw message