You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2008/02/23 03:56:00 UTC
svn commit: r630381 [7/8] - in /incubator/cxf/trunk/rt:
bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/
core/src/main/java/org/apache/cxf/databinding/source/mime/
core/src/main/java/org/apache/cxf/interceptor/ core/src/main/java/org/ap...
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrapped.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrapped.java?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrapped.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrapped.java Fri Feb 22 18:55:53 2008
@@ -1,69 +1,69 @@
-/**
- * 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.javascript.fortest;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-import javax.xml.ws.RequestWrapper;
-import javax.xml.ws.ResponseWrapper;
-
-/**
- *
- */
-@WebService(targetNamespace = "uri:org.apache.cxf.javascript.fortest")
-public interface SimpleDocLitWrapped {
- @RequestWrapper(className = "org.apache.cxf.javascript.fortest.BasicTypeFunctionReturnStringWrapper")
- @ResponseWrapper(className = "org.apache.cxf.javascript.fortest.StringWrapper")
- @WebResult(name = "returnValue", targetNamespace = "uri:org.apache.cxf.javascript.testns")
- @WebMethod
- String basicTypeFunctionReturnString(@WebParam(name = "s") String s,
- @WebParam(name = "i") int i,
- @WebParam(name = "l") long l,
- @WebParam(name = "f") float f,
- @WebParam(name = "d") double d);
-
- @WebMethod
- String basicTypeFunctionReturnStringNoWrappers(@WebParam(name = "s") String s,
- @WebParam(name = "i") int i,
- @WebParam(name = "l") long l,
- @WebParam(name = "f") float f,
- @WebParam(name = "d") double d);
-
- @WebMethod
- TestBean1 functionReturnTestBean1();
-
- @WebMethod
- int basicTypeFunctionReturnInt(@WebParam(name = "s") String s,
- @WebParam(name = "i") int i,
- @WebParam(name = "l") long l,
- @WebParam(name = "f") float f,
- @WebParam(name = "d") double d);
-
- @RequestWrapper(className = "org.apache.cxf.javascript.fortest.BeanRequestWrapper")
- @WebMethod
- void beanFunctionWithWrapper(@WebParam(name = "bean1") TestBean1 bean,
- @WebParam(name = "beanArray") TestBean1[] beans);
-
- @WebMethod
- void beanFunction(@WebParam(name = "bean1") TestBean1 bean,
- @WebParam(name = "beanArray") TestBean1[] beans);
-}
+/**
+ * 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.javascript.fortest;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/**
+ *
+ */
+@WebService(targetNamespace = "uri:org.apache.cxf.javascript.fortest")
+public interface SimpleDocLitWrapped {
+ @RequestWrapper(className = "org.apache.cxf.javascript.fortest.BasicTypeFunctionReturnStringWrapper")
+ @ResponseWrapper(className = "org.apache.cxf.javascript.fortest.StringWrapper")
+ @WebResult(name = "returnValue", targetNamespace = "uri:org.apache.cxf.javascript.testns")
+ @WebMethod
+ String basicTypeFunctionReturnString(@WebParam(name = "s") String s,
+ @WebParam(name = "i") int i,
+ @WebParam(name = "l") long l,
+ @WebParam(name = "f") float f,
+ @WebParam(name = "d") double d);
+
+ @WebMethod
+ String basicTypeFunctionReturnStringNoWrappers(@WebParam(name = "s") String s,
+ @WebParam(name = "i") int i,
+ @WebParam(name = "l") long l,
+ @WebParam(name = "f") float f,
+ @WebParam(name = "d") double d);
+
+ @WebMethod
+ TestBean1 functionReturnTestBean1();
+
+ @WebMethod
+ int basicTypeFunctionReturnInt(@WebParam(name = "s") String s,
+ @WebParam(name = "i") int i,
+ @WebParam(name = "l") long l,
+ @WebParam(name = "f") float f,
+ @WebParam(name = "d") double d);
+
+ @RequestWrapper(className = "org.apache.cxf.javascript.fortest.BeanRequestWrapper")
+ @WebMethod
+ void beanFunctionWithWrapper(@WebParam(name = "bean1") TestBean1 bean,
+ @WebParam(name = "beanArray") TestBean1[] beans);
+
+ @WebMethod
+ void beanFunction(@WebParam(name = "bean1") TestBean1 bean,
+ @WebParam(name = "beanArray") TestBean1[] beans);
+}
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrapped.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrapped.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrappedImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrappedImpl.java?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrappedImpl.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrappedImpl.java Fri Feb 22 18:55:53 2008
@@ -1,118 +1,118 @@
-/**
- * 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.javascript.fortest;
-
-import javax.jws.WebService;
-
-//import org.apache.cxf.feature.Features;
-
-/**
- *
- */
-@WebService(endpointInterface = "org.apache.cxf.javascript.fortest.SimpleDocLitWrapped",
- targetNamespace = "uri:org.apache.cxf.javascript.fortest")
-//@org.apache.cxf.feature.Features(features = "org.apache.cxf.feature.LoggingFeature")
-public class SimpleDocLitWrappedImpl implements SimpleDocLitWrapped {
-
- private String lastString;
- private int lastInt;
- private long lastLong;
- private float lastFloat;
- private double lastDouble;
- private TestBean1 lastBean1;
- private TestBean1[] lastBean1Array;
-
- /** {@inheritDoc}*/
- public int basicTypeFunctionReturnInt(String s, int i, long l, float f, double d) {
- lastString = s;
- lastInt = i;
- lastLong = l;
- lastFloat = f;
- lastDouble = d;
- return 42;
- }
-
- /** {@inheritDoc}*/
- public String basicTypeFunctionReturnString(String s, int i, long l, float f, double d) {
- lastString = s;
- lastInt = i;
- lastLong = l;
- lastFloat = f;
- lastDouble = d;
- return "eels";
- }
-
- /** {@inheritDoc}*/
- public String basicTypeFunctionReturnStringNoWrappers(String s, int i, long l, float f, double d) {
- lastString = s;
- lastInt = i;
- lastLong = l;
- lastFloat = f;
- lastDouble = d;
- return "cetaceans";
- }
-
- /** {@inheritDoc}*/
- public void beanFunction(TestBean1 bean, TestBean1[] beans) {
- lastBean1 = bean;
- lastBean1Array = beans;
- }
-
- /** {@inheritDoc}*/
- public void beanFunctionWithWrapper(TestBean1 bean, TestBean1[] beans) {
- lastBean1 = bean;
- lastBean1Array = beans;
- }
-
- /** {@inheritDoc}*/
- public TestBean1 functionReturnTestBean1() {
- TestBean1 bean1 = new TestBean1();
- bean1.intItem = 42;
- return bean1;
- }
-
- public String getLastString() {
- return lastString;
- }
-
- public int getLastInt() {
- return lastInt;
- }
-
- public long getLastLong() {
- return lastLong;
- }
-
- public float getLastFloat() {
- return lastFloat;
- }
-
- public double getLastDouble() {
- return lastDouble;
- }
-
- public TestBean1 getLastBean1() {
- return lastBean1;
- }
-
- public TestBean1[] getLastBean1Array() {
- return lastBean1Array;
- }
-}
+/**
+ * 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.javascript.fortest;
+
+import javax.jws.WebService;
+
+//import org.apache.cxf.feature.Features;
+
+/**
+ *
+ */
+@WebService(endpointInterface = "org.apache.cxf.javascript.fortest.SimpleDocLitWrapped",
+ targetNamespace = "uri:org.apache.cxf.javascript.fortest")
+//@org.apache.cxf.feature.Features(features = "org.apache.cxf.feature.LoggingFeature")
+public class SimpleDocLitWrappedImpl implements SimpleDocLitWrapped {
+
+ private String lastString;
+ private int lastInt;
+ private long lastLong;
+ private float lastFloat;
+ private double lastDouble;
+ private TestBean1 lastBean1;
+ private TestBean1[] lastBean1Array;
+
+ /** {@inheritDoc}*/
+ public int basicTypeFunctionReturnInt(String s, int i, long l, float f, double d) {
+ lastString = s;
+ lastInt = i;
+ lastLong = l;
+ lastFloat = f;
+ lastDouble = d;
+ return 42;
+ }
+
+ /** {@inheritDoc}*/
+ public String basicTypeFunctionReturnString(String s, int i, long l, float f, double d) {
+ lastString = s;
+ lastInt = i;
+ lastLong = l;
+ lastFloat = f;
+ lastDouble = d;
+ return "eels";
+ }
+
+ /** {@inheritDoc}*/
+ public String basicTypeFunctionReturnStringNoWrappers(String s, int i, long l, float f, double d) {
+ lastString = s;
+ lastInt = i;
+ lastLong = l;
+ lastFloat = f;
+ lastDouble = d;
+ return "cetaceans";
+ }
+
+ /** {@inheritDoc}*/
+ public void beanFunction(TestBean1 bean, TestBean1[] beans) {
+ lastBean1 = bean;
+ lastBean1Array = beans;
+ }
+
+ /** {@inheritDoc}*/
+ public void beanFunctionWithWrapper(TestBean1 bean, TestBean1[] beans) {
+ lastBean1 = bean;
+ lastBean1Array = beans;
+ }
+
+ /** {@inheritDoc}*/
+ public TestBean1 functionReturnTestBean1() {
+ TestBean1 bean1 = new TestBean1();
+ bean1.intItem = 42;
+ return bean1;
+ }
+
+ public String getLastString() {
+ return lastString;
+ }
+
+ public int getLastInt() {
+ return lastInt;
+ }
+
+ public long getLastLong() {
+ return lastLong;
+ }
+
+ public float getLastFloat() {
+ return lastFloat;
+ }
+
+ public double getLastDouble() {
+ return lastDouble;
+ }
+
+ public TestBean1 getLastBean1() {
+ return lastBean1;
+ }
+
+ public TestBean1[] getLastBean1Array() {
+ return lastBean1Array;
+ }
+}
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrappedImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleDocLitWrappedImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPC.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPC.java?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPC.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPC.java Fri Feb 22 18:55:53 2008
@@ -1,40 +1,40 @@
-/**
- * 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.javascript.fortest;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * Test SEI for RPC.
- */
-@WebService(targetNamespace = "uri:cxf.apache.org.javascript.rpc")
-@SOAPBinding(style = SOAPBinding.Style.RPC)
-public interface SimpleRPC {
- @WebMethod
- String simpleType(@WebParam(name = "P1") String p1, @WebParam(name = "P2") int p2);
- @WebMethod
- void returnVoid(@WebParam(name = "P1") String p1, @WebParam(name = "P2") int p2);
- @WebMethod
- void beanType(@WebParam(name = "param1") TestBean1 p1);
-
-}
+/**
+ * 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.javascript.fortest;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * Test SEI for RPC.
+ */
+@WebService(targetNamespace = "uri:cxf.apache.org.javascript.rpc")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface SimpleRPC {
+ @WebMethod
+ String simpleType(@WebParam(name = "P1") String p1, @WebParam(name = "P2") int p2);
+ @WebMethod
+ void returnVoid(@WebParam(name = "P1") String p1, @WebParam(name = "P2") int p2);
+ @WebMethod
+ void beanType(@WebParam(name = "param1") TestBean1 p1);
+
+}
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPC.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPC.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPCImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPCImpl.java?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPCImpl.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPCImpl.java Fri Feb 22 18:55:53 2008
@@ -1,78 +1,78 @@
-/**
- * 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.javascript.fortest;
-
-import javax.jws.WebService;
-
-@WebService(targetNamespace = "uri:cxf.apache.org.javascript.rpc",
- endpointInterface = "org.apache.cxf.javascript.fortest.SimpleRPC")
-//@org.apache.cxf.feature.Features(features = "org.apache.cxf.feature.LoggingFeature")
-public class SimpleRPCImpl implements SimpleRPC {
-
- private String lastString;
- private int lastInt;
- private TestBean1 lastBean;
-
- public void resetLastValues() {
- lastString = null;
- lastInt = -1;
- lastBean = null;
- }
-
- public void returnVoid(String p1, int p2) {
- lastString = p1;
- lastInt = p2;
- }
-
- public String simpleType(String p1, int p2) {
- lastString = p1;
- lastInt = p2;
- return lastString;
- }
-
- public void beanType(TestBean1 p1) {
- lastBean = p1;
- }
-
- public String getLastString() {
- return lastString;
- }
-
- public void setLastString(String lastString) {
- this.lastString = lastString;
- }
-
- public int getLastInt() {
- return lastInt;
- }
-
- public void setLastInt(int lastInt) {
- this.lastInt = lastInt;
- }
-
- public TestBean1 getLastBean() {
- return lastBean;
- }
-
- public void setLastBean(TestBean1 lastBean) {
- this.lastBean = lastBean;
- }
-
-}
+/**
+ * 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.javascript.fortest;
+
+import javax.jws.WebService;
+
+@WebService(targetNamespace = "uri:cxf.apache.org.javascript.rpc",
+ endpointInterface = "org.apache.cxf.javascript.fortest.SimpleRPC")
+//@org.apache.cxf.feature.Features(features = "org.apache.cxf.feature.LoggingFeature")
+public class SimpleRPCImpl implements SimpleRPC {
+
+ private String lastString;
+ private int lastInt;
+ private TestBean1 lastBean;
+
+ public void resetLastValues() {
+ lastString = null;
+ lastInt = -1;
+ lastBean = null;
+ }
+
+ public void returnVoid(String p1, int p2) {
+ lastString = p1;
+ lastInt = p2;
+ }
+
+ public String simpleType(String p1, int p2) {
+ lastString = p1;
+ lastInt = p2;
+ return lastString;
+ }
+
+ public void beanType(TestBean1 p1) {
+ lastBean = p1;
+ }
+
+ public String getLastString() {
+ return lastString;
+ }
+
+ public void setLastString(String lastString) {
+ this.lastString = lastString;
+ }
+
+ public int getLastInt() {
+ return lastInt;
+ }
+
+ public void setLastInt(int lastInt) {
+ this.lastInt = lastInt;
+ }
+
+ public TestBean1 getLastBean() {
+ return lastBean;
+ }
+
+ public void setLastBean(TestBean1 lastBean) {
+ this.lastBean = lastBean;
+ }
+
+}
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPCImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/SimpleRPCImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/StringWrapper.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/StringWrapper.java?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/StringWrapper.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/StringWrapper.java Fri Feb 22 18:55:53 2008
@@ -1,41 +1,41 @@
-/**
- * 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.javascript.fortest;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- *
- */
-@XmlRootElement(namespace = "uri:org.apache.cxf.javascript.testns")
-@XmlType(namespace = "uri:org.apache.cxf.javascript.testns")
-public class StringWrapper {
- private String returnValue;
-
- public String getReturnValue() {
- return returnValue;
- }
-
- public void setReturnValue(String returnValue) {
- this.returnValue = returnValue;
- }
-
-}
+/**
+ * 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.javascript.fortest;
+
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ *
+ */
+@XmlRootElement(namespace = "uri:org.apache.cxf.javascript.testns")
+@XmlType(namespace = "uri:org.apache.cxf.javascript.testns")
+public class StringWrapper {
+ private String returnValue;
+
+ public String getReturnValue() {
+ return returnValue;
+ }
+
+ public void setReturnValue(String returnValue) {
+ this.returnValue = returnValue;
+ }
+
+}
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/StringWrapper.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/StringWrapper.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean1.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean1.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean2.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean2.java?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean2.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean2.java Fri Feb 22 18:55:53 2008
@@ -1,62 +1,62 @@
-/**
- * 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.javascript.fortest;
-
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * A second test class to test references.
- */
-@XmlType(namespace = "uri:org.apache.cxf.javascript.testns3")
-public class TestBean2 {
-
- public TestBean2() {
- stringItem = "testBean2.stringItem";
- }
-
- public TestBean2(String id) {
- stringItem = id;
- }
-
- @Override
- public String toString() {
- return "TestBean2 " + stringItem;
- }
-
- //CHECKSTYLE:OFF
- public String stringItem;
- //CHECKSTYLE:ON
- @Override
- public boolean equals(Object obj) {
- if (!(obj instanceof TestBean2)) {
- return false;
- }
- TestBean2 other = (TestBean2) obj;
- return stringItem.equals(other.stringItem);
-
- }
-
- @Override
- public int hashCode() {
- return stringItem.hashCode();
- }
-
-
-}
+/**
+ * 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.javascript.fortest;
+
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * A second test class to test references.
+ */
+@XmlType(namespace = "uri:org.apache.cxf.javascript.testns3")
+public class TestBean2 {
+
+ public TestBean2() {
+ stringItem = "testBean2.stringItem";
+ }
+
+ public TestBean2(String id) {
+ stringItem = id;
+ }
+
+ @Override
+ public String toString() {
+ return "TestBean2 " + stringItem;
+ }
+
+ //CHECKSTYLE:OFF
+ public String stringItem;
+ //CHECKSTYLE:ON
+ @Override
+ public boolean equals(Object obj) {
+ if (!(obj instanceof TestBean2)) {
+ return false;
+ }
+ TestBean2 other = (TestBean2) obj;
+ return stringItem.equals(other.stringItem);
+
+ }
+
+ @Override
+ public int hashCode() {
+ return stringItem.hashCode();
+ }
+
+
+}
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean2.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean2.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean3.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/TestBean3.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.html
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.html?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.html (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.html Fri Feb 22 18:55:53 2008
@@ -1,9 +1,9 @@
-<html>
-<body>
-<p>
-To refine the JavaScript code, we need some relatively compact schemata that cover the edge cases.
-None of the testutils services quite do the job. It is possible that the content in here could
-be refactored with testutils.
-</p>
-</body>
+<html>
+<body>
+<p>
+To refine the JavaScript code, we need some relatively compact schemata that cover the edge cases.
+None of the testutils services quite do the job. It is possible that the content in here could
+be refactored with testutils.
+</p>
+</body>
</html>
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.html
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.java?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.java Fri Feb 22 18:55:53 2008
@@ -1,28 +1,28 @@
-/**
- * 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.
- */
-
-@javax.xml.bind.annotation.XmlSchema(xmlns = {
- @javax.xml.bind.annotation.XmlNs(
- namespaceURI = "uri:org.apache.cxf.javascript.testns3",
- prefix = "Plan3")
- }
- ,
- elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED
- )
+/**
+ * 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.
+ */
+
+@javax.xml.bind.annotation.XmlSchema(xmlns = {
+ @javax.xml.bind.annotation.XmlNs(
+ namespaceURI = "uri:org.apache.cxf.javascript.testns3",
+ prefix = "Plan3")
+ }
+ ,
+ elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED
+ )
package org.apache.cxf.javascript.fortest;
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/fortest/package-info.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/types/SerializationTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/types/SerializationTest.java?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/types/SerializationTest.java (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/types/SerializationTest.java Fri Feb 22 18:55:53 2008
@@ -1,214 +1,214 @@
-/**
- * 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.javascript.types;
-
-import java.io.IOException;
-import java.io.StringReader;
-import java.io.StringWriter;
-import java.util.Collection;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamReader;
-import javax.xml.stream.XMLStreamWriter;
-
-import org.apache.cxf.Bus;
-import org.apache.cxf.databinding.DataBinding;
-import org.apache.cxf.databinding.DataReader;
-import org.apache.cxf.databinding.DataWriter;
-import org.apache.cxf.endpoint.Client;
-import org.apache.cxf.javascript.BasicNameManager;
-import org.apache.cxf.javascript.JavascriptTestUtilities;
-import org.apache.cxf.javascript.NameManager;
-import org.apache.cxf.javascript.NamespacePrefixAccumulator;
-import org.apache.cxf.javascript.fortest.TestBean1;
-import org.apache.cxf.javascript.fortest.TestBean2;
-import org.apache.cxf.javascript.fortest.TestBean3;
-import org.apache.cxf.jaxb.JAXBDataBinding;
-import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
-import org.apache.cxf.service.model.SchemaInfo;
-import org.apache.cxf.service.model.ServiceInfo;
-import org.apache.cxf.test.AbstractCXFSpringTest;
-import org.apache.cxf.wsdl.EndpointReferenceUtils;
-import org.junit.Test;
-import org.springframework.context.support.GenericApplicationContext;
-
-public class SerializationTest extends AbstractCXFSpringTest {
- private JavascriptTestUtilities testUtilities;
- private XMLInputFactory xmlInputFactory;
- private XMLOutputFactory xmlOutputFactory;
- private Client client;
- private List<ServiceInfo> serviceInfos;
- private Collection<SchemaInfo> schemata;
- private NameManager nameManager;
- private JaxWsProxyFactoryBean clientProxyFactory;
-
- public SerializationTest() throws Exception {
- testUtilities = new JavascriptTestUtilities(getClass());
- testUtilities.addDefaultNamespaces();
- xmlInputFactory = XMLInputFactory.newInstance();
- xmlOutputFactory = XMLOutputFactory.newInstance();
- }
-
- @Override
- protected String[] getConfigLocations() {
- return new String[] {"classpath:serializationTestBeans.xml"};
- }
-
- @Test
- public void testEndpointGetSchema() throws IOException {
- setupClientAndRhino("simple-dlwu-proxy-factory");
- ServiceInfo serviceInfo = serviceInfos.get(0);
- EndpointReferenceUtils.getSchema(serviceInfo);
- }
-
- @Test
- public void testDeserialization() throws Exception {
- setupClientAndRhino("simple-dlwu-proxy-factory");
- testUtilities.readResourceIntoRhino("/deserializationTests.js");
- DataBinding dataBinding = new JAXBDataBinding(TestBean3.class, TestBean2.class);
- assertNotNull(dataBinding);
- TestBean3 bean = new TestBean3();
- bean.stringItem = "bean1>stringItem";
- bean.doubleItem = -1.0;
- String serialized = serializeObject(dataBinding, bean);
- testUtilities.rhinoCallInContext("deserializeTestBean3_1", serialized);
-
- bean = new TestBean3();
- bean.stringItem = null;
- bean.intItem = 21;
- bean.longItem = 200000001;
- bean.optionalIntItem = 456123;
- bean.optionalIntArrayItem = new int[4];
- bean.optionalIntArrayItem[0] = 3;
- bean.optionalIntArrayItem[1] = 1;
- bean.optionalIntArrayItem[2] = 4;
- bean.optionalIntArrayItem[3] = 1;
- bean.doubleItem = -1.0;
- serialized = serializeObject(dataBinding, bean);
- testUtilities.rhinoCallInContext("deserializeTestBean3_2", serialized);
- }
-
- private String serializeObject(DataBinding dataBinding, TestBean3 bean) throws XMLStreamException {
- DataWriter<XMLStreamWriter> writer = dataBinding.createWriter(XMLStreamWriter.class);
- StringWriter stringWriter = new StringWriter();
- XMLStreamWriter xmlStreamWriter = xmlOutputFactory.createXMLStreamWriter(stringWriter);
- writer.write(bean, xmlStreamWriter);
- xmlStreamWriter.flush();
- xmlStreamWriter.close();
- return stringWriter.toString();
- }
-
- @Test
- public void testSerialization() throws Exception {
- setupClientAndRhino("simple-dlwu-proxy-factory");
-
- testUtilities.readResourceIntoRhino("/serializationTests.js");
- DataBinding dataBinding = clientProxyFactory.getServiceFactory().getDataBinding();
- assertNotNull(dataBinding);
-
- Object serialized = testUtilities.rhinoCallInContext("serializeTestBean1_1");
- assertTrue(serialized instanceof String);
- String xml = (String)serialized;
- DataReader<XMLStreamReader> reader = dataBinding.createReader(XMLStreamReader.class);
- StringReader stringReader = new StringReader(xml);
- XMLStreamReader xmlStreamReader = xmlInputFactory.createXMLStreamReader(stringReader);
- QName testBeanQName = new QName("uri:org.apache.cxf.javascript.testns", "TestBean1");
- Object bean = reader.read(testBeanQName, xmlStreamReader, TestBean1.class);
- assertNotNull(bean);
- assertTrue(bean instanceof TestBean1);
- TestBean1 testBean = (TestBean1)bean;
- assertEquals("bean1<stringItem", testBean.stringItem);
- assertEquals(64, testBean.intItem);
- assertEquals(64000000, testBean.longItem);
- assertEquals(101, testBean.optionalIntItem);
- assertNotNull(testBean.optionalIntArrayItem);
- assertEquals(1, testBean.optionalIntArrayItem.length);
- assertEquals(543, testBean.optionalIntArrayItem[0]);
-
- serialized = testUtilities.rhinoCallInContext("serializeTestBean1_2");
- assertTrue(serialized instanceof String);
- xml = (String)serialized;
- reader = dataBinding.createReader(XMLStreamReader.class);
- stringReader = new StringReader(xml);
- xmlStreamReader = xmlInputFactory.createXMLStreamReader(stringReader);
- bean = reader.read(testBeanQName, xmlStreamReader, TestBean1.class);
- assertNotNull(bean);
- assertTrue(bean instanceof TestBean1);
- testBean = (TestBean1)bean;
- assertEquals("bean1<stringItem", testBean.stringItem);
- assertEquals(64, testBean.intItem);
- assertEquals(64000000, testBean.longItem);
- assertEquals(0, testBean.optionalIntItem);
- assertNotNull(testBean.optionalIntArrayItem);
- assertEquals(3, testBean.optionalIntArrayItem.length);
- assertEquals(543, testBean.optionalIntArrayItem[0]);
- assertEquals(0, testBean.optionalIntArrayItem[1]);
- assertEquals(345, testBean.optionalIntArrayItem[2]);
-
- serialized = testUtilities.rhinoCallInContext("serializeTestBean1_3");
- assertTrue(serialized instanceof String);
- xml = (String)serialized;
- reader = dataBinding.createReader(XMLStreamReader.class);
- stringReader = new StringReader(xml);
- xmlStreamReader = xmlInputFactory.createXMLStreamReader(stringReader);
- bean = reader.read(testBeanQName, xmlStreamReader, TestBean1.class);
- assertNotNull(bean);
- assertTrue(bean instanceof TestBean1);
- testBean = (TestBean1)bean;
- assertEquals("bean1<stringItem", testBean.stringItem);
- assertEquals(64, testBean.intItem);
- assertEquals(43, testBean.longItem);
- assertEquals(33, testBean.optionalIntItem);
- assertNull(testBean.optionalIntArrayItem);
- }
-
- private void setupClientAndRhino(String clientProxyFactoryBeanId) throws IOException {
- testUtilities.setBus(getBean(Bus.class, "cxf"));
-
- testUtilities.initializeRhino();
- testUtilities.readResourceIntoRhino("/org/apache/cxf/javascript/cxf-utils.js");
-
- clientProxyFactory = getBean(JaxWsProxyFactoryBean.class, clientProxyFactoryBeanId);
- client = clientProxyFactory.getClientFactoryBean().create();
- serviceInfos = client.getEndpoint().getService().getServiceInfos();
- // there can only be one.
- assertEquals(1, serviceInfos.size());
- ServiceInfo serviceInfo = serviceInfos.get(0);
- schemata = serviceInfo.getSchemas();
- nameManager = BasicNameManager.newNameManager(serviceInfo);
- NamespacePrefixAccumulator prefixAccumulator =
- new NamespacePrefixAccumulator(serviceInfo.getXmlSchemaCollection());
- for (SchemaInfo schema : schemata) {
- SchemaJavascriptBuilder builder = new SchemaJavascriptBuilder(serviceInfo
- .getXmlSchemaCollection(), prefixAccumulator, nameManager);
- String allThatJavascript = builder.generateCodeForSchema(schema);
- assertNotNull(allThatJavascript);
- testUtilities.readStringIntoRhino(allThatJavascript, schema.toString() + ".js");
- }
- }
-
- @Override
- protected void additionalSpringConfiguration(GenericApplicationContext context) throws Exception {
- }
-}
+/**
+ * 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.javascript.types;
+
+import java.io.IOException;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.util.Collection;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLOutputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLStreamWriter;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.databinding.DataBinding;
+import org.apache.cxf.databinding.DataReader;
+import org.apache.cxf.databinding.DataWriter;
+import org.apache.cxf.endpoint.Client;
+import org.apache.cxf.javascript.BasicNameManager;
+import org.apache.cxf.javascript.JavascriptTestUtilities;
+import org.apache.cxf.javascript.NameManager;
+import org.apache.cxf.javascript.NamespacePrefixAccumulator;
+import org.apache.cxf.javascript.fortest.TestBean1;
+import org.apache.cxf.javascript.fortest.TestBean2;
+import org.apache.cxf.javascript.fortest.TestBean3;
+import org.apache.cxf.jaxb.JAXBDataBinding;
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+import org.apache.cxf.service.model.SchemaInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+import org.apache.cxf.test.AbstractCXFSpringTest;
+import org.apache.cxf.wsdl.EndpointReferenceUtils;
+import org.junit.Test;
+import org.springframework.context.support.GenericApplicationContext;
+
+public class SerializationTest extends AbstractCXFSpringTest {
+ private JavascriptTestUtilities testUtilities;
+ private XMLInputFactory xmlInputFactory;
+ private XMLOutputFactory xmlOutputFactory;
+ private Client client;
+ private List<ServiceInfo> serviceInfos;
+ private Collection<SchemaInfo> schemata;
+ private NameManager nameManager;
+ private JaxWsProxyFactoryBean clientProxyFactory;
+
+ public SerializationTest() throws Exception {
+ testUtilities = new JavascriptTestUtilities(getClass());
+ testUtilities.addDefaultNamespaces();
+ xmlInputFactory = XMLInputFactory.newInstance();
+ xmlOutputFactory = XMLOutputFactory.newInstance();
+ }
+
+ @Override
+ protected String[] getConfigLocations() {
+ return new String[] {"classpath:serializationTestBeans.xml"};
+ }
+
+ @Test
+ public void testEndpointGetSchema() throws IOException {
+ setupClientAndRhino("simple-dlwu-proxy-factory");
+ ServiceInfo serviceInfo = serviceInfos.get(0);
+ EndpointReferenceUtils.getSchema(serviceInfo);
+ }
+
+ @Test
+ public void testDeserialization() throws Exception {
+ setupClientAndRhino("simple-dlwu-proxy-factory");
+ testUtilities.readResourceIntoRhino("/deserializationTests.js");
+ DataBinding dataBinding = new JAXBDataBinding(TestBean3.class, TestBean2.class);
+ assertNotNull(dataBinding);
+ TestBean3 bean = new TestBean3();
+ bean.stringItem = "bean1>stringItem";
+ bean.doubleItem = -1.0;
+ String serialized = serializeObject(dataBinding, bean);
+ testUtilities.rhinoCallInContext("deserializeTestBean3_1", serialized);
+
+ bean = new TestBean3();
+ bean.stringItem = null;
+ bean.intItem = 21;
+ bean.longItem = 200000001;
+ bean.optionalIntItem = 456123;
+ bean.optionalIntArrayItem = new int[4];
+ bean.optionalIntArrayItem[0] = 3;
+ bean.optionalIntArrayItem[1] = 1;
+ bean.optionalIntArrayItem[2] = 4;
+ bean.optionalIntArrayItem[3] = 1;
+ bean.doubleItem = -1.0;
+ serialized = serializeObject(dataBinding, bean);
+ testUtilities.rhinoCallInContext("deserializeTestBean3_2", serialized);
+ }
+
+ private String serializeObject(DataBinding dataBinding, TestBean3 bean) throws XMLStreamException {
+ DataWriter<XMLStreamWriter> writer = dataBinding.createWriter(XMLStreamWriter.class);
+ StringWriter stringWriter = new StringWriter();
+ XMLStreamWriter xmlStreamWriter = xmlOutputFactory.createXMLStreamWriter(stringWriter);
+ writer.write(bean, xmlStreamWriter);
+ xmlStreamWriter.flush();
+ xmlStreamWriter.close();
+ return stringWriter.toString();
+ }
+
+ @Test
+ public void testSerialization() throws Exception {
+ setupClientAndRhino("simple-dlwu-proxy-factory");
+
+ testUtilities.readResourceIntoRhino("/serializationTests.js");
+ DataBinding dataBinding = clientProxyFactory.getServiceFactory().getDataBinding();
+ assertNotNull(dataBinding);
+
+ Object serialized = testUtilities.rhinoCallInContext("serializeTestBean1_1");
+ assertTrue(serialized instanceof String);
+ String xml = (String)serialized;
+ DataReader<XMLStreamReader> reader = dataBinding.createReader(XMLStreamReader.class);
+ StringReader stringReader = new StringReader(xml);
+ XMLStreamReader xmlStreamReader = xmlInputFactory.createXMLStreamReader(stringReader);
+ QName testBeanQName = new QName("uri:org.apache.cxf.javascript.testns", "TestBean1");
+ Object bean = reader.read(testBeanQName, xmlStreamReader, TestBean1.class);
+ assertNotNull(bean);
+ assertTrue(bean instanceof TestBean1);
+ TestBean1 testBean = (TestBean1)bean;
+ assertEquals("bean1<stringItem", testBean.stringItem);
+ assertEquals(64, testBean.intItem);
+ assertEquals(64000000, testBean.longItem);
+ assertEquals(101, testBean.optionalIntItem);
+ assertNotNull(testBean.optionalIntArrayItem);
+ assertEquals(1, testBean.optionalIntArrayItem.length);
+ assertEquals(543, testBean.optionalIntArrayItem[0]);
+
+ serialized = testUtilities.rhinoCallInContext("serializeTestBean1_2");
+ assertTrue(serialized instanceof String);
+ xml = (String)serialized;
+ reader = dataBinding.createReader(XMLStreamReader.class);
+ stringReader = new StringReader(xml);
+ xmlStreamReader = xmlInputFactory.createXMLStreamReader(stringReader);
+ bean = reader.read(testBeanQName, xmlStreamReader, TestBean1.class);
+ assertNotNull(bean);
+ assertTrue(bean instanceof TestBean1);
+ testBean = (TestBean1)bean;
+ assertEquals("bean1<stringItem", testBean.stringItem);
+ assertEquals(64, testBean.intItem);
+ assertEquals(64000000, testBean.longItem);
+ assertEquals(0, testBean.optionalIntItem);
+ assertNotNull(testBean.optionalIntArrayItem);
+ assertEquals(3, testBean.optionalIntArrayItem.length);
+ assertEquals(543, testBean.optionalIntArrayItem[0]);
+ assertEquals(0, testBean.optionalIntArrayItem[1]);
+ assertEquals(345, testBean.optionalIntArrayItem[2]);
+
+ serialized = testUtilities.rhinoCallInContext("serializeTestBean1_3");
+ assertTrue(serialized instanceof String);
+ xml = (String)serialized;
+ reader = dataBinding.createReader(XMLStreamReader.class);
+ stringReader = new StringReader(xml);
+ xmlStreamReader = xmlInputFactory.createXMLStreamReader(stringReader);
+ bean = reader.read(testBeanQName, xmlStreamReader, TestBean1.class);
+ assertNotNull(bean);
+ assertTrue(bean instanceof TestBean1);
+ testBean = (TestBean1)bean;
+ assertEquals("bean1<stringItem", testBean.stringItem);
+ assertEquals(64, testBean.intItem);
+ assertEquals(43, testBean.longItem);
+ assertEquals(33, testBean.optionalIntItem);
+ assertNull(testBean.optionalIntArrayItem);
+ }
+
+ private void setupClientAndRhino(String clientProxyFactoryBeanId) throws IOException {
+ testUtilities.setBus(getBean(Bus.class, "cxf"));
+
+ testUtilities.initializeRhino();
+ testUtilities.readResourceIntoRhino("/org/apache/cxf/javascript/cxf-utils.js");
+
+ clientProxyFactory = getBean(JaxWsProxyFactoryBean.class, clientProxyFactoryBeanId);
+ client = clientProxyFactory.getClientFactoryBean().create();
+ serviceInfos = client.getEndpoint().getService().getServiceInfos();
+ // there can only be one.
+ assertEquals(1, serviceInfos.size());
+ ServiceInfo serviceInfo = serviceInfos.get(0);
+ schemata = serviceInfo.getSchemas();
+ nameManager = BasicNameManager.newNameManager(serviceInfo);
+ NamespacePrefixAccumulator prefixAccumulator =
+ new NamespacePrefixAccumulator(serviceInfo.getXmlSchemaCollection());
+ for (SchemaInfo schema : schemata) {
+ SchemaJavascriptBuilder builder = new SchemaJavascriptBuilder(serviceInfo
+ .getXmlSchemaCollection(), prefixAccumulator, nameManager);
+ String allThatJavascript = builder.generateCodeForSchema(schema);
+ assertNotNull(allThatJavascript);
+ testUtilities.readStringIntoRhino(allThatJavascript, schema.toString() + ".js");
+ }
+ }
+
+ @Override
+ protected void additionalSpringConfiguration(GenericApplicationContext context) throws Exception {
+ }
+}
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/types/SerializationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/java/org/apache/cxf/javascript/types/SerializationTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/DocLitBareClientTestBeans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/DocLitBareClientTestBeans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/DocLitWrappedClientTestBeans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/DocLitWrappedClientTestBeans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/GreeterClientTestBeans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/GreeterClientTestBeans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/HelloWorldDocLitBeans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/HelloWorldDocLitBeans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/HelloWorldGreeterBeans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/HelloWorldGreeterBeans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/RPCClientTestBeans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/RPCClientTestBeans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/javascript/src/test/resources/XMLHttpRequestTestBeans.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/resources/XMLHttpRequestTestBeans.xml?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/resources/XMLHttpRequestTestBeans.xml (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/resources/XMLHttpRequestTestBeans.xml Fri Feb 22 18:55:53 2008
@@ -1,70 +1,70 @@
-<?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="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:sec="http://cxf.apache.org/configuration/security"
- xmlns:http="http://cxf.apache.org/transports/http/configuration"
- xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xsi:schemaLocation="
- http://cxf.apache.org/jaxws
- http://cxf.apache.org/schemas/jaxws.xsd
- http://cxf.apache.org/configuration/security
- http://cxf.apache.org/schemas/configuration/security.xsd
- http://cxf.apache.org/transports/http/configuration
- http://cxf.apache.org/schemas/configuration/http-conf.xsd
- http://cxf.apache.org/transports/http-jetty/configuration
- http://cxf.apache.org/schemas/configuration/http-jetty.xsd
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
-
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-xml.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />
-
- <httpj:engine-factory bus="cxf">
- <httpj:engine port="8808">
- <httpj:handlers>
- <bean class="org.mortbay.jetty.handler.ContextHandler">
- <property name="contextPath" value="/" />
- <property name="handler">
- <bean class="org.mortbay.jetty.handler.ResourceHandler">
- <property name="baseResource">
- <bean class="org.mortbay.resource.FileResource">
- <constructor-arg value="${staticResourceURL}" />
- </bean>
- </property>
- </bean>
- </property>
- </bean>
- <bean class="org.mortbay.jetty.handler.DefaultHandler"/>
- </httpj:handlers>
- </httpj:engine>
- </httpj:engine-factory>
-
- <jaxws:endpoint id="greeter-service-endpoint"
- implementor="org.apache.hello_world_xml_http.wrapped.GreeterImpl"
- address="http://localhost:8808/Greeter" >
- </jaxws:endpoint>
-
+<?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="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:sec="http://cxf.apache.org/configuration/security"
+ xmlns:http="http://cxf.apache.org/transports/http/configuration"
+ xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
+ xmlns:jaxws="http://cxf.apache.org/jaxws"
+ xsi:schemaLocation="
+ http://cxf.apache.org/jaxws
+ http://cxf.apache.org/schemas/jaxws.xsd
+ http://cxf.apache.org/configuration/security
+ http://cxf.apache.org/schemas/configuration/security.xsd
+ http://cxf.apache.org/transports/http/configuration
+ http://cxf.apache.org/schemas/configuration/http-conf.xsd
+ http://cxf.apache.org/transports/http-jetty/configuration
+ http://cxf.apache.org/schemas/configuration/http-jetty.xsd
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
+
+ <import resource="classpath:META-INF/cxf/cxf.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-xml.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />
+
+ <httpj:engine-factory bus="cxf">
+ <httpj:engine port="8808">
+ <httpj:handlers>
+ <bean class="org.mortbay.jetty.handler.ContextHandler">
+ <property name="contextPath" value="/" />
+ <property name="handler">
+ <bean class="org.mortbay.jetty.handler.ResourceHandler">
+ <property name="baseResource">
+ <bean class="org.mortbay.resource.FileResource">
+ <constructor-arg value="${staticResourceURL}" />
+ </bean>
+ </property>
+ </bean>
+ </property>
+ </bean>
+ <bean class="org.mortbay.jetty.handler.DefaultHandler"/>
+ </httpj:handlers>
+ </httpj:engine>
+ </httpj:engine-factory>
+
+ <jaxws:endpoint id="greeter-service-endpoint"
+ implementor="org.apache.hello_world_xml_http.wrapped.GreeterImpl"
+ address="http://localhost:8808/Greeter" >
+ </jaxws:endpoint>
+
</beans>
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/XMLHttpRequestTestBeans.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/XMLHttpRequestTestBeans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/XMLHttpRequestTestBeans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/XML_GreetMeDocLiteralReq.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/XML_GreetMeDocLiteralReq.xml?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/XML_GreetMeDocLiteralReq.xml (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/XML_GreetMeDocLiteralReq.xml Fri Feb 22 18:55:53 2008
@@ -1,22 +1,22 @@
-<!--
- 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.
---><!-- this message goes to org.apache.hello_world_xml_http.wrapped.GreeterImpl -->
-<ns2:greetMe xmlns="http://www.w3.org/2005/02/addressing/wsdl"
- xmlns:ns2="http://apache.org/hello_world_xml_http/wrapped/types">
- <ns2:requestType>ש×××</ns2:requestType>
-</ns2:greetMe>
+<!--
+ 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.
+--><!-- this message goes to org.apache.hello_world_xml_http.wrapped.GreeterImpl -->
+<ns2:greetMe xmlns="http://www.w3.org/2005/02/addressing/wsdl"
+ xmlns:ns2="http://apache.org/hello_world_xml_http/wrapped/types">
+ <ns2:requestType>ש×××</ns2:requestType>
+</ns2:greetMe>
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/XML_GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/XML_GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/XML_GreetMeDocLiteralReq.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/test.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/test.html
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/org/apache/cxf/javascript/test.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Modified: incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTestBeans.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTestBeans.xml?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTestBeans.xml (original)
+++ incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTestBeans.xml Fri Feb 22 18:55:53 2008
@@ -1,51 +1,51 @@
-<?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="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:http="http://cxf.apache.org/transports/http/configuration"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
- http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
-
- <!-- CXF -->
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />
-
-<!-- We use a client for the service for basic tests. We don't need a server at all. -->
- <bean id="simple-dlwu-proxy-factory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean" >
- <property name="serviceClass" value="org.apache.cxf.javascript.fortest.SimpleDocLitWrapped"/>
- <property name="address" value="local://SimpleDocLitWrappedUnqualified"/>
- </bean>
-
- <bean id="simple-dlwu-client" class="org.apache.cxf.javascript.fortest.SimpleDocLitWrapped" scope='prototype'
- factory-bean="simple-dlwu-proxy-factory" factory-method="create"/>
-
- <!-- Services. We use the JAXB test server which handles a lot of types. -->
- <!-- very slow to set up, and not obviously useful
- <jaxws:server id="TestServer"
- serviceClass="org.apache.type_test.doc.TypeTestPortType"
- address="local://TestService">
- </jaxws:server>
- -->
-</beans>
-
+<?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="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:jaxws="http://cxf.apache.org/jaxws"
+ xmlns:http="http://cxf.apache.org/transports/http/configuration"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
+ http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
+
+ <!-- CXF -->
+ <import resource="classpath:META-INF/cxf/cxf.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />
+
+<!-- We use a client for the service for basic tests. We don't need a server at all. -->
+ <bean id="simple-dlwu-proxy-factory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean" >
+ <property name="serviceClass" value="org.apache.cxf.javascript.fortest.SimpleDocLitWrapped"/>
+ <property name="address" value="local://SimpleDocLitWrappedUnqualified"/>
+ </bean>
+
+ <bean id="simple-dlwu-client" class="org.apache.cxf.javascript.fortest.SimpleDocLitWrapped" scope='prototype'
+ factory-bean="simple-dlwu-proxy-factory" factory-method="create"/>
+
+ <!-- Services. We use the JAXB test server which handles a lot of types. -->
+ <!-- very slow to set up, and not obviously useful
+ <jaxws:server id="TestServer"
+ serviceClass="org.apache.type_test.doc.TypeTestPortType"
+ address="local://TestService">
+ </jaxws:server>
+ -->
+</beans>
+
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTestBeans.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTestBeans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/javascript/src/test/resources/serializationTestBeans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/ws/addr/src/main/resources/META-INF/extensions.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/addr/src/main/resources/META-INF/extensions.xml?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/ws/addr/src/main/resources/META-INF/extensions.xml (original)
+++ incubator/cxf/trunk/rt/ws/addr/src/main/resources/META-INF/extensions.xml Fri Feb 22 18:55:53 2008
@@ -1,24 +1,24 @@
-<?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.
--->
-<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
-<properties>
- <!-- WS-A -->
- <entry key="org.apache.cxf.ws.addressing-1">javax.wsdl.Binding=org.w3._2006._05.addressing.wsdl.UsingAddressing</entry>
-</properties>
+<?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.
+-->
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties>
+ <!-- WS-A -->
+ <entry key="org.apache.cxf.ws.addressing-1">javax.wsdl.Binding=org.w3._2006._05.addressing.wsdl.UsingAddressing</entry>
+</properties>
Propchange: incubator/cxf/trunk/rt/ws/addr/src/main/resources/META-INF/extensions.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/ws/addr/src/main/resources/META-INF/extensions.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/ws/addr/src/main/resources/META-INF/extensions.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/cxf/trunk/rt/ws/addr/src/main/resources/schemas/ws-addr-wsdl.xjb
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/addr/src/main/resources/schemas/ws-addr-wsdl.xjb?rev=630381&r1=630380&r2=630381&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/ws/addr/src/main/resources/schemas/ws-addr-wsdl.xjb (original)
+++ incubator/cxf/trunk/rt/ws/addr/src/main/resources/schemas/ws-addr-wsdl.xjb Fri Feb 22 18:55:53 2008
@@ -1,34 +1,34 @@
-<?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.
--->
-<jaxb:bindings version="1.0"
- xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
- jaxb:extensionBindingPrefixes="xjc">
- <jaxb:bindings schemaLocation="http://schemas.xmlsoap.org/wsdl/" node="/xs:schema">
- <jaxb:schemaBindings>
- <jaxb:package name="org.apache.cxf.wsdl"/>
- </jaxb:schemaBindings>
- <jaxb:globalBindings generateIsSetMethod="true"/>
- </jaxb:bindings>
- <jaxb:bindings schemaLocation="http://schemas.xmlsoap.org/wsdl/" node="/xs:schema/xs:complexType[@name='tExtensibilityElement']">
- <jaxb:class implClass="org.apache.cxf.wsdl.TExtensibilityElementImpl"/>
- </jaxb:bindings>
-</jaxb:bindings>
+<?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.
+-->
+<jaxb:bindings version="1.0"
+ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
+ jaxb:extensionBindingPrefixes="xjc">
+ <jaxb:bindings schemaLocation="http://schemas.xmlsoap.org/wsdl/" node="/xs:schema">
+ <jaxb:schemaBindings>
+ <jaxb:package name="org.apache.cxf.wsdl"/>
+ </jaxb:schemaBindings>
+ <jaxb:globalBindings generateIsSetMethod="true"/>
+ </jaxb:bindings>
+ <jaxb:bindings schemaLocation="http://schemas.xmlsoap.org/wsdl/" node="/xs:schema/xs:complexType[@name='tExtensibilityElement']">
+ <jaxb:class implClass="org.apache.cxf.wsdl.TExtensibilityElementImpl"/>
+ </jaxb:bindings>
+</jaxb:bindings>
Propchange: incubator/cxf/trunk/rt/ws/addr/src/main/resources/schemas/ws-addr-wsdl.xjb
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/rt/ws/addr/src/main/resources/schemas/ws-addr-wsdl.xjb
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/rt/ws/addr/src/main/resources/schemas/ws-addr-wsdl.xjb
------------------------------------------------------------------------------
svn:mime-type = text/xml