You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/09/15 21:07:03 UTC
svn commit: r289289 [80/134] - in /webservices/axis2/trunk/java: ./ etc/
modules/addressing/ modules/addressing/src/META-INF/
modules/addressing/src/org/apache/axis2/handlers/addressing/
modules/addressing/test-resources/ modules/addressing/test/org/ap...
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java Thu Sep 15 11:52:11 2005
@@ -1,54 +1,54 @@
-package org.apache.axis2.soap12testing.handlers;
-
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.
- *
- *
- */
-
-/**
- * Author : Deepal Jayasinghe
- * Date: Jul 26, 2005
- * Time: 2:56:05 PM
- */
-
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.soap.SOAPHeaderBlock;
-import org.apache.axis2.soap.SOAPHeader;
-import org.apache.axis2.handlers.AbstractHandler;
-
-import java.util.Iterator;
-
-public class SOAP12OutFaultFlowHandlerDefault extends AbstractHandler {
-
-
- public void revoke(MessageContext msgContext) {
-
- }
-
- public void invoke(MessageContext msgContext) {
- Integer headerBlockPresent = (Integer) msgContext.getOperationContext().getProperty("HEADER_BLOCK_PRESENT", true);
- if (headerBlockPresent.equals(new Integer(1))) {
- SOAPHeader headerAdd = (SOAPHeader) msgContext.getOperationContext().getProperty("HEADER_BLOCK", true);
- Iterator headerBlocks = headerAdd.examineAllHeaderBlocks();
- while(headerBlocks.hasNext()){
- SOAPHeaderBlock headerBlock=(SOAPHeaderBlock) headerBlocks.next();
- msgContext.getEnvelope().getHeader().addChild(headerBlock);
- }
- } else {
- msgContext.getEnvelope().getHeader().discard();
- }
- }
-}
+package org.apache.axis2.soap12testing.handlers;
+
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ *
+ *
+ */
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: Jul 26, 2005
+ * Time: 2:56:05 PM
+ */
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.soap.SOAPHeaderBlock;
+import org.apache.axis2.soap.SOAPHeader;
+import org.apache.axis2.handlers.AbstractHandler;
+
+import java.util.Iterator;
+
+public class SOAP12OutFaultFlowHandlerDefault extends AbstractHandler {
+
+
+ public void revoke(MessageContext msgContext) {
+
+ }
+
+ public void invoke(MessageContext msgContext) {
+ Integer headerBlockPresent = (Integer) msgContext.getOperationContext().getProperty("HEADER_BLOCK_PRESENT", true);
+ if (headerBlockPresent.equals(new Integer(1))) {
+ SOAPHeader headerAdd = (SOAPHeader) msgContext.getOperationContext().getProperty("HEADER_BLOCK", true);
+ Iterator headerBlocks = headerAdd.examineAllHeaderBlocks();
+ while(headerBlocks.hasNext()){
+ SOAPHeaderBlock headerBlock=(SOAPHeaderBlock) headerBlocks.next();
+ msgContext.getEnvelope().getHeader().addChild(headerBlock);
+ }
+ } else {
+ msgContext.getEnvelope().getHeader().discard();
+ }
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFaultFlowHandlerDefault.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java Thu Sep 15 11:52:11 2005
@@ -1,54 +1,54 @@
-package org.apache.axis2.soap12testing.handlers;
-
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.
- *
- *
- */
-
-/**
- * Author : Deepal Jayasinghe
- * Date: Jul 26, 2005
- * Time: 2:56:42 PM
- */
-
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.soap.SOAPHeaderBlock;
-import org.apache.axis2.soap.SOAPHeader;
-import org.apache.axis2.handlers.AbstractHandler;
-
-import java.util.Iterator;
-
-public class SOAP12OutFlowHandlerDefault extends AbstractHandler {
-
-
- public void revoke(MessageContext msgContext) {
-
- }
-
- public void invoke(MessageContext msgContext) {
- Integer headerBlockPresent = (Integer) msgContext.getOperationContext().getProperty("HEADER_BLOCK_PRESENT", true);
- if (headerBlockPresent.equals(new Integer(1))) {
- SOAPHeader headerAdd = (SOAPHeader) msgContext.getOperationContext().getProperty("HEADER_BLOCK", true);
- Iterator headerBlocks = headerAdd.examineAllHeaderBlocks();
- while(headerBlocks.hasNext()){
- SOAPHeaderBlock headerBlock=(SOAPHeaderBlock) headerBlocks.next();
- msgContext.getEnvelope().getHeader().addChild(headerBlock);
- }
- } else {
- msgContext.getEnvelope().getHeader().discard();
- }
- }
-}
+package org.apache.axis2.soap12testing.handlers;
+
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ *
+ *
+ */
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: Jul 26, 2005
+ * Time: 2:56:42 PM
+ */
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.soap.SOAPHeaderBlock;
+import org.apache.axis2.soap.SOAPHeader;
+import org.apache.axis2.handlers.AbstractHandler;
+
+import java.util.Iterator;
+
+public class SOAP12OutFlowHandlerDefault extends AbstractHandler {
+
+
+ public void revoke(MessageContext msgContext) {
+
+ }
+
+ public void invoke(MessageContext msgContext) {
+ Integer headerBlockPresent = (Integer) msgContext.getOperationContext().getProperty("HEADER_BLOCK_PRESENT", true);
+ if (headerBlockPresent.equals(new Integer(1))) {
+ SOAPHeader headerAdd = (SOAPHeader) msgContext.getOperationContext().getProperty("HEADER_BLOCK", true);
+ Iterator headerBlocks = headerAdd.examineAllHeaderBlocks();
+ while(headerBlocks.hasNext()){
+ SOAPHeaderBlock headerBlock=(SOAPHeaderBlock) headerBlocks.next();
+ msgContext.getEnvelope().getHeader().addChild(headerBlock);
+ }
+ } else {
+ msgContext.getEnvelope().getHeader().discard();
+ }
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestModuleC/org/apache/axis2/soap12testing/handlers/SOAP12OutFlowHandlerDefault.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/META-INF/service.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/META-INF/service.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/META-INF/service.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/META-INF/service.xml Thu Sep 15 11:52:11 2005
@@ -1,8 +1,8 @@
-<service name="SOAP12TestServiceB">
- <description>This is a sample Web Service for SOAP 1.2 Testing</description>
- <module ref="SOAP12TestModuleB"/>
- <parameter name="ServiceClass" locked="xsd:false">org.apache.axis2.soap12testing.webservices.SOAP12TestWebServiceDefault</parameter>
- <operation name="echo">
- <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
- </operation>
+<service name="SOAP12TestServiceB">
+ <description>This is a sample Web Service for SOAP 1.2 Testing</description>
+ <module ref="SOAP12TestModuleB"/>
+ <parameter name="ServiceClass" locked="xsd:false">org.apache.axis2.soap12testing.webservices.SOAP12TestWebServiceDefault</parameter>
+ <operation name="echo">
+ <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </operation>
</service>
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/META-INF/service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/build.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/build.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/build.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/build.xml Thu Sep 15 11:52:11 2005
@@ -1,53 +1,53 @@
-<?xml version="1.0"?>
-<project basedir="." default="jar">
- <property name="src" location="."/>
- <property name="build" location="build"/>
- <property name="build.classes" location="${build}/classes"/>
- <property name="build.lib" location="${build}/lib"/>
- <property name="lib" location="lib"/>
- <property name="root" location="../../../"/>
- <property name="jar.dir" location="${root}/target/Repository/services/"/>
-
- <path id="axis.test.classpath">
- <path refid="maven.dependency.classpath"></path>
- <pathelement location="../../../target/classes"/>
- <pathelement location="../../../target/test-classes"/>
- </path>
-
- <target name="compile" depends="init" unless="jars.uptodate">
- <mkdir dir="${build.classes}"/>
- <mkdir dir="${build.lib}"/>
- <javac destdir="${build.classes}" debug="on">
- <classpath refid="axis.test.classpath"/>
- <src path="${src}"/>
- </javac>
- </target>
-
- <target name="jar" depends="compile" unless="jars.uptodate">
- <copy todir="${build.classes}/META-INF">
- <fileset dir="${basedir}/META-INF/">
- <include name="**/*.xml"/>
- <exclude name="build.xml"/>
- </fileset>
- </copy>
-
- <mkdir dir="${jar.dir}"/>
- <jar jarfile="${jar.dir}/SOAP12TestServiceB.jar" basedir="${build.classes}">
- <include name="**"/>
- </jar>
- <delete dir="${build}"/>
- </target>
-
- <target name="init">
- <uptodate property="jars.uptodate" targetfile="${jar.dir}/SOAP12TestServiceB.jar">
- <srcfiles dir="${src}">
- <include name="**/*.java"/>
- <include name="**/*.xml"/>
- <include name="**/*.wsdl"/>
- <exclude name="${build}/**"/>
- </srcfiles>
- </uptodate>
- <echo message="the files are up to date = ${jars.uptodate}"></echo>
- </target>
-
-</project>
+<?xml version="1.0"?>
+<project basedir="." default="jar">
+ <property name="src" location="."/>
+ <property name="build" location="build"/>
+ <property name="build.classes" location="${build}/classes"/>
+ <property name="build.lib" location="${build}/lib"/>
+ <property name="lib" location="lib"/>
+ <property name="root" location="../../../"/>
+ <property name="jar.dir" location="${root}/target/Repository/services/"/>
+
+ <path id="axis.test.classpath">
+ <path refid="maven.dependency.classpath"></path>
+ <pathelement location="../../../target/classes"/>
+ <pathelement location="../../../target/test-classes"/>
+ </path>
+
+ <target name="compile" depends="init" unless="jars.uptodate">
+ <mkdir dir="${build.classes}"/>
+ <mkdir dir="${build.lib}"/>
+ <javac destdir="${build.classes}" debug="on">
+ <classpath refid="axis.test.classpath"/>
+ <src path="${src}"/>
+ </javac>
+ </target>
+
+ <target name="jar" depends="compile" unless="jars.uptodate">
+ <copy todir="${build.classes}/META-INF">
+ <fileset dir="${basedir}/META-INF/">
+ <include name="**/*.xml"/>
+ <exclude name="build.xml"/>
+ </fileset>
+ </copy>
+
+ <mkdir dir="${jar.dir}"/>
+ <jar jarfile="${jar.dir}/SOAP12TestServiceB.jar" basedir="${build.classes}">
+ <include name="**"/>
+ </jar>
+ <delete dir="${build}"/>
+ </target>
+
+ <target name="init">
+ <uptodate property="jars.uptodate" targetfile="${jar.dir}/SOAP12TestServiceB.jar">
+ <srcfiles dir="${src}">
+ <include name="**/*.java"/>
+ <include name="**/*.xml"/>
+ <include name="**/*.wsdl"/>
+ <exclude name="${build}/**"/>
+ </srcfiles>
+ </uptodate>
+ <echo message="the files are up to date = ${jars.uptodate}"></echo>
+ </target>
+
+</project>
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java Thu Sep 15 11:52:11 2005
@@ -1,41 +1,41 @@
-package org.apache.axis2.soap12testing.webservices;
-
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.
- *
- *
- */
-
-/**
- * Author : Deepal Jayasinghe
- * Date: Jul 26, 2005
- * Time: 3:00:47 PM
- */
-
-import org.apache.axis2.om.OMElement;
-
-public class SOAP12TestWebServiceDefault {
- public OMElement echo(OMElement element) {
- if (element != null) {
- if (element.getLocalName().equals("echoOk")) {
- element.setLocalName("responseOk");
-
- } else if (element.getLocalName().equals("returnVoid")) {
- element.setLocalName("returnVoidResponse");
- }
- }
- return element;
- }
-}
+package org.apache.axis2.soap12testing.webservices;
+
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ *
+ *
+ */
+
+/**
+ * Author : Deepal Jayasinghe
+ * Date: Jul 26, 2005
+ * Time: 3:00:47 PM
+ */
+
+import org.apache.axis2.om.OMElement;
+
+public class SOAP12TestWebServiceDefault {
+ public OMElement echo(OMElement element) {
+ if (element != null) {
+ if (element.getLocalName().equals("echoOk")) {
+ element.setLocalName("responseOk");
+
+ } else if (element.getLocalName().equals("returnVoid")) {
+ element.setLocalName("returnVoidResponse");
+ }
+ }
+ return element;
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceB/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/META-INF/service.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/META-INF/service.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/META-INF/service.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/META-INF/service.xml Thu Sep 15 11:52:11 2005
@@ -1,8 +1,8 @@
-<service name="SOAP12TestServiceC">
- <description>This is a sample Web Service for SOAP 1.2 Testing</description>
- <module ref="SOAP12TestModuleC"/>
- <parameter name="ServiceClass" locked="xsd:false">org.apache.axis2.soap12testing.webservices.SOAP12TestWebServiceDefault</parameter>
- <operation name="echo">
- <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
- </operation>
+<service name="SOAP12TestServiceC">
+ <description>This is a sample Web Service for SOAP 1.2 Testing</description>
+ <module ref="SOAP12TestModuleC"/>
+ <parameter name="ServiceClass" locked="xsd:false">org.apache.axis2.soap12testing.webservices.SOAP12TestWebServiceDefault</parameter>
+ <operation name="echo">
+ <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </operation>
</service>
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/META-INF/service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/build.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/build.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/build.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/build.xml Thu Sep 15 11:52:11 2005
@@ -1,53 +1,53 @@
-<?xml version="1.0"?>
-<project basedir="." default="jar">
- <property name="src" location="."/>
- <property name="build" location="build"/>
- <property name="build.classes" location="${build}/classes"/>
- <property name="build.lib" location="${build}/lib"/>
- <property name="lib" location="lib"/>
- <property name="root" location="../../../"/>
- <property name="jar.dir" location="${root}/target/Repository/services/"/>
-
- <path id="axis.test.classpath">
- <path refid="maven.dependency.classpath"></path>
- <pathelement location="../../../target/classes"/>
- <pathelement location="../../../target/test-classes"/>
- </path>
-
- <target name="compile" depends="init" unless="jars.uptodate">
- <mkdir dir="${build.classes}"/>
- <mkdir dir="${build.lib}"/>
- <javac destdir="${build.classes}" debug="on">
- <classpath refid="axis.test.classpath"/>
- <src path="${src}"/>
- </javac>
- </target>
-
- <target name="jar" depends="compile" unless="jars.uptodate">
- <copy todir="${build.classes}/META-INF">
- <fileset dir="${basedir}/META-INF/">
- <include name="**/*.xml"/>
- <exclude name="build.xml"/>
- </fileset>
- </copy>
-
- <mkdir dir="${jar.dir}"/>
- <jar jarfile="${jar.dir}/SOAP12TestServiceC.jar" basedir="${build.classes}">
- <include name="**"/>
- </jar>
- <delete dir="${build}"/>
- </target>
-
- <target name="init">
- <uptodate property="jars.uptodate" targetfile="${jar.dir}/SOAP12TestServiceC.jar">
- <srcfiles dir="${src}">
- <include name="**/*.java"/>
- <include name="**/*.xml"/>
- <include name="**/*.wsdl"/>
- <exclude name="${build}/**"/>
- </srcfiles>
- </uptodate>
- <echo message="the files are up to date = ${jars.uptodate}"></echo>
- </target>
-
-</project>
+<?xml version="1.0"?>
+<project basedir="." default="jar">
+ <property name="src" location="."/>
+ <property name="build" location="build"/>
+ <property name="build.classes" location="${build}/classes"/>
+ <property name="build.lib" location="${build}/lib"/>
+ <property name="lib" location="lib"/>
+ <property name="root" location="../../../"/>
+ <property name="jar.dir" location="${root}/target/Repository/services/"/>
+
+ <path id="axis.test.classpath">
+ <path refid="maven.dependency.classpath"></path>
+ <pathelement location="../../../target/classes"/>
+ <pathelement location="../../../target/test-classes"/>
+ </path>
+
+ <target name="compile" depends="init" unless="jars.uptodate">
+ <mkdir dir="${build.classes}"/>
+ <mkdir dir="${build.lib}"/>
+ <javac destdir="${build.classes}" debug="on">
+ <classpath refid="axis.test.classpath"/>
+ <src path="${src}"/>
+ </javac>
+ </target>
+
+ <target name="jar" depends="compile" unless="jars.uptodate">
+ <copy todir="${build.classes}/META-INF">
+ <fileset dir="${basedir}/META-INF/">
+ <include name="**/*.xml"/>
+ <exclude name="build.xml"/>
+ </fileset>
+ </copy>
+
+ <mkdir dir="${jar.dir}"/>
+ <jar jarfile="${jar.dir}/SOAP12TestServiceC.jar" basedir="${build.classes}">
+ <include name="**"/>
+ </jar>
+ <delete dir="${build}"/>
+ </target>
+
+ <target name="init">
+ <uptodate property="jars.uptodate" targetfile="${jar.dir}/SOAP12TestServiceC.jar">
+ <srcfiles dir="${src}">
+ <include name="**/*.java"/>
+ <include name="**/*.xml"/>
+ <include name="**/*.wsdl"/>
+ <exclude name="${build}/**"/>
+ </srcfiles>
+ </uptodate>
+ <echo message="the files are up to date = ${jars.uptodate}"></echo>
+ </target>
+
+</project>
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java Thu Sep 15 11:52:11 2005
@@ -1,36 +1,36 @@
-package org.apache.axis2.soap12testing.webservices;
-
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.
- *
- *
- */
-
-
-import org.apache.axis2.om.OMElement;
-
-public class SOAP12TestWebServiceDefault {
- public OMElement echo(OMElement element) {
- if (element != null) {
- if (element.getLocalName().equals("echoOk")) {
- element.setLocalName("responseOk");
-
- } else if (element.getLocalName().equals("returnVoid")) {
- element.setLocalName("returnVoidResponse");
- }
- }
- return element;
- }
-}
+package org.apache.axis2.soap12testing.webservices;
+
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ *
+ *
+ */
+
+
+import org.apache.axis2.om.OMElement;
+
+public class SOAP12TestWebServiceDefault {
+ public OMElement echo(OMElement element) {
+ if (element != null) {
+ if (element.getLocalName().equals("echoOk")) {
+ element.setLocalName("responseOk");
+
+ } else if (element.getLocalName().equals("returnVoid")) {
+ element.setLocalName("returnVoidResponse");
+ }
+ }
+ return element;
+ }
+}
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/SOAP12Testing/SOAP12TestServiceC/org/apache/axis2/soap12testing/webservices/SOAP12TestWebServiceDefault.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/complete.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/complete.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/complete.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s1.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s1.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s1.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s2.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s2.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s2.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s2a.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s2a.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s2a.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s3.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s3.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s3.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s4.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s4.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s4.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s5.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s5.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s5.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s6.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s6.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s6.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s7.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s7.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/s7.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/sST1.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/sST1.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/sST1.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/secMtom.client.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/secMtom.service.axis2.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/security/secMtom.service.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/soap/emtyBodymessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/soap/emtyBodymessage.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/soap/emtyBodymessage.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/soap/emtyBodymessage.xml Thu Sep 15 11:52:11 2005
@@ -1,18 +1,18 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ </soapenv:Body>
</soapenv:Envelope>
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soap/emtyBodymessage.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soap/minimalMessage.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soap/reallyReallyBigMessage.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soap/sample1.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soap/security2-soap.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage.xml Thu Sep 15 11:52:11 2005
@@ -1,20 +1,20 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
- </axis2:echoVoid>
- </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
+ </axis2:echoVoid>
+ </soapenv:Body>
</soapenv:Envelope>
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage1.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage1.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage1.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage1.xml Thu Sep 15 11:52:11 2005
@@ -1,27 +1,27 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- <ns1:getBalance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:ns1="http://localhost:8081/axis/services/BankPort">
- <ns1:accountNo href="#id0"/>
- </ns1:getBalance>
- <multiRef xmlns="tempUri" id="id0" soapenc:root="0"
- soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
- xsi:type="xsd:int"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1001
- </multiRef>
- </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <ns1:getBalance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:ns1="http://localhost:8081/axis/services/BankPort">
+ <ns1:accountNo href="#id0"/>
+ </ns1:getBalance>
+ <multiRef xmlns="tempUri" id="id0" soapenc:root="0"
+ soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+ xsi:type="xsd:int"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1001
+ </multiRef>
+ </soapenv:Body>
</soapenv:Envelope>
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soap/soapmessage1.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soap/whitespacedMessage.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test-resources/soapmessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test-resources/soapmessage.xml?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test-resources/soapmessage.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/test-resources/soapmessage.xml Thu Sep 15 11:52:11 2005
@@ -1,15 +1,15 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- <ns1:getBalance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://localhost:8081/axis/services/BankPort">
- <accountNo href="#id0"/>
- </ns1:getBalance>
- <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1001</multiRef>
- </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <ns1:getBalance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://localhost:8081/axis/services/BankPort">
+ <accountNo href="#id0"/>
+ </ns1:getBalance>
+ <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1001</multiRef>
+ </soapenv:Body>
</soapenv:Envelope>
Propchange: webservices/axis2/trunk/java/modules/integration/test-resources/soapmessage.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/CallUnregisteredServiceTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/CharctersetEncodingTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/CommonsHTTPEchoRawXMLTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/Echo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLChunckedTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLLoadTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsSyncTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLOnTwoChannelsTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/EchoRawXMLTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java Thu Sep 15 11:52:11 2005
@@ -1,150 +1,150 @@
-package org.apache.axis2.engine;
-
-import junit.framework.TestCase;
-import org.apache.axis2.AxisFault;
-import org.apache.axis2.Constants;
-import org.apache.axis2.addressing.EndpointReference;
-import org.apache.axis2.engine.util.MyInOutMEPClient;
-import org.apache.axis2.integration.UtilServer;
-import org.apache.axis2.om.OMAbstractFactory;
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.impl.OMOutputImpl;
-import org.apache.axis2.soap.*;
-import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import javax.xml.namespace.QName;
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamReader;
-import java.io.File;
-import java.io.FileReader;
-
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.
- *
- * author : Eran Chinthaka (chinthaka@apache.org)
- */
-
-public class FaultHandlingTest extends TestCase {
- private EndpointReference targetEPR =
- new EndpointReference("http://127.0.0.1:"
- + (UtilServer.TESTING_PORT)
-
- + "/axis/services/EchoXMLService/echoOMElement");
- private Log log = LogFactory.getLog(getClass());
- private QName operationName = new QName("echoOMElement");
-
- protected String testResourceDir = "test-resources";
- private MyInOutMEPClient inOutMEPClient;
-
-
- private boolean finish = false;
-
- protected void setUp() throws Exception {
- UtilServer.start();
- inOutMEPClient = getMyInOutMEPClient();
- }
-
- public void testTwoHeadersSOAPMessage() throws AxisFault, XMLStreamException {
- SOAPFactory fac = OMAbstractFactory.getSOAP12Factory();
- SOAPEnvelope soapEnvelope = getTwoHeadersSOAPEnvelope(fac);
- SOAPEnvelope resposeEnvelope = getResponse(soapEnvelope);
-
- checkSOAPFaultContent(resposeEnvelope);
- SOAPFault fault = resposeEnvelope.getBody().getFault();
- assertEquals(fault.getCode().getValue().getText().trim(), SOAP12Constants.FAULT_CODE_SENDER);
-
- fac = OMAbstractFactory.getSOAP11Factory();
- soapEnvelope = getTwoHeadersSOAPEnvelope(fac);
- resposeEnvelope = getResponse(soapEnvelope);
-
- checkSOAPFaultContent(resposeEnvelope);
- fault = resposeEnvelope.getBody().getFault();
- assertEquals(fault.getCode().getValue().getText().trim(), SOAP11Constants.FAULT_CODE_SENDER);
-
- }
-
-// public void testSOAPFaultSerializing(){
-// try {
-// SOAPEnvelope envelope = createEnvelope("soap/fault/test.xml");
-// SOAPEnvelope response = getResponse(envelope);
-// printElement(response);
-// assertTrue(true);
-// } catch (Exception e) {
-// }
-// }
-
- private void printElement(OMElement element) throws XMLStreamException {
- OMOutputImpl output = new OMOutputImpl(System.out, false);
- element.serializeWithCache(output);
- output.flush();
- }
-
-
-
- private void checkSOAPFaultContent(SOAPEnvelope soapEnvelope) {
- assertTrue(soapEnvelope.getBody().hasFault());
- SOAPFault fault = soapEnvelope.getBody().getFault();
- assertNotNull(fault.getCode());
- assertNotNull(fault.getCode().getValue());
- assertNotNull(fault.getReason());
- assertNotNull(fault.getReason().getText());
- }
-
- private SOAPEnvelope getResponse(SOAPEnvelope inEnvelope) throws AxisFault {
- inOutMEPClient.setExceptionToBeThrownOnSOAPFault(false);
- return inOutMEPClient.invokeBlockingWithEnvelopeOut(operationName.getLocalPart(), inEnvelope);
- }
-
- private SOAPEnvelope getTwoHeadersSOAPEnvelope(SOAPFactory fac) {
- SOAPEnvelope soapEnvelope = fac.createSOAPEnvelope();
- fac.createSOAPHeader(soapEnvelope);
- fac.createSOAPHeader(soapEnvelope);
- fac.createSOAPBody(soapEnvelope);
- return soapEnvelope;
- }
-
- private MyInOutMEPClient getMyInOutMEPClient() throws AxisFault {
- MyInOutMEPClient inOutMEPClient = new MyInOutMEPClient("target/test-resources/intregrationRepo");
- inOutMEPClient.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
- inOutMEPClient.setTo(targetEPR);
- inOutMEPClient.setTransportInfo(Constants.TRANSPORT_HTTP,
- Constants.TRANSPORT_HTTP,
- false);
- return inOutMEPClient;
- }
-
- private SOAPEnvelope createEnvelope(String fileName) throws Exception {
- if (fileName == "" || fileName == null) {
- throw new Exception("A SOAP file name must be provided !!");
- }
- XMLStreamReader parser = XMLInputFactory.newInstance()
- .createXMLStreamReader(new FileReader(getTestResourceFile(fileName)));
-
- return (SOAPEnvelope) new StAXSOAPModelBuilder(parser, null).getDocumentElement();
- }
-
- public File getTestResourceFile(String relativePath) {
- return new File(testResourceDir, relativePath);
- }
-
- protected void tearDown() throws Exception {
- UtilServer.stop();
- inOutMEPClient.close();
- }
-
-}
+package org.apache.axis2.engine;
+
+import junit.framework.TestCase;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.Constants;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.engine.util.MyInOutMEPClient;
+import org.apache.axis2.integration.UtilServer;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.impl.OMOutputImpl;
+import org.apache.axis2.soap.*;
+import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import javax.xml.namespace.QName;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import java.io.File;
+import java.io.FileReader;
+
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ *
+ * author : Eran Chinthaka (chinthaka@apache.org)
+ */
+
+public class FaultHandlingTest extends TestCase {
+ private EndpointReference targetEPR =
+ new EndpointReference("http://127.0.0.1:"
+ + (UtilServer.TESTING_PORT)
+
+ + "/axis/services/EchoXMLService/echoOMElement");
+ private Log log = LogFactory.getLog(getClass());
+ private QName operationName = new QName("echoOMElement");
+
+ protected String testResourceDir = "test-resources";
+ private MyInOutMEPClient inOutMEPClient;
+
+
+ private boolean finish = false;
+
+ protected void setUp() throws Exception {
+ UtilServer.start();
+ inOutMEPClient = getMyInOutMEPClient();
+ }
+
+ public void testTwoHeadersSOAPMessage() throws AxisFault, XMLStreamException {
+ SOAPFactory fac = OMAbstractFactory.getSOAP12Factory();
+ SOAPEnvelope soapEnvelope = getTwoHeadersSOAPEnvelope(fac);
+ SOAPEnvelope resposeEnvelope = getResponse(soapEnvelope);
+
+ checkSOAPFaultContent(resposeEnvelope);
+ SOAPFault fault = resposeEnvelope.getBody().getFault();
+ assertEquals(fault.getCode().getValue().getText().trim(), SOAP12Constants.FAULT_CODE_SENDER);
+
+ fac = OMAbstractFactory.getSOAP11Factory();
+ soapEnvelope = getTwoHeadersSOAPEnvelope(fac);
+ resposeEnvelope = getResponse(soapEnvelope);
+
+ checkSOAPFaultContent(resposeEnvelope);
+ fault = resposeEnvelope.getBody().getFault();
+ assertEquals(fault.getCode().getValue().getText().trim(), SOAP11Constants.FAULT_CODE_SENDER);
+
+ }
+
+// public void testSOAPFaultSerializing(){
+// try {
+// SOAPEnvelope envelope = createEnvelope("soap/fault/test.xml");
+// SOAPEnvelope response = getResponse(envelope);
+// printElement(response);
+// assertTrue(true);
+// } catch (Exception e) {
+// }
+// }
+
+ private void printElement(OMElement element) throws XMLStreamException {
+ OMOutputImpl output = new OMOutputImpl(System.out, false);
+ element.serializeWithCache(output);
+ output.flush();
+ }
+
+
+
+ private void checkSOAPFaultContent(SOAPEnvelope soapEnvelope) {
+ assertTrue(soapEnvelope.getBody().hasFault());
+ SOAPFault fault = soapEnvelope.getBody().getFault();
+ assertNotNull(fault.getCode());
+ assertNotNull(fault.getCode().getValue());
+ assertNotNull(fault.getReason());
+ assertNotNull(fault.getReason().getText());
+ }
+
+ private SOAPEnvelope getResponse(SOAPEnvelope inEnvelope) throws AxisFault {
+ inOutMEPClient.setExceptionToBeThrownOnSOAPFault(false);
+ return inOutMEPClient.invokeBlockingWithEnvelopeOut(operationName.getLocalPart(), inEnvelope);
+ }
+
+ private SOAPEnvelope getTwoHeadersSOAPEnvelope(SOAPFactory fac) {
+ SOAPEnvelope soapEnvelope = fac.createSOAPEnvelope();
+ fac.createSOAPHeader(soapEnvelope);
+ fac.createSOAPHeader(soapEnvelope);
+ fac.createSOAPBody(soapEnvelope);
+ return soapEnvelope;
+ }
+
+ private MyInOutMEPClient getMyInOutMEPClient() throws AxisFault {
+ MyInOutMEPClient inOutMEPClient = new MyInOutMEPClient("target/test-resources/intregrationRepo");
+ inOutMEPClient.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+ inOutMEPClient.setTo(targetEPR);
+ inOutMEPClient.setTransportInfo(Constants.TRANSPORT_HTTP,
+ Constants.TRANSPORT_HTTP,
+ false);
+ return inOutMEPClient;
+ }
+
+ private SOAPEnvelope createEnvelope(String fileName) throws Exception {
+ if (fileName == "" || fileName == null) {
+ throw new Exception("A SOAP file name must be provided !!");
+ }
+ XMLStreamReader parser = XMLInputFactory.newInstance()
+ .createXMLStreamReader(new FileReader(getTestResourceFile(fileName)));
+
+ return (SOAPEnvelope) new StAXSOAPModelBuilder(parser, null).getDocumentElement();
+ }
+
+ public File getTestResourceFile(String relativePath) {
+ return new File(testResourceDir, relativePath);
+ }
+
+ protected void tearDown() throws Exception {
+ UtilServer.stop();
+ inOutMEPClient.close();
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/FaultHandlingTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/HandlerFailureTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextEnabledEcho.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextEnabledEcho.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextEnabledEcho.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextEnabledEcho.java Thu Sep 15 11:52:11 2005
@@ -1,52 +1,52 @@
-package org.apache.axis2.engine;
-
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.AxisFault;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed 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.
-*
-*
-*/
-
-/**
- * Author: Deepal Jayasinghe
- * Date: Aug 23, 2005
- * Time: 7:14:30 PM
- */
-public class MessageContextEnabledEcho {
- private MessageContext msgcts;
- private Log log = LogFactory.getLog(getClass());
-
- public MessageContextEnabledEcho() {
- }
-
- public void init(MessageContext msgcts) {
- this.msgcts = msgcts;
-
- }
-
- public OMElement echoOMElement(OMElement omEle) throws AxisFault {
- if (msgcts != null) {
- log.info("MessageContext injected");
- } else {
- throw new AxisFault("Message Context not injected");
- }
- return null;
- }
-
+package org.apache.axis2.engine;
+
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.AxisFault;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed 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.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Aug 23, 2005
+ * Time: 7:14:30 PM
+ */
+public class MessageContextEnabledEcho {
+ private MessageContext msgcts;
+ private Log log = LogFactory.getLog(getClass());
+
+ public MessageContextEnabledEcho() {
+ }
+
+ public void init(MessageContext msgcts) {
+ this.msgcts = msgcts;
+
+ }
+
+ public OMElement echoOMElement(OMElement omEle) throws AxisFault {
+ if (msgcts != null) {
+ log.info("MessageContext injected");
+ } else {
+ throw new AxisFault("Message Context not injected");
+ }
+ return null;
+ }
+
}
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextEnabledEcho.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextInjectionTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextInjectionTest.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextInjectionTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextInjectionTest.java Thu Sep 15 11:52:11 2005
@@ -1,131 +1,131 @@
-package org.apache.axis2.engine;
-
-import junit.framework.TestCase;
-import org.apache.axis2.Constants;
-import org.apache.axis2.addressing.EndpointReference;
-import org.apache.axis2.clientapi.MessageSender;
-import org.apache.axis2.context.ConfigurationContext;
-import org.apache.axis2.context.MessageContext;
-import org.apache.axis2.description.*;
-import org.apache.axis2.om.OMAbstractFactory;
-import org.apache.axis2.om.OMElement;
-import org.apache.axis2.om.OMFactory;
-import org.apache.axis2.om.OMNamespace;
-import org.apache.axis2.receivers.AbstractMessageReceiver;
-import org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver;
-import org.apache.axis2.soap.SOAP11Constants;
-import org.apache.axis2.soap.SOAPEnvelope;
-import org.apache.axis2.soap.SOAPFactory;
-import org.apache.axis2.transport.local.LocalTransportReceiver;
-import org.apache.axis2.transport.TransportListener;
-import org.apache.axis2.transport.http.server.SimpleHttpServer;
-import org.apache.axis2.util.Utils;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import javax.xml.namespace.QName;
-/*
-* Copyright 2004,2005 The Apache Software Foundation.
-*
-* Licensed 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.
-*
-*
-*/
-
-/**
- * Author: Deepal Jayasinghe
- * Date: Aug 23, 2005
- * Time: 7:06:37 PM
- */
-public class MessageContextInjectionTest extends TestCase {
- private EndpointReference targetEPR =
- new EndpointReference("/axis2/services/EchoXMLService/echoOMElement");
- private Log log = LogFactory.getLog(getClass());
- private QName serviceName = new QName("EchoXMLService");
- private QName operationName = new QName("echoOMElement");
-
-
- private AxisConfiguration engineRegistry;
- private MessageContext mc;
-
- private SOAPEnvelope envelope;
-
- private boolean finish = false;
-
- public MessageContextInjectionTest() {
- super(MessageContextInjectionTest.class.getName());
- }
-
- public MessageContextInjectionTest(String testName) {
- super(testName);
- }
-
- protected void setUp() throws Exception {
- AxisConfiguration config = new AxisConfigurationImpl();
-
- TransportInDescription tIn = new TransportInDescription(new QName(Constants.TRANSPORT_LOCAL));
- config.addTransportIn(tIn);
-
- TransportOutDescription tOut = new TransportOutDescription(new QName(Constants.TRANSPORT_LOCAL));
- config.addTransportOut(tOut);
-
- ((AxisConfigurationImpl)config).setDefaultDispatchers();
- LocalTransportReceiver.CONFIG_CONTEXT = new ConfigurationContext(
- config);
-
- ServiceDescription service = new ServiceDescription(serviceName);
- service.addParameter(
- new ParameterImpl(AbstractMessageReceiver.SERVICE_CLASS,
- MessageContextEnabledEcho.class.getName()));
- OperationDescription operation = new OperationDescription(
- operationName);
- operation.setMessageReceiver(new RawXMLINOnlyMessageReceiver());
- service.addOperation(operation);
- service.setClassLoader(Thread.currentThread().getContextClassLoader());
- LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration()
- .addService(service);
- Utils.resolvePhases(
- LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration(),
- service);
- }
-
- protected void tearDown() throws Exception {
- }
-
- private OMElement createEnvelope() {
- OMFactory fac = OMAbstractFactory.getOMFactory();
- OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
- OMElement method = fac.createOMElement("echoOMElement", omNs);
- OMElement value = fac.createOMElement("myValue", omNs);
- value.addChild(
- fac.createText(value, "Isaac Assimov, the foundation Sega"));
- method.addChild(value);
-
- return method;
- }
-
- public void testEchoXMLSync() throws Exception {
- SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
-
- OMElement payload = createEnvelope();
-
- MessageSender sender = new MessageSender("target/test-resources/intregrationRepo");
-
- sender.setTo(targetEPR);
- sender.setSenderTransport(Constants.TRANSPORT_LOCAL);
- sender.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
- sender.send(operationName.getLocalPart(), payload);
-
- }
-
-}
+package org.apache.axis2.engine;
+
+import junit.framework.TestCase;
+import org.apache.axis2.Constants;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.clientapi.MessageSender;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.description.*;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.receivers.AbstractMessageReceiver;
+import org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver;
+import org.apache.axis2.soap.SOAP11Constants;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.soap.SOAPFactory;
+import org.apache.axis2.transport.local.LocalTransportReceiver;
+import org.apache.axis2.transport.TransportListener;
+import org.apache.axis2.transport.http.server.SimpleHttpServer;
+import org.apache.axis2.util.Utils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import javax.xml.namespace.QName;
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed 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.
+*
+*
+*/
+
+/**
+ * Author: Deepal Jayasinghe
+ * Date: Aug 23, 2005
+ * Time: 7:06:37 PM
+ */
+public class MessageContextInjectionTest extends TestCase {
+ private EndpointReference targetEPR =
+ new EndpointReference("/axis2/services/EchoXMLService/echoOMElement");
+ private Log log = LogFactory.getLog(getClass());
+ private QName serviceName = new QName("EchoXMLService");
+ private QName operationName = new QName("echoOMElement");
+
+
+ private AxisConfiguration engineRegistry;
+ private MessageContext mc;
+
+ private SOAPEnvelope envelope;
+
+ private boolean finish = false;
+
+ public MessageContextInjectionTest() {
+ super(MessageContextInjectionTest.class.getName());
+ }
+
+ public MessageContextInjectionTest(String testName) {
+ super(testName);
+ }
+
+ protected void setUp() throws Exception {
+ AxisConfiguration config = new AxisConfigurationImpl();
+
+ TransportInDescription tIn = new TransportInDescription(new QName(Constants.TRANSPORT_LOCAL));
+ config.addTransportIn(tIn);
+
+ TransportOutDescription tOut = new TransportOutDescription(new QName(Constants.TRANSPORT_LOCAL));
+ config.addTransportOut(tOut);
+
+ ((AxisConfigurationImpl)config).setDefaultDispatchers();
+ LocalTransportReceiver.CONFIG_CONTEXT = new ConfigurationContext(
+ config);
+
+ ServiceDescription service = new ServiceDescription(serviceName);
+ service.addParameter(
+ new ParameterImpl(AbstractMessageReceiver.SERVICE_CLASS,
+ MessageContextEnabledEcho.class.getName()));
+ OperationDescription operation = new OperationDescription(
+ operationName);
+ operation.setMessageReceiver(new RawXMLINOnlyMessageReceiver());
+ service.addOperation(operation);
+ service.setClassLoader(Thread.currentThread().getContextClassLoader());
+ LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration()
+ .addService(service);
+ Utils.resolvePhases(
+ LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration(),
+ service);
+ }
+
+ protected void tearDown() throws Exception {
+ }
+
+ private OMElement createEnvelope() {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+ OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my");
+ OMElement method = fac.createOMElement("echoOMElement", omNs);
+ OMElement value = fac.createOMElement("myValue", omNs);
+ value.addChild(
+ fac.createText(value, "Isaac Assimov, the foundation Sega"));
+ method.addChild(value);
+
+ return method;
+ }
+
+ public void testEchoXMLSync() throws Exception {
+ SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
+
+ OMElement payload = createEnvelope();
+
+ MessageSender sender = new MessageSender("target/test-resources/intregrationRepo");
+
+ sender.setTo(targetEPR);
+ sender.setSenderTransport(Constants.TRANSPORT_LOCAL);
+ sender.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+ sender.send(operationName.getLocalPart(), payload);
+
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageContextInjectionTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MessageWithServerTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MockFlow.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MockFlow.java?rev=289289&r1=289288&r2=289289&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MockFlow.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MockFlow.java Thu Sep 15 11:52:11 2005
@@ -1,32 +1,32 @@
-/*
- * Copyright 2004,2005 The Apache Software Foundation.
- *
- * Licensed 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.axis2.engine;
-
-import org.apache.axis2.description.Flow;
-import org.apache.axis2.description.FlowImpl;
-
-public class MockFlow extends FlowImpl implements Flow {
- public MockFlow(String message, int length) {
- super();
- for (int i = 0; i < length; i++) {
- SpeakingHandler1 h1 = new SpeakingHandler1(
- "Executing " + i + " inside " + message);
- this.addHandler(h1.getHandlerDescription());
- }
- }
-
-}
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.engine;
+
+import org.apache.axis2.description.Flow;
+import org.apache.axis2.description.FlowImpl;
+
+public class MockFlow extends FlowImpl implements Flow {
+ public MockFlow(String message, int length) {
+ super();
+ for (int i = 0; i < length; i++) {
+ SpeakingHandler1 h1 = new SpeakingHandler1(
+ "Executing " + i + " inside " + message);
+ this.addHandler(h1.getHandlerDescription());
+ }
+ }
+
+}
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/MockFlow.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/OneWayRawXMLTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/SOAPversionTest.java
------------------------------------------------------------------------------
svn:eol-style = native