Author: veithen
Date: Fri Jul 4 21:43:05 2014
New Revision: 1607945
URL: http://svn.apache.org/r1607945
Log:
AXIOM-447: Add a test scenario that uses PayloadValidatingInterceptor.
Added:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteClient.java
(with props)
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteEndpoint.java
(with props)
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/ValidationTest.java
(with props)
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/client.xml
(with props)
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/schema/
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/schema/stockquote.xsd
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/server.xml
(with props)
Modified:
webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/DOOMSpringWSTest.java
webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/LLOMSpringWSTest.java
webservices/axiom/trunk/modules/axiom-jaxb/pom.xml
webservices/axiom/trunk/pom.xml
webservices/axiom/trunk/testsuites/spring-ws-testsuite/pom.xml
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/SpringWSTestSuiteBuilder.java
Modified:
webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/DOOMSpringWSTest.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/DOOMSpringWSTest.java?rev=1607945&r1=1607944&r2=1607945&view=diff
==============================================================================
---
webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/DOOMSpringWSTest.java
(original)
+++
webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/DOOMSpringWSTest.java
Fri Jul 4 21:43:05 2014
@@ -23,6 +23,7 @@ import org.apache.axiom.ts.springws.Mess
import org.apache.axiom.ts.springws.SpringWSTestSuiteBuilder;
import org.apache.axiom.ts.springws.scenario.broker.BrokerScenarioTest;
import org.apache.axiom.ts.springws.scenario.jaxb2.JAXB2Test;
+import org.apache.axiom.ts.springws.scenario.validation.ValidationTest;
import junit.framework.TestCase;
import junit.framework.TestSuite;
@@ -32,6 +33,7 @@ public class DOOMSpringWSTest extends Te
SpringWSTestSuiteBuilder builder = new SpringWSTestSuiteBuilder(new
AxiomMessageFactoryConfigurator(OMAbstractFactory.FEATURE_DOM),
MessageFactoryConfigurator.SAAJ);
builder.exclude(BrokerScenarioTest.class);
+ builder.exclude(ValidationTest.class);
// TODO: Iteration 5
builder.exclude(JAXB2Test.class);
Modified:
webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/LLOMSpringWSTest.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/LLOMSpringWSTest.java?rev=1607945&r1=1607944&r2=1607945&view=diff
==============================================================================
---
webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/LLOMSpringWSTest.java
(original)
+++
webservices/axiom/trunk/axiom-spring-ws/src/test/java/org/apache/axiom/spring/ws/test/LLOMSpringWSTest.java
Fri Jul 4 21:43:05 2014
@@ -22,6 +22,7 @@ import org.apache.axiom.om.OMAbstractFac
import org.apache.axiom.ts.springws.MessageFactoryConfigurator;
import org.apache.axiom.ts.springws.SpringWSTestSuiteBuilder;
import org.apache.axiom.ts.springws.scenario.broker.BrokerScenarioTest;
+import org.apache.axiom.ts.springws.scenario.validation.ValidationTest;
import junit.framework.TestCase;
import junit.framework.TestSuite;
@@ -31,6 +32,7 @@ public class LLOMSpringWSTest extends Te
SpringWSTestSuiteBuilder builder = new SpringWSTestSuiteBuilder(new
AxiomMessageFactoryConfigurator(OMAbstractFactory.FEATURE_DEFAULT),
MessageFactoryConfigurator.SAAJ);
builder.exclude(BrokerScenarioTest.class);
+ builder.exclude(ValidationTest.class);
return builder.build();
}
Modified: webservices/axiom/trunk/modules/axiom-jaxb/pom.xml
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-jaxb/pom.xml?rev=1607945&r1=1607944&r2=1607945&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-jaxb/pom.xml (original)
+++ webservices/axiom/trunk/modules/axiom-jaxb/pom.xml Fri Jul 4 21:43:05 2014
@@ -80,7 +80,6 @@
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
- <version>0.8.0</version>
<executions>
<execution>
<phase>generate-test-sources</phase>
Modified: webservices/axiom/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/pom.xml?rev=1607945&r1=1607944&r2=1607945&view=diff
==============================================================================
--- webservices/axiom/trunk/pom.xml (original)
+++ webservices/axiom/trunk/pom.xml Fri Jul 4 21:43:05 2014
@@ -561,6 +561,11 @@
<version>3.2</version>
</plugin>
<plugin>
+ <groupId>org.jvnet.jaxb2.maven2</groupId>
+ <artifactId>maven-jaxb2-plugin</artifactId>
+ <version>0.8.0</version>
+ </plugin>
+ <plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
Modified: webservices/axiom/trunk/testsuites/spring-ws-testsuite/pom.xml
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/spring-ws-testsuite/pom.xml?rev=1607945&r1=1607944&r2=1607945&view=diff
==============================================================================
--- webservices/axiom/trunk/testsuites/spring-ws-testsuite/pom.xml (original)
+++ webservices/axiom/trunk/testsuites/spring-ws-testsuite/pom.xml Fri Jul 4
21:43:05 2014
@@ -114,6 +114,21 @@
</signature>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jvnet.jaxb2.maven2</groupId>
+ <artifactId>maven-jaxb2-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+
<schemaDirectory>src/main/resources/org/apache/axiom/ts/springws/scenario/validation/schema</schemaDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
Modified:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/SpringWSTestSuiteBuilder.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/SpringWSTestSuiteBuilder.java?rev=1607945&r1=1607944&r2=1607945&view=diff
==============================================================================
---
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/SpringWSTestSuiteBuilder.java
(original)
+++
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/SpringWSTestSuiteBuilder.java
Fri Jul 4 21:43:05 2014
@@ -25,6 +25,7 @@ import org.apache.axiom.ts.springws.scen
import org.apache.axiom.ts.springws.scenario.castor.CastorTest;
import org.apache.axiom.ts.springws.scenario.jaxb2.JAXB2Test;
import org.apache.axiom.ts.springws.scenario.jdom.ClientServerTest;
+import org.apache.axiom.ts.springws.scenario.validation.ValidationTest;
import org.apache.axiom.ts.springws.scenario.wsadom.WSAddressingDOMTest;
import
org.apache.axiom.ts.springws.soap.messagefactory.TestCreateWebServiceMessage;
import
org.apache.axiom.ts.springws.soap.messagefactory.TestCreateWebServiceMessageFromInputStream;
@@ -62,5 +63,6 @@ public class SpringWSTestSuiteBuilder ex
addTest(new JAXB2Test(config, spec));
addTest(new CastorTest(config, spec));
addTest(new BrokerScenarioTest(config, spec));
+ addTest(new ValidationTest(config, spec));
}
}
Added:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteClient.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteClient.java?rev=1607945&view=auto
==============================================================================
---
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteClient.java
(added)
+++
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteClient.java
Fri Jul 4 21:43:05 2014
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.ts.springws.scenario.validation;
+
+import org.springframework.ws.client.core.WebServiceTemplate;
+
+public class StockQuoteClient {
+ private final WebServiceTemplate webServiceTemplate;
+
+ public StockQuoteClient(WebServiceTemplate webServiceTemplate) {
+ this.webServiceTemplate = webServiceTemplate;
+ }
+
+ public double getQuote(String symbol) {
+ GetQuote request = new GetQuote();
+ request.setSymbol(symbol);
+ return
((GetQuoteResponse)webServiceTemplate.marshalSendAndReceive(request)).getPrice();
+ }
+}
Propchange:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteEndpoint.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteEndpoint.java?rev=1607945&view=auto
==============================================================================
---
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteEndpoint.java
(added)
+++
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteEndpoint.java
Fri Jul 4 21:43:05 2014
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.ts.springws.scenario.validation;
+
+import org.springframework.ws.server.endpoint.annotation.Endpoint;
+import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
+import org.springframework.ws.server.endpoint.annotation.RequestPayload;
+import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
+
+@Endpoint
+public class StockQuoteEndpoint {
+
@PayloadRoot(namespace="http://apache.org/axiom/ts/springws/scenario/validation",
localPart="GetQuote")
+ @ResponsePayload
+ public GetQuoteResponse getQuote(@RequestPayload GetQuote request) {
+ GetQuoteResponse response = new GetQuoteResponse();
+ response.setPrice(105.37);
+ return response;
+ }
+}
Propchange:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/StockQuoteEndpoint.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/ValidationTest.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/ValidationTest.java?rev=1607945&view=auto
==============================================================================
---
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/ValidationTest.java
(added)
+++
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/ValidationTest.java
Fri Jul 4 21:43:05 2014
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.ts.springws.scenario.validation;
+
+import java.util.Iterator;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axiom.ts.soap.SOAPSpec;
+import org.apache.axiom.ts.springws.scenario.ScenarioConfig;
+import org.apache.axiom.ts.springws.scenario.ScenarioTestCase;
+import org.springframework.ws.soap.SoapFaultDetailElement;
+import org.springframework.ws.soap.client.SoapFaultClientException;
+
+public class ValidationTest extends ScenarioTestCase {
+ public ValidationTest(ScenarioConfig config, SOAPSpec spec) {
+ super(config, spec);
+ }
+
+ @Override
+ protected void runTest() throws Throwable {
+ StockQuoteClient client = context.getBean(StockQuoteClient.class);
+
+ assertEquals(105.37, client.getQuote("GOOG"), 0.001);
+
+ try {
+ client.getQuote("TOOLONG");
+ fail("Expected SoapFaultClientException");
+ } catch (SoapFaultClientException ex) {
+ assertEquals(spec.getSenderFaultCode(), ex.getFaultCode());
+ Iterator<SoapFaultDetailElement> it =
ex.getSoapFault().getFaultDetail().getDetailEntries();
+ assertTrue(it.hasNext());
+ assertEquals(new QName("http://springframework.org/spring-ws",
"ValidationError"), it.next().getName());
+ }
+ }
+}
Propchange:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/java/org/apache/axiom/ts/springws/scenario/validation/ValidationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/client.xml
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/client.xml?rev=1607945&view=auto
==============================================================================
---
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/client.xml
(added)
+++
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/client.xml
Fri Jul 4 21:43:05 2014
@@ -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.
+ -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:oxm="http://www.springframework.org/schema/oxm"
+ 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-3.2.xsd
+ http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm-3.2.xsd">
+ <oxm:jaxb2-marshaller id="marshaller"
contextPath="org.apache.axiom.ts.springws.scenario.validation"/>
+ <bean
class="org.apache.axiom.ts.springws.scenario.validation.StockQuoteClient">
+ <constructor-arg>
+ <bean
class="org.springframework.ws.client.core.WebServiceTemplate">
+ <constructor-arg ref="messageFactory"/>
+ <property name="marshaller" ref="marshaller"/>
+ <property name="unmarshaller" ref="marshaller"/>
+ <property name="defaultUri" value="http://localhost:${port}/"/>
+ </bean>
+ </constructor-arg>
+ </bean>
+</beans>
Propchange:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/client.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/schema/stockquote.xsd
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/schema/stockquote.xsd?rev=1607945&view=auto
==============================================================================
---
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/schema/stockquote.xsd
(added)
+++
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/schema/stockquote.xsd
Fri Jul 4 21:43:05 2014
@@ -0,0 +1,42 @@
+<?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 xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://apache.org/axiom/ts/springws/scenario/validation"
elementFormDefault="qualified">
+ <element name="GetQuote">
+ <complexType>
+ <sequence>
+ <element name="Symbol">
+ <simpleType>
+ <restriction base="string">
+ <minLength value="3"/>
+ <maxLength value="4"/>
+ </restriction>
+ </simpleType>
+ </element>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="GetQuoteResponse">
+ <complexType>
+ <sequence>
+ <element name="Price" type="double"/>
+ </sequence>
+ </complexType>
+ </element>
+</schema>
\ No newline at end of file
Added:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/server.xml
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/server.xml?rev=1607945&view=auto
==============================================================================
---
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/server.xml
(added)
+++
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/server.xml
Fri Jul 4 21:43:05 2014
@@ -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.
+ -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:sws="http://www.springframework.org/schema/web-services"
+ 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-3.2.xsd
+ http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd
+ http://www.springframework.org/schema/web-services
http://www.springframework.org/schema/web-services/web-services-2.0.xsd">
+ <context:component-scan
base-package="org.apache.axiom.ts.springws.scenario.validation"/>
+ <sws:annotation-driven/>
+ <sws:interceptors>
+ <bean
class="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor">
+ <property name="schema"
value="classpath:org/apache/axiom/ts/springws/scenario/validation/schema/stockquote.xsd"/>
+ <property name="validateRequest" value="true"/>
+ <property name="validateResponse" value="true"/>
+ </bean>
+ </sws:interceptors>
+</beans>
Propchange:
webservices/axiom/trunk/testsuites/spring-ws-testsuite/src/main/resources/org/apache/axiom/ts/springws/scenario/validation/server.xml
------------------------------------------------------------------------------
svn:eol-style = native