Repository: cxf Updated Branches: refs/heads/3.0.x-fixes 4e3351ea6 -> 3c07e4ad8
http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-error.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-error.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-error.xml new file mode 100644 index 0000000..f716f8c --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-error.xml @@ -0,0 +1,32 @@ +<?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" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> + <import resource="classpath:META-INF/cxf/cxf.xml"/> + <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> + <bean id="greeterServerFactory" class="org.apache.cxf.jaxws.JaxWsServerFactoryBean123" init-method="create"> + <property name="serviceClass" value="org.apache.hello_world_soap_http.GreeterImpl"/> + <property name="serviceBean"> + <bean class="org.apache.hello_world_soap_http.GreeterImpl"/> + </property> + <property name="address" value="/services/Greeter"/> + <property name="bus" ref="cxf"/> + <property name="bindingId" value="http://apache.org/cxf/binding/http"/> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-js.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-js.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-js.xml new file mode 100644 index 0000000..635109e --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-js.xml @@ -0,0 +1,29 @@ +<?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" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + <import resource="classpath:META-INF/cxf/cxf.xml"/> + <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> + <bean id="greeterServerFactory" class="org.apache.cxf.js.rhino.JsServiceFactoryBean" init-method="create"> + <property name="js" value="/org/apache/cxf/systest/servlet/hello_world.js"/> + <property name="isBaseAddr" value="false"/> + <property name="address" value="/Greeter"/> + <property name="bus" ref="cxf"/> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring.xml new file mode 100644 index 0000000..de12921 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring.xml @@ -0,0 +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. +--> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> + <import resource="classpath:META-INF/cxf/cxf.xml"/> + <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> + <bean id="greeterServerFactory" class="org.apache.cxf.jaxws.JaxWsServerFactoryBean" init-method="create"> + <property name="serviceClass" value="org.apache.hello_world_soap_http.GreeterImpl"/> + <property name="serviceBean"> + <bean class="org.apache.hello_world_soap_http.GreeterImpl"/> + </property> + <property name="address" value="/services/Greeter"/> + <property name="bus" ref="cxf"/> + <property name="bindingId" value="http://apache.org/cxf/binding/http"/> + </bean> + <jaxws:endpoint id="endpoint1" implementor="org.apache.hello_world_soap_http.GreeterImpl" address="/services/Greeter1" wsdlLocation="/wsdl/hello_world.wsdl"/> + <jaxws:endpoint id="endpoint2" implementor="org.apache.hello_world_soap_http.GreeterImpl" address="/services/Greeter2" publishedEndpointUrl="http://cxf.apache.org/Greeter"/> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/test_import.xsd ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/test_import.xsd b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/test_import.xsd new file mode 100644 index 0000000..16d62b9 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/test_import.xsd @@ -0,0 +1,37 @@ +<?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. +--> +<schema targetNamespace="http://apache.org/hello_world_soap_http_import" + xmlns="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://apache.org/hello_world_soap_http_import" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + + <complexType name="SimpleStruct"> + <sequence> + <element name="varFloat" type="xsd:float"/> + <element name="varInt" type="xsd:int"/> + <element name="varString" type="xsd:string"/> + </sequence> + </complexType> + + <element name="NamedTypeElement" type="tns:SimpleStruct"/> + +</schema> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/update.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/update.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/update.xml new file mode 100644 index 0000000..4d37997 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/update.xml @@ -0,0 +1,23 @@ +<?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. +--> +<customer xmlns="http://cxf.apache.org/jra" xmlns:ns2="http://www.w3.org/2005/02/addressing/wsdl"> + <id>123</id> + <name>Danno Manno</name> +</customer> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-external.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-external.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-external.xml new file mode 100644 index 0000000..11c674d --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-external.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- + 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. +--> +<web-app> + <servlet> + <servlet-name>CXFServlet</servlet-name> + <display-name>CXF Servlet</display-name> + <servlet-class> + org.apache.cxf.transport.servlet.CXFServlet + </servlet-class> + <init-param> + <param-name>config-location</param-name> + <param-value>org/apache/cxf/systest/servlet/cxf-servlet.xml</param-value> + </init-param> + <init-param> + <param-name>base-address</param-name> + <param-value>http://localhost/somewhere</param-value> + </init-param> + </servlet> + <servlet-mapping> + <servlet-name>CXFServlet</servlet-name> + <url-pattern>/*</url-pattern> + </servlet-mapping> +</web-app> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-filter.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-filter.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-filter.xml new file mode 100644 index 0000000..7ad6ae5 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-filter.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- + 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. +--> +<web-app> + <context-param> + <param-name>contextConfigLocation</param-name> + <param-value> + classpath:org/apache/cxf/systest/servlet/spring.xml + </param-value> + </context-param> + <listener> + <listener-class> + org.springframework.web.context.ContextLoaderListener + </listener-class> + </listener> + <filter> + <filter-name>CXFFilter</filter-name> + <display-name>CXFFilter</display-name> + <filter-class>org.apache.cxf.transport.servlet.CXFServlet</filter-class> + </filter> + <filter-mapping> + <filter-name>CXFFilter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + <servlet> + <servlet-name>Default</servlet-name> + <display-name>Default</display-name> + <servlet-class>org.apache.cxf.systest.servlet.TestServlet</servlet-class> + </servlet> + <servlet-mapping> + <servlet-name>Default</servlet-name> + <url-pattern>/*</url-pattern> + </servlet-mapping> +</web-app> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-js.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-js.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-js.xml new file mode 100644 index 0000000..7d5118c --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-js.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- + 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. +--> +<web-app> + <context-param> + <param-name>contextConfigLocation</param-name> + <param-value> + classpath:org/apache/cxf/systest/servlet/spring-js.xml + </param-value> + </context-param> + <listener> + <listener-class> + org.springframework.web.context.ContextLoaderListener + </listener-class> + </listener> + <servlet> + <servlet-name>CXFServlet</servlet-name> + <display-name>CXF Servlet</display-name> + <servlet-class> + org.apache.cxf.transport.servlet.CXFServlet + </servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>CXFServlet</servlet-name> + <url-pattern>/services/*</url-pattern> + </servlet-mapping> +</web-app> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring-auto-launch.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring-auto-launch.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring-auto-launch.xml new file mode 100644 index 0000000..c1da9ee --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring-auto-launch.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- + 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. +--> +<web-app> + <context-param> + <param-name>contextConfigLocation</param-name> + <param-value> + classpath:org/apache/cxf/systest/servlet/spring-auto-launch.xml + </param-value> + </context-param> + <listener> + <listener-class> + org.springframework.web.context.ContextLoaderListener + </listener-class> + </listener> + <servlet> + <servlet-name>CXFServlet</servlet-name> + <display-name>CXF Servlet</display-name> + <servlet-class> + org.apache.cxf.transport.servlet.CXFServlet + </servlet-class> + <init-param> + <param-name>hide-service-list-page</param-name> + <param-value>true</param-value> + </init-param> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>CXFServlet</servlet-name> + <url-pattern>/*</url-pattern> + </servlet-mapping> +</web-app> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring-error.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring-error.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring-error.xml new file mode 100644 index 0000000..2843eb6 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring-error.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- + 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. +--> +<web-app> + <context-param> + <param-name>contextConfigLocation</param-name> + <param-value> + classpath:org/apache/cxf/systest/servlet/spring-error.xml + </param-value> + </context-param> + <listener> + <listener-class> + org.springframework.web.context.ContextLoaderListener + </listener-class> + </listener> + <servlet> + <servlet-name>CXFServlet</servlet-name> + <display-name>CXF Servlet</display-name> + <servlet-class> + org.apache.cxf.transport.servlet.CXFServlet + </servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>CXFServlet</servlet-name> + <url-pattern>/*</url-pattern> + </servlet-mapping> +</web-app> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring.xml new file mode 100644 index 0000000..13bd2fc --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web-spring.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- + 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. +--> +<web-app> + <context-param> + <param-name>contextConfigLocation</param-name> + <param-value> + classpath:org/apache/cxf/systest/servlet/spring.xml + </param-value> + </context-param> + <listener> + <listener-class> + org.springframework.web.context.ContextLoaderListener + </listener-class> + </listener> + <servlet> + <servlet-name>CXFServlet</servlet-name> + <display-name>CXF Servlet</display-name> + <servlet-class> + org.apache.cxf.transport.servlet.CXFServlet + </servlet-class> + <init-param> + <param-name>hide-service-list-page</param-name> + <param-value>true</param-value> + </init-param> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>CXFServlet</servlet-name> + <url-pattern>/*</url-pattern> + </servlet-mapping> +</web-app> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web.xml new file mode 100644 index 0000000..c4a2d1d --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/web.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- + 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. +--> +<web-app> + <servlet> + <servlet-name>CXFServlet</servlet-name> + <display-name>CXF Servlet</display-name> + <servlet-class> + org.apache.cxf.transport.servlet.CXFServlet + </servlet-class> + <init-param> + <param-name>config-location</param-name> + <param-value>classpath:/org/apache/cxf/systest/servlet/cxf-servlet.xml</param-value> + </init-param> + <!--init-param> + <param-name>bus.id</param-name> + <param-value>servlet.systest.bus.id</param-value> + </init-param--> + </servlet> + <servlet-mapping> + <servlet-name>CXFServlet</servlet-name> + <url-pattern>/services/*</url-pattern> + </servlet-mapping> +</web-app> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/resolver/WEB-INF/beans.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/resolver/WEB-INF/beans.xml b/systests/transports/src/test/resources/resolver/WEB-INF/beans.xml new file mode 100644 index 0000000..5208909 --- /dev/null +++ b/systests/transports/src/test/resources/resolver/WEB-INF/beans.xml @@ -0,0 +1,26 @@ +<?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: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/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.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> + <import resource="classpath:META-INF/cxf/cxf.xml"/> + <!-- Resolve wsdl using the classloader --> + <jaxws:endpoint id="greeter1" address="/greeter" implementor="org.apache.hello_world_soap_http.GreeterImpl" wsdlLocation="/org/apache/cxf/systest/servlet/hello_world.wsdl"/> + <!-- Resolve wsdl using the servlet context --> + <jaxws:endpoint id="greeter2" address="/greeter2" implementor="org.apache.hello_world_soap_http.GreeterImpl" wsdlLocation="wsdl/hello_world.wsdl"/> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/resolver/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/resolver/WEB-INF/web.xml b/systests/transports/src/test/resources/resolver/WEB-INF/web.xml new file mode 100644 index 0000000..6208161 --- /dev/null +++ b/systests/transports/src/test/resources/resolver/WEB-INF/web.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<!-- 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. --> +<web-app> + <context-param> + <param-name>contextConfigLocation</param-name> + <param-value>WEB-INF/beans.xml</param-value> + </context-param> + <listener> + <listener-class> + org.springframework.web.context.ContextLoaderListener + </listener-class> + </listener> + <servlet> + <servlet-name>CXFServlet</servlet-name> + <display-name>CXF Servlet</display-name> + <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>CXFServlet</servlet-name> + <url-pattern>/*</url-pattern> + </servlet-mapping> +</web-app> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/resolver/WEB-INF/wsdl/hello_world.wsdl ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/resolver/WEB-INF/wsdl/hello_world.wsdl b/systests/transports/src/test/resources/resolver/WEB-INF/wsdl/hello_world.wsdl new file mode 100644 index 0000000..4c8ba32 --- /dev/null +++ b/systests/transports/src/test/resources/resolver/WEB-INF/wsdl/hello_world.wsdl @@ -0,0 +1,377 @@ +<?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 xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://apache.org/hello_world_soap_http" xmlns:x1="http://apache.org/hello_world_soap_http/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://apache.org/hello_world_soap_http" name="HelloWorld"> + <import location="test_import.xsd" namespace="http://apache.org/hello_world_soap_http_import"/> + <wsdl:types> + <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:x1="http://apache.org/hello_world_soap_http/types" targetNamespace="http://apache.org/hello_world_soap_http/types" elementFormDefault="qualified"> + <element name="sayHi"> + <complexType/> + </element> + <element name="sayHiResponse"> + <complexType> + <sequence> + <element name="responseType" type="string"/> + </sequence> + </complexType> + </element> + <element name="greetMe"> + <complexType> + <sequence> + <element name="requestType" type="string"/> + </sequence> + </complexType> + </element> + <element name="greetMeResponse"> + <complexType> + <sequence> + <element name="responseType" type="string"/> + </sequence> + </complexType> + </element> + <element name="testNillable"> + <complexType> + <sequence> + <element name="NillElem" nillable="true" type="string"/> + <element name="intElem" type="int"/> + </sequence> + </complexType> + </element> + <element name="testNillableResponse"> + <complexType> + <sequence> + <element name="responseType" nillable="true" type="string"/> + </sequence> + </complexType> + </element> + <element name="greetMeLater"> + <complexType> + <sequence> + <element name="requestType" type="long"/> + </sequence> + </complexType> + </element> + <element name="greetMeLaterResponse"> + <complexType> + <sequence> + <element name="responseType" type="string"/> + </sequence> + </complexType> + </element> + <element name="greetMeSometime"> + <complexType> + <sequence> + <element name="requestType" type="string"/> + </sequence> + </complexType> + </element> + <element name="greetMeSometimeResponse"> + <complexType> + <sequence> + <element name="responseType" type="string"/> + </sequence> + </complexType> + </element> + <element name="greetMeOneWay"> + <complexType> + <sequence> + <element name="requestType" type="string"/> + </sequence> + </complexType> + </element> + <element name="testDocLitFault"> + <complexType> + <sequence> + <element name="faultType" type="string"/> + </sequence> + </complexType> + </element> + <element name="testDocLitFaultResponse"> + <complexType> + <sequence/> + </complexType> + </element> + <complexType name="ErrorCode"> + <sequence> + <element name="minor" type="short"/> + <element name="major" type="short"/> + </sequence> + </complexType> + <element name="NoSuchCodeLit"> + <complexType> + <sequence> + <element name="code" type="x1:ErrorCode"/> + </sequence> + </complexType> + </element> + <element name="BadRecordLit" type="string"/> + <complexType name="BadRecord"> + <sequence> + <element name="reason" type="string"/> + <element name="code" type="short"/> + </sequence> + </complexType> + <complexType name="addNumbers"> + <sequence> + <element name="arg0" type="int"/> + <element name="arg1" type="int"/> + </sequence> + </complexType> + <element name="addNumbers" type="x1:addNumbers"/> + <complexType name="addNumbersResponse"> + <sequence> + <element name="return" type="int"/> + </sequence> + </complexType> + <element name="addNumbersResponse" type="x1:addNumbersResponse"/> + <complexType name="stringStruct"> + <sequence> + <element name="arg0" type="string"/> + <element name="arg1" type="string"/> + </sequence> + </complexType> + <element name="BareDocument" type="string"/> + <element name="BareDocumentResponse"> + <complexType> + <sequence> + <element name="company" type="string"/> + </sequence> + <attribute name="id" type="int"/> + </complexType> + </element> + </schema> + </wsdl:types> + <wsdl:message name="sayHiRequest"> + <wsdl:part name="in" element="x1:sayHi"/> + </wsdl:message> + <wsdl:message name="sayHiResponse"> + <wsdl:part name="out" element="x1:sayHiResponse"/> + </wsdl:message> + <wsdl:message name="greetMeRequest"> + <wsdl:part name="in" element="x1:greetMe"/> + </wsdl:message> + <wsdl:message name="greetMeResponse"> + <wsdl:part name="out" element="x1:greetMeResponse"/> + </wsdl:message> + <wsdl:message name="testNillableRequest"> + <wsdl:part name="in" element="x1:testNillable"/> + </wsdl:message> + <wsdl:message name="testNillableResponse"> + <wsdl:part name="out" element="x1:testNillableResponse"/> + </wsdl:message> + <wsdl:message name="greetMeLaterRequest"> + <wsdl:part name="in" element="x1:greetMeLater"/> + </wsdl:message> + <wsdl:message name="greetMeLaterResponse"> + <wsdl:part name="out" element="x1:greetMeLaterResponse"/> + </wsdl:message> + <wsdl:message name="greetMeSometimeRequest"> + <wsdl:part name="in" element="x1:greetMeSometime"/> + </wsdl:message> + <wsdl:message name="greetMeSometimeResponse"> + <wsdl:part name="out" element="x1:greetMeSometimeResponse"/> + </wsdl:message> + <wsdl:message name="greetMeOneWayRequest"> + <wsdl:part name="in" element="x1:greetMeOneWay"/> + </wsdl:message> + <wsdl:message name="testDocLitFaultRequest"> + <wsdl:part name="in" element="x1:testDocLitFault"/> + </wsdl:message> + <wsdl:message name="testDocLitFaultResponse"> + <wsdl:part name="out" element="x1:testDocLitFaultResponse"/> + </wsdl:message> + <wsdl:message name="NoSuchCodeLitFault"> + <wsdl:part name="NoSuchCodeLit" element="x1:NoSuchCodeLit"/> + </wsdl:message> + <wsdl:message name="BadRecordLitFault"> + <wsdl:part name="BadRecordLit" element="x1:BadRecordLit"/> + </wsdl:message> + <wsdl:message name="testDocLitBareRequest"> + <wsdl:part name="in" element="x1:BareDocument"/> + </wsdl:message> + <wsdl:message name="testDocLitBareResponse"> + <wsdl:part name="out" element="x1:BareDocumentResponse"/> + </wsdl:message> + <wsdl:portType name="Greeter"> + <wsdl:operation name="sayHi"> + <wsdl:input name="sayHiRequest" message="tns:sayHiRequest"/> + <wsdl:output name="sayHiResponse" message="tns:sayHiResponse"/> + </wsdl:operation> + <wsdl:operation name="greetMe"> + <wsdl:input name="greetMeRequest" message="tns:greetMeRequest"/> + <wsdl:output name="greetMeResponse" message="tns:greetMeResponse"/> + </wsdl:operation> + <wsdl:operation name="testNillable"> + <wsdl:input name="testNillableRequest" message="tns:testNillableRequest"/> + <wsdl:output name="testNillableResponse" message="tns:testNillableResponse"/> + </wsdl:operation> + <wsdl:operation name="greetMeLater"> + <wsdl:input name="greetMeLaterRequest" message="tns:greetMeLaterRequest"/> + <wsdl:output name="greetMeLaterResponse" message="tns:greetMeLaterResponse"/> + </wsdl:operation> + <wsdl:operation name="greetMeSometime"> + <wsdl:input name="greetMeSometimeRequest" message="tns:greetMeSometimeRequest"/> + <wsdl:output name="greetMeSometimeResponse" message="tns:greetMeSometimeResponse"/> + </wsdl:operation> + <wsdl:operation name="greetMeOneWay"> + <wsdl:input name="greetMeOneWayRequest" message="tns:greetMeOneWayRequest"/> + </wsdl:operation> + <wsdl:operation name="testDocLitFault"> + <wsdl:input name="testDocLitFaultRequest" message="tns:testDocLitFaultRequest"/> + <wsdl:output name="testDocLitFaultResponse" message="tns:testDocLitFaultResponse"/> + <wsdl:fault name="NoSuchCodeLitFault" message="tns:NoSuchCodeLitFault"/> + <wsdl:fault name="BadRecordLitFault" message="tns:BadRecordLitFault"/> + </wsdl:operation> + </wsdl:portType> + <wsdl:portType name="DocLitBare"> + <wsdl:operation name="testDocLitBare"> + <wsdl:input name="testDocLitBareRequest" message="tns:testDocLitBareRequest"/> + <wsdl:output name="testDocLitBareResponse" message="tns:testDocLitBareResponse"/> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="Greeter_SOAPBinding" type="tns:Greeter"> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <wsdl:operation name="sayHi"> + <soap:operation style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="greetMe"> + <soap:operation style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="testNillable"> + <soap:operation style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="greetMeLater"> + <soap:operation style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="greetMeSometime"> + <soap:operation style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="greetMeOneWay"> + <soap:operation style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + </wsdl:operation> + <wsdl:operation name="testDocLitFault"> + <soap:operation style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + <wsdl:fault name="NoSuchCodeLitFault"> + <soap:fault name="NoSuchCodeLitFault" use="literal"/> + </wsdl:fault> + <wsdl:fault name="BadRecordLitFault"> + <soap:fault name="BadRecordLitFault" use="literal"/> + </wsdl:fault> + </wsdl:operation> + </wsdl:binding> + <wsdl:binding name="Doc_Lit_Bare_SOAPBinding" type="tns:DocLitBare"> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <wsdl:operation name="testDocLitBare"> + <soap:operation style="document" soapAction="http://apache.org/hello_world_soap_http/testDocLitBare"/> + <wsdl:input name="testDocLitBareRequest"> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output name="testDocLitBareResponse"> + <soap:body use="literal"/> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="SOAPService"> + <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding"> + <soap:address location="http://localhost:9000/SoapContext/SoapPort"/> + </wsdl:port> + <wsdl:port name="SoapPort1" binding="tns:Greeter_SOAPBinding"> + <soap:address location="http://localhost:7000/SoapContext/SoapPort"/> + </wsdl:port> + </wsdl:service> + <wsdl:service name="SOAPProviderService"> + <wsdl:port name="SoapProviderPort" binding="tns:Greeter_SOAPBinding"> + <soap:address location="http://localhost:9003/SoapContext/SoapProviderPort"/> + </wsdl:port> + </wsdl:service> + <wsdl:service name="SOAPDispatchService"> + <wsdl:port name="SoapDispatchPort" binding="tns:Greeter_SOAPBinding"> + <soap:address location="http://localhost:9006/SOAPDispatchService/SoapDispatchPort"/> + </wsdl:port> + </wsdl:service> + <wsdl:service name="SOAPService_DocLitBare"> + <wsdl:port name="SoapPort2" binding="tns:Doc_Lit_Bare_SOAPBinding"> + <soap:address location="http://localhost:7600/SoapContext/SoapPort"/> + </wsdl:port> + </wsdl:service> + <wsdl:service name="SOAPServiceAddressingDocLitBare"> + <wsdl:port name="SoapPort" binding="tns:Doc_Lit_Bare_SOAPBinding"> + <soap:address location="http://localhost:7600/SoapContext/SoapPort"/> + <wswa:UsingAddressing xmlns:wswa="http://www.w3.org/2005/02/addressing/wsdl"/> + </wsdl:port> + </wsdl:service> + <wsdl:service name="SOAPService_Test1"> + <wsdl:port name="SoapPort_Test1" binding="tns:Greeter_SOAPBinding"> + <soap:address location="http://localhost:9100"/> + </wsdl:port> + <wsdl:port name="SoapPort_Test2" binding="tns:Greeter_SOAPBinding"> + <soap:address location="http://localhost:9101"/> + </wsdl:port> + </wsdl:service> + <wsdl:service name="SOAPServiceAddressing"> + <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding"> + <soap:address location="http://localhost:9008/SoapContext/SoapPort"/> + <wswa:UsingAddressing xmlns:wswa="http://www.w3.org/2005/02/addressing/wsdl"/> + </wsdl:port> + </wsdl:service> + <wsdl:service name="SOAPServiceConcurrencyTest"> + <wsdl:port name="SoapPort" binding="tns:Greeter_SOAPBinding"> + <soap:address location="http://localhost:9009/SoapContext/SoapPort"/> + </wsdl:port> + </wsdl:service> +</wsdl:definitions>
