http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/digestauth/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/digestauth/WEB-INF/web.xml b/systests/transports/src/test/resources/digestauth/WEB-INF/web.xml new file mode 100644 index 0000000..067e43d --- /dev/null +++ b/systests/transports/src/test/resources/digestauth/WEB-INF/web.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>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> + <security-constraint> + <web-resource-collection> + <web-resource-name>CXFServlet</web-resource-name> + <url-pattern>/*</url-pattern> + </web-resource-collection> + <auth-constraint> + <role-name>ROLE_USER</role-name> + </auth-constraint> + </security-constraint> + <login-config> + <auth-method>DIGEST</auth-method> + <realm-name>BookStoreRealm</realm-name> + </login-config> + <security-role> + <role-name>ROLE_USER</role-name> + </security-role> +</web-app>
http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/cxf.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/cxf.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/cxf.xml new file mode 100644 index 0000000..2e67318 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/cxf.xml @@ -0,0 +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. +--> +<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:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" 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 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + <http:conduit name="{http://cxf.apache.org/systest/jaxws}HelloContinuationPort.http-conduit"> + <http:client ConnectionTimeout="3000000" ReceiveTimeout="3000000"/> + </http:conduit> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/cxf_https.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/cxf_https.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/cxf_https.xml new file mode 100644 index 0000000..7935ae7 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/cxf_https.xml @@ -0,0 +1,36 @@ +<?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:jaxws="http://cxf.apache.org/jaxws" xmlns:sec="http://cxf.apache.org/configuration/security" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.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://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd "> + <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> + <!-- --> + <!-- HTTP/S configuration for clients --> + <!-- --> + <http:conduit name="https://localhost:.*"> + <http:client ConnectionTimeout="3000000" ReceiveTimeout="3000000"/> + <http:tlsClientParameters disableCNCheck="true"> + <sec:keyManagers keyPassword="password"> + <sec:keyStore type="JKS" password="password" resource="keys/Morpit.jks"/> + </sec:keyManagers> + <sec:trustManagers> + <sec:keyStore type="JKS" password="password" resource="keys/Truststore.jks"/> + </sec:trustManagers> + </http:tlsClientParameters> + </http:conduit> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/jaxws-server.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/jaxws-server.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/jaxws-server.xml new file mode 100644 index 0000000..9c9ef8d --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/jaxws-server.xml @@ -0,0 +1,47 @@ +<?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:sec="http://cxf.apache.org/configuration/security" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.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://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd "> + <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> + <!-- --> + <!-- This Spring config file is designed to represent a minimal --> + <!-- configuration for spring-loading a CXF servant, where the --> + <!-- servant listens using HTTP/S as the transport protocol. --> + <!-- --> + <!-- Note that the service endpoint is spring-loaded. In the --> + <!-- scenario in which this config is designed to run, the --> + <!-- server application merely instantiates a Bus, and does not --> + <!-- publish any services programmatically --> + <!-- --> + <!-- --> + <!-- TLS Port configuration parameters for port 9091 --> + <!-- --> + <httpj:engine-factory> + <httpj:engine port="${testutil.ports.Server.1}"> + <httpj:tlsServerParameters> + <sec:keyManagers keyPassword="password"> + <sec:keyStore type="JKS" password="password" resource="keys/Bethal.jks"/> + </sec:keyManagers> + <sec:trustManagers> + <sec:keyStore type="JKS" password="password" resource="keys/Truststore.jks"/> + </sec:trustManagers> + </httpj:tlsServerParameters> + </httpj:engine> + </httpj:engine-factory> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/jetty-engine.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/jetty-engine.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/jetty-engine.xml new file mode 100644 index 0000000..2ffc615 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/jetty-engine.xml @@ -0,0 +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. +--> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration" xsi:schemaLocation=" 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"> + <httpj:engine-factory bus="cxf"> + <httpj:engine port="9091" continuationsEnabled="true"/> + </httpj:engine-factory> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/test.wsdl ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/test.wsdl b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/test.wsdl new file mode 100644 index 0000000..ef98bea --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/continuations/test.wsdl @@ -0,0 +1,100 @@ +<?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:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://cxf.apache.org/systest/jaxws" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HelloContinuationService" targetNamespace="http://cxf.apache.org/systest/jaxws"> + <wsdl:message name="isRequestSuspended"> + <wsdl:part name="arg0" type="xsd:string"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="sayHiResponse"> + <wsdl:part name="return" type="xsd:string"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="sayHi"> + <wsdl:part name="arg0" type="xsd:string"> + </wsdl:part> + <wsdl:part name="arg1" type="xsd:string"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="resumeRequestResponse"> + </wsdl:message> + <wsdl:message name="isRequestSuspendedResponse"> + <wsdl:part name="return" type="xsd:boolean"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="resumeRequest"> + <wsdl:part name="arg0" type="xsd:string"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="HelloContinuation"> + <wsdl:operation name="isRequestSuspended"> + <wsdl:input message="tns:isRequestSuspended" name="isRequestSuspended"> + </wsdl:input> + <wsdl:output message="tns:isRequestSuspendedResponse" name="isRequestSuspendedResponse"> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="resumeRequest"> + <wsdl:input message="tns:resumeRequest" name="resumeRequest"> + </wsdl:input> + <wsdl:output message="tns:resumeRequestResponse" name="resumeRequestResponse"> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="sayHi"> + <wsdl:input message="tns:sayHi" name="sayHi"> + </wsdl:input> + <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="HelloContinuationServiceSoapBinding" type="tns:HelloContinuation"> + <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> + <wsdl:operation name="isRequestSuspended"> + <soap:operation soapAction="" style="rpc"/> + <wsdl:input name="isRequestSuspended"> + <soap:body namespace="http://cxf.apache.org/systest/jaxws" use="literal"/> + </wsdl:input> + <wsdl:output name="isRequestSuspendedResponse"> + <soap:body namespace="http://cxf.apache.org/systest/jaxws" use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="resumeRequest"> + <soap:operation soapAction="" style="rpc"/> + <wsdl:input name="resumeRequest"> + <soap:body namespace="http://cxf.apache.org/systest/jaxws" use="literal"/> + </wsdl:input> + <wsdl:output name="resumeRequestResponse"> + <soap:body namespace="http://cxf.apache.org/systest/jaxws" use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="sayHi"> + <soap:operation soapAction="" style="rpc"/> + <wsdl:input name="sayHi"> + <soap:body namespace="http://cxf.apache.org/systest/jaxws" use="literal"/> + </wsdl:input> + <wsdl:output name="sayHiResponse"> + <soap:body namespace="http://cxf.apache.org/systest/jaxws" use="literal"/> + </wsdl:output> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="HelloContinuationService"> + <wsdl:port binding="tns:HelloContinuationServiceSoapBinding" name="HelloContinuationPort"> + <soap:address location="https://localhost:9091/hellocontinuation"/> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/cxf.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/cxf.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/cxf.xml new file mode 100644 index 0000000..ae0701b --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/cxf.xml @@ -0,0 +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. +--> +<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" xsi:schemaLocation=" http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + <http:conduit name="*.http-conduit"> + <http:client AllowChunking="false" Connection="close"/> + </http:conduit> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jetty-engine.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jetty-engine.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jetty-engine.xml new file mode 100644 index 0000000..b8069ac --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jetty-engine.xml @@ -0,0 +1,45 @@ +<?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://java.sun.com/xml/ns/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"> + <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> + <httpj:engine-factory bus="cxf"> + <httpj:engine port="${testutil.ports.EngineLifecycleTest.2}"> + <httpj:handlers> + <bean class="org.eclipse.jetty.webapp.WebAppContext"> + <constructor-arg value="."/> + <constructor-arg value="/jsunit"/> + </bean> + <bean class="org.eclipse.jetty.server.handler.ContextHandler"> + <property name="contextPath" value="/"/> + <property name="handler"> + <bean class="org.eclipse.jetty.server.handler.ResourceHandler"> + <property name="baseResource"> + <bean class="org.eclipse.jetty.util.resource.FileResource"> + <constructor-arg value="${staticResourceURL}"/> + </bean> + </property> + </bean> + </property> + </bean> + <bean class="org.eclipse.jetty.server.handler.DefaultHandler"/> + </httpj:handlers> + </httpj:engine> + </httpj:engine-factory> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jetty-realm.properties ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jetty-realm.properties b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jetty-realm.properties new file mode 100644 index 0000000..974aae2 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jetty-realm.properties @@ -0,0 +1,20 @@ +## --------------------------------------------------------------------------- +## 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. +## --------------------------------------------------------------------------- + +# Defines users that can access the web (console, demo, etc.) +# username: password [,rolename ...] +ffang: pswd, admin http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jettyBasicAuthServer.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jettyBasicAuthServer.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jettyBasicAuthServer.xml new file mode 100644 index 0000000..4e46cf5 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jettyBasicAuthServer.xml @@ -0,0 +1,49 @@ +<?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:httpj="http://cxf.apache.org/transports/http-jetty/configuration" xsi:schemaLocation=" 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"> + <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> + <httpj:engine-factory bus="cxf"> + <httpj:engine port="${testutil.ports.JettyBasicAuthServer}"> + <httpj:handlers> + <bean class="org.eclipse.jetty.security.ConstraintSecurityHandler"> + <property name="loginService" ref="securityLoginService"/> + <property name="constraintMappings"> + <list> + <ref bean="securityConstraintMapping"/> + </list> + </property> + </bean> + </httpj:handlers> + </httpj:engine> + </httpj:engine-factory> + <bean id="securityLoginService" class="org.eclipse.jetty.security.HashLoginService"> + <property name="name" value="WSRealm"/> + <property name="config" value="src/test/resources/org/apache/cxf/systest/http_jetty/jetty-realm.properties"/> + </bean> + <bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint"> + <property name="name" value="BASIC"/> + <property name="roles" value="admin"/> + <property name="authenticate" value="true"/> + </bean> + <bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> + <property name="constraint" ref="securityConstraint"/> + <property name="pathSpec" value="/*"/> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jettyDigestServer.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jettyDigestServer.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jettyDigestServer.xml new file mode 100644 index 0000000..6c725fa --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/jettyDigestServer.xml @@ -0,0 +1,50 @@ +<?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:httpj="http://cxf.apache.org/transports/http-jetty/configuration" xsi:schemaLocation=" 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"> + <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> + <httpj:engine-factory bus="cxf"> + <httpj:engine port="${testutil.ports.JettyDigestAuthTest}"> + <httpj:handlers> + <bean class="org.eclipse.jetty.security.ConstraintSecurityHandler"> + <property name="loginService" ref="securityLoginService"/> + <property name="authMethod" value="DIGEST"/> + <property name="constraintMappings"> + <list> + <ref bean="securityConstraintMapping"/> + </list> + </property> + </bean> + </httpj:handlers> + </httpj:engine> + </httpj:engine-factory> + <bean id="securityLoginService" class="org.eclipse.jetty.security.HashLoginService"> + <property name="name" value="WSRealm"/> + <property name="config" value="src/test/resources/org/apache/cxf/systest/http_jetty/jetty-realm.properties"/> + </bean> + <bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint"> + <property name="name" value="DIGEST"/> + <property name="roles" value="admin"/> + <property name="authenticate" value="true"/> + </bean> + <bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> + <property name="constraint" ref="securityConstraint"/> + <property name="pathSpec" value="/*"/> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml new file mode 100644 index 0000000..4c4c30b --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/server-lifecycle-beans.xml @@ -0,0 +1,47 @@ +<?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://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 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 "> + <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> + <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype"> + <property name="configuration"> + <bean class="org.apache.cxf.aegis.type.TypeCreationOptions"> + <property name="defaultMinOccurs" value="1"/> + <property name="defaultNillable" value="false"/> + </bean> + </property> + </bean> + <!-- define a service factory that supports both JAX-WS annotations and + also Aegis files. --> + <bean id="jaxws-and-aegis-service-factory" class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean" scope="prototype"> + <property name="dataBinding" ref="aegisBean"/> + </bean> + <jaxws:endpoint id="dummy-service-endpoint" implementor="org.apache.cxf.systest.http_jetty.Dummy" address="http://localhost:${testutil.ports.EngineLifecycleTest.2}/Dummy"> + <jaxws:serviceFactory> + <ref bean="jaxws-and-aegis-service-factory"/> + </jaxws:serviceFactory> + </jaxws:endpoint> + <jaxws:endpoint id="dummy-8801-service-endpoint" implementor="org.apache.cxf.systest.http_jetty.Dummy" address="http://localhost:${testutil.ports.EngineLifecycleTest.1}/Dummy"> + <jaxws:serviceFactory> + <ref bean="jaxws-and-aegis-service-factory"/> + </jaxws:serviceFactory> + </jaxws:endpoint> + <bean id="dummy-client" class="org.apache.cxf.systest.http_jetty.DummyInterface" factory-bean="clientFactory" factory-method="create"/> + <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean"> + <property name="serviceClass" value="org.apache.cxf.systest.http_jetty.DummyInterface"/> + <property name="address" value="http://localhost:${testutil.ports.EngineLifecycleTest.2}/Dummy"/> + </bean> + <bean id="dummy-client-8801" class="org.apache.cxf.systest.http_jetty.DummyInterface" factory-bean="clientFactory-8801" factory-method="create"/> + <bean id="clientFactory-8801" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean"> + <property name="serviceClass" value="org.apache.cxf.systest.http_jetty.DummyInterface"/> + <property name="address" value="http://localhost:${testutil.ports.EngineLifecycleTest.1}/Dummy"/> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/server.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/server.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/server.xml new file mode 100644 index 0000000..edc34ad --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/server.xml @@ -0,0 +1,27 @@ +<?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-jetty="http://cxf.apache.org/transports/http-jetty/configuration" xsi:schemaLocation=" 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"> + <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> + <http-jetty:engine-factory bus="cxf"> + <http-jetty:engine port="${testutil.ports.org.apache.cxf.systest.http_jetty.Server}"> + <http-jetty:threadingParameters minThreads="3" maxThreads="${ThreadPoolTest.threads}"/> + </http-jetty:engine> + </http-jetty:engine-factory> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/test.html ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/test.html b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/test.html new file mode 100644 index 0000000..63d3de2 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/http_jetty/test.html @@ -0,0 +1,23 @@ +<html> +<!-- + 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. +--> +<body> +Test +</body> +</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/GreeterMessage.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/GreeterMessage.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/GreeterMessage.xml new file mode 100644 index 0000000..7b450e9 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/GreeterMessage.xml @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<!-- + 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. +--> +<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> + <env:Body> + <m:sayHi xmlns:m="http://apache.org/hello_world_soap_http/types"/> + </env:Body> +</env:Envelope> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/add.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/add.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/add.xml new file mode 100644 index 0000000..9477205 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/add.xml @@ -0,0 +1,22 @@ +<?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"> + <name>Hadrian</name> +</customer> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/cxf-jaxrs.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/cxf-jaxrs.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/cxf-jaxrs.xml new file mode 100644 index 0000000..8d5ef51 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/cxf-jaxrs.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" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd"> + <jaxrs:server id="bookservice" address="/"> + <jaxrs:serviceBeans> + <ref bean="bookstore"/> + <ref bean="bookstoreInterface"/> + </jaxrs:serviceBeans> + </jaxrs:server> + <bean id="bookstore" scope="prototype" class="org.apache.cxf.systest.jaxrs.BookStore"/> + <bean id="bookstoreInterface" scope="prototype" class="org.apache.cxf.systest.jaxrs.BookStoreWithInterface"/> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/cxf-servlet.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/cxf-servlet.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/cxf-servlet.xml new file mode 100644 index 0000000..88828eb --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/cxf-servlet.xml @@ -0,0 +1,38 @@ +<?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"> + <jaxws:endpoint id="greeter1" address="/greeter" implementor="org.apache.hello_world_soap_http.GreeterImpl" wsdlLocation="/org/apache/cxf/systest/servlet/hello_world.wsdl"/> + <jaxws:endpoint id="greeter2" address="/greeter2" implementor="org.apache.hello_world_xml_http.wrapped.GreeterImpl" wsdlLocation="/org/apache/cxf/systest/servlet/hello_world_xml_wrapped.wsdl"/> + <jaxws:endpoint id="greeter3" address="/greeter3" implementor="org.apache.cxf.systest.servlet.CXFServletTest$NoWsdlGreeter"> + <jaxws:schemaLocations> + <jaxws:schemaLocation>/org/apache/cxf/systest/servlet/hello_world_includes.xsd</jaxws:schemaLocation> + </jaxws:schemaLocations> + </jaxws:endpoint> + <jaxws:endpoint id="greeter4" address="/greeter4" implementor="org.apache.cxf.systest.servlet.CXFServletTest$NoWsdlGreeter"> + <jaxws:schemaLocations> + <jaxws:schemaLocation>/org/apache/cxf/systest/servlet/hello_world_includes.xsd</jaxws:schemaLocation> + </jaxws:schemaLocations> + <jaxws:properties> + <entry key="publishedEndpointUrl" value="http://cxf.apache.org/MyGreeter"/> + </jaxws:properties> + </jaxws:endpoint> + <jaxws:endpoint xmlns:e="http://apache.org/hello_world_soap_http" id="greeter5" address="/greeter5" publishedEndpointUrl="http://cxf.apache.org/publishedEndpointUrl1" implementor="org.apache.hello_world_soap_http.GreeterImpl" wsdlLocation="/org/apache/cxf/systest/servlet/hello_world.wsdl" serviceName="e:SOAPService" endpointName="e:SoapPort"/> + <jaxws:endpoint xmlns:e="http://apache.org/hello_world_soap_http" id="greeter6" address="/greeter6" publishedEndpointUrl="http://cxf.apache.org/publishedEndpointUrl2" implementor="org.apache.hello_world_soap_http.GreeterImpl" wsdlLocation="/org/apache/cxf/systest/servlet/hello_world.wsdl" serviceName="e:SOAPService" endpointName="e:SoapPort1"/> +</beans> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world.js ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world.js b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world.js new file mode 100644 index 0000000..3f92ca2 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world.js @@ -0,0 +1,50 @@ +/** + * 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. + */ + +var WebServiceProvider = { + 'wsdlLocation': 'file:../../testutils/target/classes/wsdl/hello_world.wsdl', + 'serviceName': 'SOAPService', + 'portName': 'SoapPort', + 'targetNamespace': 'http://apache.org/hello_world_soap_http', + 'ServiceMode': 'MESSAGE', +}; + +var SOAP_ENV = "http://schemas.xmlsoap.org/soap/envelope/"; +var ns4 = "http://apache.org/hello_world_soap_http/types"; + +WebServiceProvider.invoke = function(req) { + var resp = req.getImplementation().createDocument(SOAP_ENV, "SOAP-ENV:Envelope", null); + var list = req.getElementsByTagNameNS(ns4, "greetMe"); + var txt, responseNode; + if (list.length > 0) { + txt = resp.createTextNode("TestGreetMeResponse"); + responseNode = 'ns4:greetMeResponse'; + } else { + txt = resp.createTextNode("TestSayHiResponse"); + responseNode = 'ns4:sayHiResponse'; + } + var respType = resp.createElementNS(ns4, "ns4:responseType"); + respType.insertBefore(txt, null); + var gm = resp.createElementNS(ns4, responseNode); + gm.insertBefore(respType, null); + var sb = resp.createElementNS(SOAP_ENV, "SOAP-ENV:Body"); + sb.insertBefore(gm, null); + resp.getDocumentElement().insertBefore(sb, null); + return resp; +} http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world.wsdl ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world.wsdl b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world.wsdl new file mode 100644 index 0000000..4c8ba32 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/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> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_includes.xsd ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_includes.xsd b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_includes.xsd new file mode 100644 index 0000000..bbfd5a2 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_includes.xsd @@ -0,0 +1,150 @@ +<?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/types" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:x1="http://apache.org/hello_world_soap_http/types" elementFormDefault="qualified"> + <include schemaLocation="hello_world_includes2.xsd"/> + <element name="sayHi"> + <annotation> + <documentation>Hello sayHi users!</documentation> + </annotation> + <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> + <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"/> + <element name="BareDocument" type="string"/> + <element name="BareDocumentResponse"> + <complexType> + <sequence> + <element name="company" type="string"/> + </sequence> + <attribute name="id" type="int"/> + </complexType> + </element> +</schema> + http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_includes2.xsd ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_includes2.xsd b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_includes2.xsd new file mode 100644 index 0000000..18a2d10 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_includes2.xsd @@ -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. +--> +<schema targetNamespace="http://apache.org/hello_world_soap_http/types" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:x1="http://apache.org/hello_world_soap_http/types" elementFormDefault="qualified"> + <complexType name="ErrorCode"> + <sequence> + <element name="minor" type="short"/> + <element name="major" type="short"/> + </sequence> + </complexType> + <complexType name="stringStruct"> + <sequence> + <element name="arg0" type="string"/> + <element name="arg1" type="string"/> + </sequence> + </complexType> +</schema> + http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_xml_wrapped.wsdl ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_xml_wrapped.wsdl b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_xml_wrapped.wsdl new file mode 100644 index 0000000..f37c9ce --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/hello_world_xml_wrapped.wsdl @@ -0,0 +1,148 @@ +<?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:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://apache.org/hello_world_xml_http/wrapped" xmlns:x1="http://apache.org/hello_world_xml_http/wrapped/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xformat="http://cxf.apache.org/bindings/xformat" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HelloWorld" targetNamespace="http://apache.org/hello_world_xml_http/wrapped"> + <wsdl:types> + <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://apache.org/hello_world_xml_http/wrapped/types" elementFormDefault="qualified"> + <element name="sayHi"> + <complexType/> + </element> + <element name="sayHiResponse"> + <complexType> + <sequence> + <element name="responseType" type="xsd:string"/> + </sequence> + </complexType> + </element> + <element name="greetMe"> + <complexType> + <sequence> + <element name="requestType" type="xsd:string"/> + </sequence> + </complexType> + </element> + <element name="greetMeResponse"> + <complexType> + <sequence> + <element name="responseType" type="xsd:string"/> + </sequence> + </complexType> + </element> + <element name="greetMeOneWay"> + <complexType> + <sequence> + <element name="requestType" type="xsd:string"/> + </sequence> + </complexType> + </element> + <element name="pingMe"> + <complexType/> + </element> + <element name="pingMeResponse"> + <complexType/> + </element> + <element name="faultDetail"> + <complexType> + <sequence> + <element name="minor" type="xsd:short"/> + <element name="major" type="xsd:short"/> + </sequence> + </complexType> + </element> + </schema> + </wsdl:types> + <wsdl:message name="sayHiRequest"> + <wsdl:part element="x1:sayHi" name="in"/> + </wsdl:message> + <wsdl:message name="sayHiResponse"> + <wsdl:part element="x1:sayHiResponse" name="out"/> + </wsdl:message> + <wsdl:message name="greetMeRequest"> + <wsdl:part element="x1:greetMe" name="in"/> + </wsdl:message> + <wsdl:message name="greetMeResponse"> + <wsdl:part element="x1:greetMeResponse" name="out"/> + </wsdl:message> + <wsdl:message name="greetMeOneWayRequest"> + <wsdl:part element="x1:greetMeOneWay" name="in"/> + </wsdl:message> + <wsdl:message name="pingMeRequest"> + <wsdl:part name="in" element="x1:pingMe"/> + </wsdl:message> + <wsdl:message name="pingMeResponse"> + <wsdl:part name="out" element="x1:pingMeResponse"/> + </wsdl:message> + <wsdl:message name="pingMeFault"> + <wsdl:part name="faultDetail" element="x1:faultDetail"/> + </wsdl:message> + <wsdl:portType name="Greeter"> + <wsdl:operation name="sayHi"> + <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/> + <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/> + </wsdl:operation> + <wsdl:operation name="greetMe"> + <wsdl:input message="tns:greetMeRequest" name="greetMeRequest"/> + <wsdl:output message="tns:greetMeResponse" name="greetMeResponse"/> + </wsdl:operation> + <wsdl:operation name="greetMeOneWay"> + <wsdl:input message="tns:greetMeOneWayRequest" name="greetMeOneWayRequest"/> + </wsdl:operation> + <wsdl:operation name="pingMe"> + <wsdl:input name="pingMeRequest" message="tns:pingMeRequest"/> + <wsdl:output name="pingMeResponse" message="tns:pingMeResponse"/> + <wsdl:fault name="pingMeFault" message="tns:pingMeFault"/> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="Greeter_XMLBinding" type="tns:Greeter"> + <xformat:binding/> + <wsdl:operation name="sayHi"> + <wsdl:input name="sayHiRequest"/> + <wsdl:output name="sayHiResponse"/> + </wsdl:operation> + <wsdl:operation name="greetMe"> + <wsdl:input name="greetMeRequest"/> + <wsdl:output name="greetMeResponse"/> + </wsdl:operation> + <wsdl:operation name="greetMeOneWay"> + <wsdl:input name="greetMeOneWayRequest"/> + </wsdl:operation> + <wsdl:operation name="pingMe"> + <wsdl:input/> + <wsdl:output/> + <wsdl:fault name="pingMeFault"/> + </wsdl:operation> + </wsdl:binding> + <wsdl:service name="XMLService"> + <wsdl:port binding="tns:Greeter_XMLBinding" name="XMLPort"> + <http:address location="http://localhost:9032/XMLService/XMLPort"/> + </wsdl:port> + <wsdl:port binding="tns:Greeter_XMLBinding" name="XMLDispatchPort"> + <http:address location="http://localhost:9007/XMLService/XMLDispatchPort"/> + </wsdl:port> + <wsdl:port binding="tns:Greeter_XMLBinding" name="XMLProviderPort"> + <http:address location="http://localhost:9022/XMLService/XMLProviderPort"/> + </wsdl:port> + <wsdl:port binding="tns:Greeter_XMLBinding" name="RestProviderPort"> + <http:address location="http://localhost:9023/XMLService/RestProviderPort/Customer"/> + </wsdl:port> + <wsdl:port binding="tns:Greeter_XMLBinding" name="XMLFaultPort"> + <http:address location="http://localhost:9033/XMLService/XMLFaultPort"/> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> http://git-wip-us.apache.org/repos/asf/cxf/blob/3c07e4ad/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-auto-launch.xml ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-auto-launch.xml b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-auto-launch.xml new file mode 100644 index 0000000..2ac4f63 --- /dev/null +++ b/systests/transports/src/test/resources/org/apache/cxf/systest/servlet/spring-auto-launch.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: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="postprocess" class="org.apache.cxf.jaxws.spring.JaxWsWebServicePublisherBeanPostProcessor"/> + <bean id="s1" class="org.apache.hello_world_soap_http.GreeterImpl"/> + <bean id="s2" class="org.apache.hello_world_soap_http.DerivedGreeterImpl"/> +</beans>
