You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by ch...@apache.org on 2007/04/24 06:57:45 UTC

svn commit: r531722 [3/4] - in /webservices/sandesha/trunk/java: ./ modules/client/ modules/core/ modules/interop/ modules/interop/src/ modules/interop/src/main/ modules/interop/src/main/java/ modules/interop/src/main/java/org/ modules/interop/src/main...

Added: webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringRequestBodyType.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringRequestBodyType.java?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringRequestBodyType.java (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringRequestBodyType.java Mon Apr 23 21:57:43 2007
@@ -0,0 +1,469 @@
+/*
+ * 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.tempuri;
+
+/**
+ * EchoStringRequestBodyType bean class
+ */
+
+public class EchoStringRequestBodyType implements
+		org.apache.axis2.databinding.ADBBean {
+	/*
+	 * This type was generated from the piece of schema that had name =
+	 * EchoStringRequest.BodyType Namespace URI = http://tempuri.org/ Namespace
+	 * Prefix = ns1
+	 */
+
+	/**
+	 * field for Text
+	 */
+
+	protected java.lang.String localText;
+
+	/*
+	 * This tracker boolean wil be used to detect whether the user called the
+	 * set method for this attribute. It will be used to determine whether to
+	 * include this field in the serialized XML
+	 */
+	protected boolean localTextTracker = false;
+
+	/**
+	 * Auto generated getter method
+	 * 
+	 * @return java.lang.String
+	 */
+	public java.lang.String getText() {
+		return localText;
+	}
+
+	/**
+	 * Auto generated setter method
+	 * 
+	 * @param param
+	 *            Text
+	 */
+	public void setText(java.lang.String param) {
+
+		// update the setting tracker
+		localTextTracker = true;
+
+		this.localText = param;
+
+	}
+
+	/**
+	 * field for Sequence
+	 */
+
+	protected java.lang.String localSequence;
+
+	/*
+	 * This tracker boolean wil be used to detect whether the user called the
+	 * set method for this attribute. It will be used to determine whether to
+	 * include this field in the serialized XML
+	 */
+	protected boolean localSequenceTracker = false;
+
+	/**
+	 * Auto generated getter method
+	 * 
+	 * @return java.lang.String
+	 */
+	public java.lang.String getSequence() {
+		return localSequence;
+	}
+
+	/**
+	 * Auto generated setter method
+	 * 
+	 * @param param
+	 *            Sequence
+	 */
+	public void setSequence(java.lang.String param) {
+
+		// update the setting tracker
+		localSequenceTracker = true;
+
+		this.localSequence = param;
+
+	}
+
+	/**
+	 * 
+	 * @param parentQName
+	 * @param factory
+	 * @return org.apache.axiom.om.OMElement
+	 */
+	public org.apache.axiom.om.OMElement getOMElement(
+			final javax.xml.namespace.QName parentQName,
+			final org.apache.axiom.om.OMFactory factory) {
+
+		org.apache.axiom.om.OMDataSource dataSource = new org.apache.axis2.databinding.ADBDataSource(
+				this, parentQName) {
+
+			public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+
+				java.lang.String prefix = parentQName.getPrefix();
+				java.lang.String namespace = parentQName.getNamespaceURI();
+
+				if (namespace != null) {
+					java.lang.String writerPrefix = xmlWriter
+							.getPrefix(namespace);
+					if (writerPrefix != null) {
+						xmlWriter.writeStartElement(namespace, parentQName
+								.getLocalPart());
+					} else {
+						if (prefix == null) {
+							prefix = org.apache.axis2.databinding.utils.BeanUtil
+									.getUniquePrefix();
+						}
+
+						xmlWriter.writeStartElement(prefix, parentQName
+								.getLocalPart(), namespace);
+						xmlWriter.writeNamespace(prefix, namespace);
+						xmlWriter.setPrefix(prefix, namespace);
+					}
+				} else {
+					xmlWriter.writeStartElement(parentQName.getLocalPart());
+				}
+
+				if (localTextTracker) {
+					namespace = "http://tempuri.org/";
+
+					if (!namespace.equals("")) {
+						prefix = xmlWriter.getPrefix(namespace);
+
+						if (prefix == null) {
+							prefix = org.apache.axis2.databinding.utils.BeanUtil
+									.getUniquePrefix();
+
+							xmlWriter.writeStartElement(prefix, "Text",
+									namespace);
+							xmlWriter.writeNamespace(prefix, namespace);
+							xmlWriter.setPrefix(prefix, namespace);
+
+						} else {
+							xmlWriter.writeStartElement(namespace, "Text");
+						}
+
+					} else {
+						xmlWriter.writeStartElement("Text");
+					}
+
+					if (localText == null) {
+						// write the nil attribute
+						writeAttribute("xsi",
+								"http://www.w3.org/2001/XMLSchema-instance",
+								"nil", "true", xmlWriter);
+					} else {
+
+						xmlWriter
+								.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil
+										.convertToString(localText));
+
+					}
+
+					xmlWriter.writeEndElement();
+				}
+				if (localSequenceTracker) {
+					namespace = "http://tempuri.org/";
+
+					if (!namespace.equals("")) {
+						prefix = xmlWriter.getPrefix(namespace);
+
+						if (prefix == null) {
+							prefix = org.apache.axis2.databinding.utils.BeanUtil
+									.getUniquePrefix();
+
+							xmlWriter.writeStartElement(prefix, "Sequence",
+									namespace);
+							xmlWriter.writeNamespace(prefix, namespace);
+							xmlWriter.setPrefix(prefix, namespace);
+
+						} else {
+							xmlWriter.writeStartElement(namespace, "Sequence");
+						}
+
+					} else {
+						xmlWriter.writeStartElement("Sequence");
+					}
+
+					if (localSequence == null) {
+						// write the nil attribute
+						writeAttribute("xsi",
+								"http://www.w3.org/2001/XMLSchema-instance",
+								"nil", "true", xmlWriter);
+					} else {
+
+						xmlWriter
+								.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil
+										.convertToString(localSequence));
+
+					}
+
+					xmlWriter.writeEndElement();
+				}
+
+				xmlWriter.writeEndElement();
+
+			}
+
+			/**
+			 * Util method to write an attribute with the ns prefix
+			 */
+			private void writeAttribute(java.lang.String prefix,
+					java.lang.String namespace, java.lang.String attName,
+					java.lang.String attValue,
+					javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+				if (xmlWriter.getPrefix(namespace) == null) {
+					xmlWriter.writeNamespace(prefix, namespace);
+					xmlWriter.setPrefix(prefix, namespace);
+
+				}
+
+				xmlWriter.writeAttribute(namespace, attName, attValue);
+
+			}
+
+			/**
+			 * Util method to write an attribute without the ns prefix
+			 */
+			private void writeAttribute(java.lang.String namespace,
+					java.lang.String attName, java.lang.String attValue,
+					javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+				if (namespace.equals("")) {
+					xmlWriter.writeAttribute(attName, attValue);
+				} else {
+					registerPrefix(xmlWriter, namespace);
+					xmlWriter.writeAttribute(namespace, attName, attValue);
+				}
+			}
+
+			/**
+			 * Register a namespace prefix
+			 */
+			private java.lang.String registerPrefix(
+					javax.xml.stream.XMLStreamWriter xmlWriter,
+					java.lang.String namespace)
+					throws javax.xml.stream.XMLStreamException {
+				java.lang.String prefix = xmlWriter.getPrefix(namespace);
+
+				if (prefix == null) {
+					prefix = createPrefix();
+
+					while (xmlWriter.getNamespaceContext().getNamespaceURI(
+							prefix) != null) {
+						prefix = createPrefix();
+					}
+
+					xmlWriter.writeNamespace(prefix, namespace);
+					xmlWriter.setPrefix(prefix, namespace);
+				}
+
+				return prefix;
+			}
+
+			/**
+			 * Create a prefix
+			 */
+			private java.lang.String createPrefix() {
+				return "ns" + (int) Math.random();
+			}
+		};
+
+		return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
+				parentQName, factory, dataSource);
+
+	}
+
+	/**
+	 * databinding method to get an XML representation of this object
+	 * 
+	 */
+	public javax.xml.stream.XMLStreamReader getPullParser(
+			javax.xml.namespace.QName qName) {
+
+		java.util.ArrayList elementList = new java.util.ArrayList();
+		java.util.ArrayList attribList = new java.util.ArrayList();
+
+		if (localTextTracker) {
+			elementList.add(new javax.xml.namespace.QName(
+					"http://tempuri.org/", "Text"));
+
+			elementList.add(localText == null ? null
+					: org.apache.axis2.databinding.utils.ConverterUtil
+							.convertToString(localText));
+		}
+		if (localSequenceTracker) {
+			elementList.add(new javax.xml.namespace.QName(
+					"http://tempuri.org/", "Sequence"));
+
+			elementList.add(localSequence == null ? null
+					: org.apache.axis2.databinding.utils.ConverterUtil
+							.convertToString(localSequence));
+		}
+
+		return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
+				qName, elementList.toArray(), attribList.toArray());
+
+	}
+
+	/**
+	 * Factory class that keeps the parse method
+	 */
+	public static class Factory {
+
+		/**
+		 * static method to create the object Precondition: If this object is an
+		 * element, the current or next start element starts this object and any
+		 * intervening reader events are ignorable If this object is not an
+		 * element, it is a complex type and the reader is at the event just
+		 * after the outer start element Postcondition: If this object is an
+		 * element, the reader is positioned at its end element If this object
+		 * is a complex type, the reader is positioned at the end element of its
+		 * outer element
+		 */
+		public static EchoStringRequestBodyType parse(
+				javax.xml.stream.XMLStreamReader reader)
+				throws java.lang.Exception {
+			EchoStringRequestBodyType object = new EchoStringRequestBodyType();
+			int event;
+			try {
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+
+				if (reader.getAttributeValue(
+						"http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
+					java.lang.String fullTypeName = reader
+							.getAttributeValue(
+									"http://www.w3.org/2001/XMLSchema-instance",
+									"type");
+					if (fullTypeName != null) {
+						java.lang.String nsPrefix = fullTypeName.substring(0,
+								fullTypeName.indexOf(":"));
+						nsPrefix = nsPrefix == null ? "" : nsPrefix;
+
+						java.lang.String type = fullTypeName
+								.substring(fullTypeName.indexOf(":") + 1);
+						if (!"EchoStringRequest.BodyType".equals(type)) {
+							// find namespace for the prefix
+							java.lang.String nsUri = reader
+									.getNamespaceContext().getNamespaceURI(
+											nsPrefix);
+							return (EchoStringRequestBodyType) org.tempuri.ExtensionMapper
+									.getTypeObject(nsUri, type, reader);
+						}
+
+					}
+
+				}
+
+				// Note all attributes that were handled. Used to differ normal
+				// attributes
+				// from anyAttributes.
+				java.util.Vector handledAttributes = new java.util.Vector();
+
+				boolean isReaderMTOMAware = false;
+
+				try {
+					isReaderMTOMAware = java.lang.Boolean.TRUE
+							.equals(reader
+									.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
+				} catch (java.lang.IllegalArgumentException e) {
+					isReaderMTOMAware = false;
+				}
+
+				reader.next();
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+
+				if (reader.isStartElement()
+						&& new javax.xml.namespace.QName("http://tempuri.org/",
+								"Text").equals(reader.getName())) {
+
+					if (!"true"
+							.equals(reader
+									.getAttributeValue(
+											"http://www.w3.org/2001/XMLSchema-instance",
+											"nil"))) {
+
+						java.lang.String content = reader.getElementText();
+
+						object
+								.setText(org.apache.axis2.databinding.utils.ConverterUtil
+										.convertToString(content));
+
+					} else {
+						reader.getElementText(); // throw away text nodes if
+													// any.
+					}
+
+					reader.next();
+
+				} // End of if for expected property start element
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+
+				if (reader.isStartElement()
+						&& new javax.xml.namespace.QName("http://tempuri.org/",
+								"Sequence").equals(reader.getName())) {
+
+					if (!"true"
+							.equals(reader
+									.getAttributeValue(
+											"http://www.w3.org/2001/XMLSchema-instance",
+											"nil"))) {
+
+						java.lang.String content = reader.getElementText();
+
+						object
+								.setSequence(org.apache.axis2.databinding.utils.ConverterUtil
+										.convertToString(content));
+
+					} else {
+						reader.getElementText(); // throw away text nodes if
+													// any.
+					}
+
+					reader.next();
+
+				} // End of if for expected property start element
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+				if (reader.isStartElement())
+					// A start element we are not expecting indicates a trailing
+					// invalid property
+					throw new java.lang.RuntimeException(
+							"Unexpected subelement " + reader.getLocalName());
+
+			} catch (javax.xml.stream.XMLStreamException e) {
+				throw new java.lang.Exception(e);
+			}
+
+			return object;
+		}
+
+	}// end of factory class
+
+}

Added: webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringResponse.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringResponse.java?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringResponse.java (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringResponse.java Mon Apr 23 21:57:43 2007
@@ -0,0 +1,286 @@
+/*
+ * 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.tempuri;
+
+/**
+ * EchoStringResponse bean class
+ */
+
+public class EchoStringResponse implements org.apache.axis2.databinding.ADBBean {
+
+	public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+			"http://tempuri.org/", "echoStringResponse", "ns1");
+
+	/**
+	 * field for EchoStringResponse
+	 */
+
+	protected org.tempuri.EchoStringResponseBodyType localEchoStringResponse;
+
+	/**
+	 * Auto generated getter method
+	 * 
+	 * @return org.tempuri.EchoStringResponseBodyType
+	 */
+	public org.tempuri.EchoStringResponseBodyType getEchoStringResponse() {
+		return localEchoStringResponse;
+	}
+
+	/**
+	 * Auto generated setter method
+	 * 
+	 * @param param
+	 *            EchoStringResponse
+	 */
+	public void setEchoStringResponse(
+			org.tempuri.EchoStringResponseBodyType param) {
+
+		this.localEchoStringResponse = param;
+
+	}
+
+	/**
+	 * 
+	 * @param parentQName
+	 * @param factory
+	 * @return org.apache.axiom.om.OMElement
+	 */
+	public org.apache.axiom.om.OMElement getOMElement(
+			final javax.xml.namespace.QName parentQName,
+			final org.apache.axiom.om.OMFactory factory) {
+
+		org.apache.axiom.om.OMDataSource dataSource = new org.apache.axis2.databinding.ADBDataSource(
+				this, parentQName) {
+
+			public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+
+				// We can safely assume an element has only one type associated
+				// with it
+
+				if (localEchoStringResponse == null) {
+					java.lang.String namespace = "http://tempuri.org/";
+
+					if (!namespace.equals("")) {
+						java.lang.String prefix = xmlWriter
+								.getPrefix(namespace);
+
+						if (prefix == null) {
+							prefix = org.apache.axis2.databinding.utils.BeanUtil
+									.getUniquePrefix();
+
+							xmlWriter.writeStartElement(prefix,
+									"echoStringResponse", namespace);
+							xmlWriter.writeNamespace(prefix, namespace);
+							xmlWriter.setPrefix(prefix, namespace);
+
+						} else {
+							xmlWriter.writeStartElement(namespace,
+									"echoStringResponse");
+						}
+
+					} else {
+						xmlWriter.writeStartElement("echoStringResponse");
+					}
+
+					// write the nil attribute
+					writeAttribute("xsi",
+							"http://www.w3.org/2001/XMLSchema-instance", "nil",
+							"true", xmlWriter);
+					xmlWriter.writeEndElement();
+				} else {
+					localEchoStringResponse.getOMElement(MY_QNAME, factory)
+							.serialize(xmlWriter);
+				}
+
+			}
+
+			/**
+			 * Util method to write an attribute with the ns prefix
+			 */
+			private void writeAttribute(java.lang.String prefix,
+					java.lang.String namespace, java.lang.String attName,
+					java.lang.String attValue,
+					javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+				if (xmlWriter.getPrefix(namespace) == null) {
+					xmlWriter.writeNamespace(prefix, namespace);
+					xmlWriter.setPrefix(prefix, namespace);
+
+				}
+
+				xmlWriter.writeAttribute(namespace, attName, attValue);
+
+			}
+
+			/**
+			 * Util method to write an attribute without the ns prefix
+			 */
+			private void writeAttribute(java.lang.String namespace,
+					java.lang.String attName, java.lang.String attValue,
+					javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+				if (namespace.equals("")) {
+					xmlWriter.writeAttribute(attName, attValue);
+				} else {
+					registerPrefix(xmlWriter, namespace);
+					xmlWriter.writeAttribute(namespace, attName, attValue);
+				}
+			}
+
+			/**
+			 * Register a namespace prefix
+			 */
+			private java.lang.String registerPrefix(
+					javax.xml.stream.XMLStreamWriter xmlWriter,
+					java.lang.String namespace)
+					throws javax.xml.stream.XMLStreamException {
+				java.lang.String prefix = xmlWriter.getPrefix(namespace);
+
+				if (prefix == null) {
+					prefix = createPrefix();
+
+					while (xmlWriter.getNamespaceContext().getNamespaceURI(
+							prefix) != null) {
+						prefix = createPrefix();
+					}
+
+					xmlWriter.writeNamespace(prefix, namespace);
+					xmlWriter.setPrefix(prefix, namespace);
+				}
+
+				return prefix;
+			}
+
+			/**
+			 * Create a prefix
+			 */
+			private java.lang.String createPrefix() {
+				return "ns" + (int) Math.random();
+			}
+		};
+
+		// ignore the QName passed in - we send only OUR QName!
+		return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(MY_QNAME,
+				factory, dataSource);
+
+	}
+
+	/**
+	 * databinding method to get an XML representation of this object
+	 * 
+	 */
+	public javax.xml.stream.XMLStreamReader getPullParser(
+			javax.xml.namespace.QName qName) {
+
+		// We can safely assume an element has only one type associated with it
+
+		if (localEchoStringResponse == null) {
+			return new org.apache.axis2.databinding.utils.reader.NullXMLStreamReader(
+					MY_QNAME);
+		} else {
+			return localEchoStringResponse.getPullParser(MY_QNAME);
+		}
+
+	}
+
+	/**
+	 * Factory class that keeps the parse method
+	 */
+	public static class Factory {
+
+		/**
+		 * static method to create the object Precondition: If this object is an
+		 * element, the current or next start element starts this object and any
+		 * intervening reader events are ignorable If this object is not an
+		 * element, it is a complex type and the reader is at the event just
+		 * after the outer start element Postcondition: If this object is an
+		 * element, the reader is positioned at its end element If this object
+		 * is a complex type, the reader is positioned at the end element of its
+		 * outer element
+		 */
+		public static EchoStringResponse parse(
+				javax.xml.stream.XMLStreamReader reader)
+				throws java.lang.Exception {
+			EchoStringResponse object = new EchoStringResponse();
+			int event;
+			try {
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+
+				if ("true".equals(reader.getAttributeValue(
+						"http://www.w3.org/2001/XMLSchema-instance", "nil"))) {
+					// Skip the element and report the null value. It cannot
+					// have subelements.
+					while (!reader.isEndElement())
+						reader.next();
+					return null;
+				}
+
+				// Note all attributes that were handled. Used to differ normal
+				// attributes
+				// from anyAttributes.
+				java.util.Vector handledAttributes = new java.util.Vector();
+
+				boolean isReaderMTOMAware = false;
+
+				try {
+					isReaderMTOMAware = java.lang.Boolean.TRUE
+							.equals(reader
+									.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
+				} catch (java.lang.IllegalArgumentException e) {
+					isReaderMTOMAware = false;
+				}
+
+				while (!reader.isEndElement()) {
+					if (reader.isStartElement()) {
+
+						if (reader.isStartElement()
+								&& new javax.xml.namespace.QName(
+										"http://tempuri.org/",
+										"echoStringResponse").equals(reader
+										.getName())) {
+
+							object
+									.setEchoStringResponse(org.tempuri.EchoStringResponseBodyType.Factory
+											.parse(reader));
+
+						} // End of if for expected property start element
+
+						else {
+							// A start element we are not expecting indicates an
+							// invalid parameter was passed
+							throw new java.lang.RuntimeException(
+									"Unexpected subelement "
+											+ reader.getLocalName());
+						}
+
+					} else
+						reader.next();
+				} // end of while loop
+
+			} catch (javax.xml.stream.XMLStreamException e) {
+				throw new java.lang.Exception(e);
+			}
+
+			return object;
+		}
+
+	}// end of factory class
+
+}

Added: webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringResponseBodyType.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringResponseBodyType.java?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringResponseBodyType.java (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/EchoStringResponseBodyType.java Mon Apr 23 21:57:43 2007
@@ -0,0 +1,359 @@
+/*
+ * 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.tempuri;
+
+/**
+ * EchoStringResponseBodyType bean class
+ */
+
+public class EchoStringResponseBodyType implements
+		org.apache.axis2.databinding.ADBBean {
+	/*
+	 * This type was generated from the piece of schema that had name =
+	 * EchoStringResponse.BodyType Namespace URI = http://tempuri.org/ Namespace
+	 * Prefix = ns1
+	 */
+
+	/**
+	 * field for EchoStringReturn
+	 */
+
+	protected java.lang.String localEchoStringReturn;
+
+	/*
+	 * This tracker boolean wil be used to detect whether the user called the
+	 * set method for this attribute. It will be used to determine whether to
+	 * include this field in the serialized XML
+	 */
+	protected boolean localEchoStringReturnTracker = false;
+
+	/**
+	 * Auto generated getter method
+	 * 
+	 * @return java.lang.String
+	 */
+	public java.lang.String getEchoStringReturn() {
+		return localEchoStringReturn;
+	}
+
+	/**
+	 * Auto generated setter method
+	 * 
+	 * @param param
+	 *            EchoStringReturn
+	 */
+	public void setEchoStringReturn(java.lang.String param) {
+
+		// update the setting tracker
+		localEchoStringReturnTracker = true;
+
+		this.localEchoStringReturn = param;
+
+	}
+
+	/**
+	 * 
+	 * @param parentQName
+	 * @param factory
+	 * @return org.apache.axiom.om.OMElement
+	 */
+	public org.apache.axiom.om.OMElement getOMElement(
+			final javax.xml.namespace.QName parentQName,
+			final org.apache.axiom.om.OMFactory factory) {
+
+		org.apache.axiom.om.OMDataSource dataSource = new org.apache.axis2.databinding.ADBDataSource(
+				this, parentQName) {
+
+			public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+
+				java.lang.String prefix = parentQName.getPrefix();
+				java.lang.String namespace = parentQName.getNamespaceURI();
+
+				if (namespace != null) {
+					java.lang.String writerPrefix = xmlWriter
+							.getPrefix(namespace);
+					if (writerPrefix != null) {
+						xmlWriter.writeStartElement(namespace, parentQName
+								.getLocalPart());
+					} else {
+						if (prefix == null) {
+							prefix = org.apache.axis2.databinding.utils.BeanUtil
+									.getUniquePrefix();
+						}
+
+						xmlWriter.writeStartElement(prefix, parentQName
+								.getLocalPart(), namespace);
+						xmlWriter.writeNamespace(prefix, namespace);
+						xmlWriter.setPrefix(prefix, namespace);
+					}
+				} else {
+					xmlWriter.writeStartElement(parentQName.getLocalPart());
+				}
+
+				if (localEchoStringReturnTracker) {
+					namespace = "http://tempuri.org/";
+
+					if (!namespace.equals("")) {
+						prefix = xmlWriter.getPrefix(namespace);
+
+						if (prefix == null) {
+							prefix = org.apache.axis2.databinding.utils.BeanUtil
+									.getUniquePrefix();
+
+							xmlWriter.writeStartElement(prefix,
+									"EchoStringReturn", namespace);
+							xmlWriter.writeNamespace(prefix, namespace);
+							xmlWriter.setPrefix(prefix, namespace);
+
+						} else {
+							xmlWriter.writeStartElement(namespace,
+									"EchoStringReturn");
+						}
+
+					} else {
+						xmlWriter.writeStartElement("EchoStringReturn");
+					}
+
+					if (localEchoStringReturn == null) {
+						// write the nil attribute
+						writeAttribute("xsi",
+								"http://www.w3.org/2001/XMLSchema-instance",
+								"nil", "true", xmlWriter);
+					} else {
+
+						xmlWriter
+								.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil
+										.convertToString(localEchoStringReturn));
+
+					}
+
+					xmlWriter.writeEndElement();
+				}
+
+				xmlWriter.writeEndElement();
+
+			}
+
+			/**
+			 * Util method to write an attribute with the ns prefix
+			 */
+			private void writeAttribute(java.lang.String prefix,
+					java.lang.String namespace, java.lang.String attName,
+					java.lang.String attValue,
+					javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+				if (xmlWriter.getPrefix(namespace) == null) {
+					xmlWriter.writeNamespace(prefix, namespace);
+					xmlWriter.setPrefix(prefix, namespace);
+
+				}
+
+				xmlWriter.writeAttribute(namespace, attName, attValue);
+
+			}
+
+			/**
+			 * Util method to write an attribute without the ns prefix
+			 */
+			private void writeAttribute(java.lang.String namespace,
+					java.lang.String attName, java.lang.String attValue,
+					javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+				if (namespace.equals("")) {
+					xmlWriter.writeAttribute(attName, attValue);
+				} else {
+					registerPrefix(xmlWriter, namespace);
+					xmlWriter.writeAttribute(namespace, attName, attValue);
+				}
+			}
+
+			/**
+			 * Register a namespace prefix
+			 */
+			private java.lang.String registerPrefix(
+					javax.xml.stream.XMLStreamWriter xmlWriter,
+					java.lang.String namespace)
+					throws javax.xml.stream.XMLStreamException {
+				java.lang.String prefix = xmlWriter.getPrefix(namespace);
+
+				if (prefix == null) {
+					prefix = createPrefix();
+
+					while (xmlWriter.getNamespaceContext().getNamespaceURI(
+							prefix) != null) {
+						prefix = createPrefix();
+					}
+
+					xmlWriter.writeNamespace(prefix, namespace);
+					xmlWriter.setPrefix(prefix, namespace);
+				}
+
+				return prefix;
+			}
+
+			/**
+			 * Create a prefix
+			 */
+			private java.lang.String createPrefix() {
+				return "ns" + (int) Math.random();
+			}
+		};
+
+		return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
+				parentQName, factory, dataSource);
+
+	}
+
+	/**
+	 * databinding method to get an XML representation of this object
+	 * 
+	 */
+	public javax.xml.stream.XMLStreamReader getPullParser(
+			javax.xml.namespace.QName qName) {
+
+		java.util.ArrayList elementList = new java.util.ArrayList();
+		java.util.ArrayList attribList = new java.util.ArrayList();
+
+		if (localEchoStringReturnTracker) {
+			elementList.add(new javax.xml.namespace.QName(
+					"http://tempuri.org/", "EchoStringReturn"));
+
+			elementList.add(localEchoStringReturn == null ? null
+					: org.apache.axis2.databinding.utils.ConverterUtil
+							.convertToString(localEchoStringReturn));
+		}
+
+		return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
+				qName, elementList.toArray(), attribList.toArray());
+
+	}
+
+	/**
+	 * Factory class that keeps the parse method
+	 */
+	public static class Factory {
+
+		/**
+		 * static method to create the object Precondition: If this object is an
+		 * element, the current or next start element starts this object and any
+		 * intervening reader events are ignorable If this object is not an
+		 * element, it is a complex type and the reader is at the event just
+		 * after the outer start element Postcondition: If this object is an
+		 * element, the reader is positioned at its end element If this object
+		 * is a complex type, the reader is positioned at the end element of its
+		 * outer element
+		 */
+		public static EchoStringResponseBodyType parse(
+				javax.xml.stream.XMLStreamReader reader)
+				throws java.lang.Exception {
+			EchoStringResponseBodyType object = new EchoStringResponseBodyType();
+			int event;
+			try {
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+
+				if (reader.getAttributeValue(
+						"http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
+					java.lang.String fullTypeName = reader
+							.getAttributeValue(
+									"http://www.w3.org/2001/XMLSchema-instance",
+									"type");
+					if (fullTypeName != null) {
+						java.lang.String nsPrefix = fullTypeName.substring(0,
+								fullTypeName.indexOf(":"));
+						nsPrefix = nsPrefix == null ? "" : nsPrefix;
+
+						java.lang.String type = fullTypeName
+								.substring(fullTypeName.indexOf(":") + 1);
+						if (!"EchoStringResponse.BodyType".equals(type)) {
+							// find namespace for the prefix
+							java.lang.String nsUri = reader
+									.getNamespaceContext().getNamespaceURI(
+											nsPrefix);
+							return (EchoStringResponseBodyType) org.tempuri.ExtensionMapper
+									.getTypeObject(nsUri, type, reader);
+						}
+
+					}
+
+				}
+
+				// Note all attributes that were handled. Used to differ normal
+				// attributes
+				// from anyAttributes.
+				java.util.Vector handledAttributes = new java.util.Vector();
+
+				boolean isReaderMTOMAware = false;
+
+				try {
+					isReaderMTOMAware = java.lang.Boolean.TRUE
+							.equals(reader
+									.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
+				} catch (java.lang.IllegalArgumentException e) {
+					isReaderMTOMAware = false;
+				}
+
+				reader.next();
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+
+				if (reader.isStartElement()
+						&& new javax.xml.namespace.QName("http://tempuri.org/",
+								"EchoStringReturn").equals(reader.getName())) {
+
+					if (!"true"
+							.equals(reader
+									.getAttributeValue(
+											"http://www.w3.org/2001/XMLSchema-instance",
+											"nil"))) {
+
+						java.lang.String content = reader.getElementText();
+
+						object
+								.setEchoStringReturn(org.apache.axis2.databinding.utils.ConverterUtil
+										.convertToString(content));
+
+					} else {
+						reader.getElementText(); // throw away text nodes if
+													// any.
+					}
+
+					reader.next();
+
+				} // End of if for expected property start element
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+				if (reader.isStartElement())
+					// A start element we are not expecting indicates a trailing
+					// invalid property
+					throw new java.lang.RuntimeException(
+							"Unexpected subelement " + reader.getLocalName());
+
+			} catch (javax.xml.stream.XMLStreamException e) {
+				throw new java.lang.Exception(e);
+			}
+
+			return object;
+		}
+
+	}// end of factory class
+
+}

Added: webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/ExtensionMapper.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/ExtensionMapper.java?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/ExtensionMapper.java (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/ExtensionMapper.java Mon Apr 23 21:57:43 2007
@@ -0,0 +1,47 @@
+/*
+ * 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.tempuri;
+
+/**
+ * ExtensionMapper class
+ */
+
+public class ExtensionMapper {
+
+	public static java.lang.Object getTypeObject(java.lang.String namespaceURI,
+			java.lang.String typeName, javax.xml.stream.XMLStreamReader reader)
+			throws java.lang.Exception {
+
+		if ("http://tempuri.org/".equals(namespaceURI)
+				&& "EchoStringResponse.BodyType".equals(typeName)) {
+
+			return org.tempuri.EchoStringResponseBodyType.Factory.parse(reader);
+
+		}
+
+		if ("http://tempuri.org/".equals(namespaceURI)
+				&& "EchoStringRequest.BodyType".equals(typeName)) {
+
+			return org.tempuri.EchoStringRequestBodyType.Factory.parse(reader);
+
+		}
+
+		throw new java.lang.RuntimeException("Unsupported type " + namespaceURI
+				+ " " + typeName);
+	}
+
+}

Added: webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/Ping.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/Ping.java?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/Ping.java (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/main/java/org/tempuri/Ping.java Mon Apr 23 21:57:43 2007
@@ -0,0 +1,355 @@
+/*
+ * 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.tempuri;
+
+/**
+ * Ping bean class
+ */
+
+public class Ping implements org.apache.axis2.databinding.ADBBean {
+
+	public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+			"http://tempuri.org/", "Ping", "ns1");
+
+	/**
+	 * field for Text
+	 */
+
+	protected java.lang.String localText;
+
+	/*
+	 * This tracker boolean wil be used to detect whether the user called the
+	 * set method for this attribute. It will be used to determine whether to
+	 * include this field in the serialized XML
+	 */
+	protected boolean localTextTracker = false;
+
+	/**
+	 * Auto generated getter method
+	 * 
+	 * @return java.lang.String
+	 */
+	public java.lang.String getText() {
+		return localText;
+	}
+
+	/**
+	 * Auto generated setter method
+	 * 
+	 * @param param
+	 *            Text
+	 */
+	public void setText(java.lang.String param) {
+
+		// update the setting tracker
+		localTextTracker = true;
+
+		this.localText = param;
+
+	}
+
+	/**
+	 * 
+	 * @param parentQName
+	 * @param factory
+	 * @return org.apache.axiom.om.OMElement
+	 */
+	public org.apache.axiom.om.OMElement getOMElement(
+			final javax.xml.namespace.QName parentQName,
+			final org.apache.axiom.om.OMFactory factory) {
+
+		org.apache.axiom.om.OMDataSource dataSource = new org.apache.axis2.databinding.ADBDataSource(
+				this, parentQName) {
+
+			public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+
+				java.lang.String prefix = parentQName.getPrefix();
+				java.lang.String namespace = parentQName.getNamespaceURI();
+
+				if (namespace != null) {
+					java.lang.String writerPrefix = xmlWriter
+							.getPrefix(namespace);
+					if (writerPrefix != null) {
+						xmlWriter.writeStartElement(namespace, parentQName
+								.getLocalPart());
+					} else {
+						if (prefix == null) {
+							prefix = org.apache.axis2.databinding.utils.BeanUtil
+									.getUniquePrefix();
+						}
+
+						xmlWriter.writeStartElement(prefix, parentQName
+								.getLocalPart(), namespace);
+						xmlWriter.writeNamespace(prefix, namespace);
+						xmlWriter.setPrefix(prefix, namespace);
+					}
+				} else {
+					xmlWriter.writeStartElement(parentQName.getLocalPart());
+				}
+
+				if (localTextTracker) {
+					namespace = "http://tempuri.org/";
+
+					if (!namespace.equals("")) {
+						prefix = xmlWriter.getPrefix(namespace);
+
+						if (prefix == null) {
+							prefix = org.apache.axis2.databinding.utils.BeanUtil
+									.getUniquePrefix();
+
+							xmlWriter.writeStartElement(prefix, "Text",
+									namespace);
+							xmlWriter.writeNamespace(prefix, namespace);
+							xmlWriter.setPrefix(prefix, namespace);
+
+						} else {
+							xmlWriter.writeStartElement(namespace, "Text");
+						}
+
+					} else {
+						xmlWriter.writeStartElement("Text");
+					}
+
+					if (localText == null) {
+						// write the nil attribute
+						writeAttribute("xsi",
+								"http://www.w3.org/2001/XMLSchema-instance",
+								"nil", "true", xmlWriter);
+					} else {
+
+						xmlWriter
+								.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil
+										.convertToString(localText));
+
+					}
+
+					xmlWriter.writeEndElement();
+				}
+
+				xmlWriter.writeEndElement();
+
+			}
+
+			/**
+			 * Util method to write an attribute with the ns prefix
+			 */
+			private void writeAttribute(java.lang.String prefix,
+					java.lang.String namespace, java.lang.String attName,
+					java.lang.String attValue,
+					javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+				if (xmlWriter.getPrefix(namespace) == null) {
+					xmlWriter.writeNamespace(prefix, namespace);
+					xmlWriter.setPrefix(prefix, namespace);
+
+				}
+
+				xmlWriter.writeAttribute(namespace, attName, attValue);
+
+			}
+
+			/**
+			 * Util method to write an attribute without the ns prefix
+			 */
+			private void writeAttribute(java.lang.String namespace,
+					java.lang.String attName, java.lang.String attValue,
+					javax.xml.stream.XMLStreamWriter xmlWriter)
+					throws javax.xml.stream.XMLStreamException {
+				if (namespace.equals("")) {
+					xmlWriter.writeAttribute(attName, attValue);
+				} else {
+					registerPrefix(xmlWriter, namespace);
+					xmlWriter.writeAttribute(namespace, attName, attValue);
+				}
+			}
+
+			/**
+			 * Register a namespace prefix
+			 */
+			private java.lang.String registerPrefix(
+					javax.xml.stream.XMLStreamWriter xmlWriter,
+					java.lang.String namespace)
+					throws javax.xml.stream.XMLStreamException {
+				java.lang.String prefix = xmlWriter.getPrefix(namespace);
+
+				if (prefix == null) {
+					prefix = createPrefix();
+
+					while (xmlWriter.getNamespaceContext().getNamespaceURI(
+							prefix) != null) {
+						prefix = createPrefix();
+					}
+
+					xmlWriter.writeNamespace(prefix, namespace);
+					xmlWriter.setPrefix(prefix, namespace);
+				}
+
+				return prefix;
+			}
+
+			/**
+			 * Create a prefix
+			 */
+			private java.lang.String createPrefix() {
+				return "ns" + (int) Math.random();
+			}
+		};
+
+		// ignore the QName passed in - we send only OUR QName!
+		return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(MY_QNAME,
+				factory, dataSource);
+
+	}
+
+	/**
+	 * databinding method to get an XML representation of this object
+	 * 
+	 */
+	public javax.xml.stream.XMLStreamReader getPullParser(
+			javax.xml.namespace.QName qName) {
+
+		java.util.ArrayList elementList = new java.util.ArrayList();
+		java.util.ArrayList attribList = new java.util.ArrayList();
+
+		if (localTextTracker) {
+			elementList.add(new javax.xml.namespace.QName(
+					"http://tempuri.org/", "Text"));
+
+			elementList.add(localText == null ? null
+					: org.apache.axis2.databinding.utils.ConverterUtil
+							.convertToString(localText));
+		}
+
+		return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(
+				qName, elementList.toArray(), attribList.toArray());
+
+	}
+
+	/**
+	 * Factory class that keeps the parse method
+	 */
+	public static class Factory {
+
+		/**
+		 * static method to create the object Precondition: If this object is an
+		 * element, the current or next start element starts this object and any
+		 * intervening reader events are ignorable If this object is not an
+		 * element, it is a complex type and the reader is at the event just
+		 * after the outer start element Postcondition: If this object is an
+		 * element, the reader is positioned at its end element If this object
+		 * is a complex type, the reader is positioned at the end element of its
+		 * outer element
+		 */
+		public static Ping parse(javax.xml.stream.XMLStreamReader reader)
+				throws java.lang.Exception {
+			Ping object = new Ping();
+			int event;
+			try {
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+
+				if (reader.getAttributeValue(
+						"http://www.w3.org/2001/XMLSchema-instance", "type") != null) {
+					java.lang.String fullTypeName = reader
+							.getAttributeValue(
+									"http://www.w3.org/2001/XMLSchema-instance",
+									"type");
+					if (fullTypeName != null) {
+						java.lang.String nsPrefix = fullTypeName.substring(0,
+								fullTypeName.indexOf(":"));
+						nsPrefix = nsPrefix == null ? "" : nsPrefix;
+
+						java.lang.String type = fullTypeName
+								.substring(fullTypeName.indexOf(":") + 1);
+						if (!"Ping".equals(type)) {
+							// find namespace for the prefix
+							java.lang.String nsUri = reader
+									.getNamespaceContext().getNamespaceURI(
+											nsPrefix);
+							return (Ping) org.tempuri.ExtensionMapper
+									.getTypeObject(nsUri, type, reader);
+						}
+
+					}
+
+				}
+
+				// Note all attributes that were handled. Used to differ normal
+				// attributes
+				// from anyAttributes.
+				java.util.Vector handledAttributes = new java.util.Vector();
+
+				boolean isReaderMTOMAware = false;
+
+				try {
+					isReaderMTOMAware = java.lang.Boolean.TRUE
+							.equals(reader
+									.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
+				} catch (java.lang.IllegalArgumentException e) {
+					isReaderMTOMAware = false;
+				}
+
+				reader.next();
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+
+				if (reader.isStartElement()
+						&& new javax.xml.namespace.QName("http://tempuri.org/",
+								"Text").equals(reader.getName())) {
+
+					if (!"true"
+							.equals(reader
+									.getAttributeValue(
+											"http://www.w3.org/2001/XMLSchema-instance",
+											"nil"))) {
+
+						java.lang.String content = reader.getElementText();
+
+						object
+								.setText(org.apache.axis2.databinding.utils.ConverterUtil
+										.convertToString(content));
+
+					} else {
+						reader.getElementText(); // throw away text nodes if
+													// any.
+					}
+
+					reader.next();
+
+				} // End of if for expected property start element
+
+				while (!reader.isStartElement() && !reader.isEndElement())
+					reader.next();
+				if (reader.isStartElement())
+					// A start element we are not expecting indicates a trailing
+					// invalid property
+					throw new java.lang.RuntimeException(
+							"Unexpected subelement " + reader.getLocalName());
+
+			} catch (javax.xml.stream.XMLStreamException e) {
+				throw new java.lang.Exception(e);
+			}
+
+			return object;
+		}
+
+	}// end of factory class
+
+}

Added: webservices/sandesha/trunk/java/modules/interop/src/resources/conf/RMInteropService.wsdl
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/resources/conf/RMInteropService.wsdl?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/resources/conf/RMInteropService.wsdl (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/resources/conf/RMInteropService.wsdl Mon Apr 23 21:57:43 2007
@@ -0,0 +1,138 @@
+<wsdl:definitions xmlns:tns="http://tempuri.org/"
+	xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+	xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+	xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	targetNamespace="http://tempuri.org/">
+	
+	<wsdl:types>
+	
+		<xsd:schema targetNamespace="http://tempuri.org/"
+			attributeFormDefault="unqualified"
+			elementFormDefault="qualified" >
+			
+			<xsd:element name="Ping">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="Text" minOccurs="0"
+							type="xsd:string" nillable="true" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			
+			<xsd:complexType name="EchoStringRequest.BodyType">
+				<xsd:sequence>
+					<xsd:element name="Text" minOccurs="0"
+						type="xsd:string" nillable="true" />
+					<xsd:element name="Sequence" minOccurs="0"
+						type="xsd:string" nillable="true" />
+				</xsd:sequence>
+			</xsd:complexType>
+			
+			<xsd:element name="echoString" type="tns:EchoStringRequest.BodyType" nillable="true" /> 
+
+			<xsd:complexType name="EchoStringResponse.BodyType">
+				<xsd:sequence>
+					<xsd:element name="EchoStringReturn" minOccurs="0"
+						type="xsd:string" nillable="true" />
+				</xsd:sequence>
+			</xsd:complexType>
+			
+			<xsd:element name="echoStringResponse" type="tns:EchoStringResponse.BodyType" nillable="true"/>
+
+        </xsd:schema>
+		
+	</wsdl:types>
+	
+	
+	<wsdl:message name="EchoStringRequest">
+		<wsdl:part name="part1" element="tns:echoString" />
+	</wsdl:message>
+	
+	<wsdl:message name="EchoStringResponse">
+		<wsdl:part name="part1" element="tns:echoStringResponse" />
+	</wsdl:message>
+	
+	<wsdl:message name="PingRequest">
+		<wsdl:part name="part1" element="tns:Ping" />
+	</wsdl:message>
+	
+    <wsdl:portType name="RMInteropServicePortType">
+	
+		<wsdl:operation name="EchoString">
+			<wsdl:input message="tns:EchoStringRequest"
+				wsaw:Action="urn:wsrm:EchoString" />
+			<wsdl:output message="tns:EchoStringResponse"
+				wsaw:Action="urn:wsrm:EchoStringResponse" />
+		</wsdl:operation>
+		
+		<wsdl:operation name="Ping">
+			<wsdl:input message="tns:PingRequest"
+				wsaw:Action="urn:wsrm:Ping" />
+		</wsdl:operation>
+		
+    </wsdl:portType>
+	
+	<wsdl:binding name="RMInteropServiceSOAP11Binding"
+		type="tns:RMInteropServicePortType">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+		<wsdl:operation name="EchoString">
+			<soap:operation soapAction="urn:wsrm:EchoString"
+				style="document" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+		<wsdl:operation name="Ping">
+			<soap:operation soapAction="urn:wsrm:Ping" style="document" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+	</wsdl:binding>
+	
+	<wsdl:binding name="RMInteropServiceSOAP12Binding"
+		type="tns:RMInteropServicePortType">
+		<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+			
+		<wsdl:operation name="EchoString">
+			<soap12:operation soapAction="urn:wsrm:EchoString"
+				style="document" />
+			<wsdl:input>
+				<soap12:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap12:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+		
+		<wsdl:operation name="Ping">
+			<soap12:operation soapAction="urn:wsrm:Ping"
+				style="document" />
+			<wsdl:input>
+				<soap12:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		
+	</wsdl:binding>
+	
+	<wsdl:service name="RMInteropService">
+		<wsdl:port name="RMInteropServiceSOAP11port_http"
+			binding="tns:RMInteropServiceSOAP11Binding">
+			<soap:address location="http://www.example.org/" />
+		</wsdl:port>
+		<wsdl:port name="RMInteropServiceSOAP12port_http"
+			binding="tns:RMInteropServiceSOAP12Binding">
+			<soap12:address location="http://www.example.org/" />
+		</wsdl:port>
+	</wsdl:service>
+	
+</wsdl:definitions>
\ No newline at end of file

Added: webservices/sandesha/trunk/java/modules/interop/src/resources/conf/SecRMInteropService.wsdl
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/resources/conf/SecRMInteropService.wsdl?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/resources/conf/SecRMInteropService.wsdl (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/resources/conf/SecRMInteropService.wsdl Mon Apr 23 21:57:43 2007
@@ -0,0 +1,138 @@
+<wsdl:definitions xmlns:tns="http://tempuri.org/"
+	xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+	xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+	xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	targetNamespace="http://tempuri.org/">
+	
+	<wsdl:types>
+	
+		<xsd:schema targetNamespace="http://tempuri.org/"
+			attributeFormDefault="unqualified"
+			elementFormDefault="qualified" >
+			
+			<xsd:element name="Ping">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="Text" minOccurs="0"
+							type="xsd:string" nillable="true" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			
+			<xsd:complexType name="EchoStringRequest.BodyType">
+				<xsd:sequence>
+					<xsd:element name="Text" minOccurs="0"
+						type="xsd:string" nillable="true" />
+					<xsd:element name="Sequence" minOccurs="0"
+						type="xsd:string" nillable="true" />
+				</xsd:sequence>
+			</xsd:complexType>
+			
+			<xsd:element name="echoString" type="tns:EchoStringRequest.BodyType" nillable="true" /> 
+
+			<xsd:complexType name="EchoStringResponse.BodyType">
+				<xsd:sequence>
+					<xsd:element name="EchoStringReturn" minOccurs="0"
+						type="xsd:string" nillable="true" />
+				</xsd:sequence>
+			</xsd:complexType>
+			
+			<xsd:element name="echoStringResponse" type="tns:EchoStringResponse.BodyType" nillable="true"/>
+
+        </xsd:schema>
+		
+	</wsdl:types>
+	
+	
+	<wsdl:message name="EchoStringRequest">
+		<wsdl:part name="part1" element="tns:echoString" />
+	</wsdl:message>
+	
+	<wsdl:message name="EchoStringResponse">
+		<wsdl:part name="part1" element="tns:echoStringResponse" />
+	</wsdl:message>
+	
+	<wsdl:message name="PingRequest">
+		<wsdl:part name="part1" element="tns:Ping" />
+	</wsdl:message>
+	
+    <wsdl:portType name="RMInteropServicePortType">
+	
+		<wsdl:operation name="EchoString">
+			<wsdl:input message="tns:EchoStringRequest"
+				wsaw:Action="urn:wsrm:EchoString" />
+			<wsdl:output message="tns:EchoStringResponse"
+				wsaw:Action="urn:wsrm:EchoStringResponse" />
+		</wsdl:operation>
+		
+		<wsdl:operation name="Ping">
+			<wsdl:input message="tns:PingRequest"
+				wsaw:Action="urn:wsrm:Ping" />
+		</wsdl:operation>
+		
+    </wsdl:portType>
+	
+	<wsdl:binding name="RMInteropServiceSOAP11Binding"
+		type="tns:RMInteropServicePortType">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+		<wsdl:operation name="EchoString">
+			<soap:operation soapAction="urn:wsrm:EchoString"
+				style="document" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+		<wsdl:operation name="Ping">
+			<soap:operation soapAction="urn:wsrm:Ping" style="document" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+	</wsdl:binding>
+	
+	<wsdl:binding name="RMInteropServiceSOAP12Binding"
+		type="tns:RMInteropServicePortType">
+		<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
+			style="document" />
+			
+		<wsdl:operation name="EchoString">
+			<soap12:operation soapAction="urn:wsrm:EchoString"
+				style="document" />
+			<wsdl:input>
+				<soap12:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap12:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+		
+		<wsdl:operation name="Ping">
+			<soap12:operation soapAction="urn:wsrm:Ping"
+				style="document" />
+			<wsdl:input>
+				<soap12:body use="literal" />
+			</wsdl:input>
+		</wsdl:operation>
+		
+	</wsdl:binding>
+	
+	<wsdl:service name="SecRMInteropService">
+		<wsdl:port name="RMInteropServiceSOAP11port_http"
+			binding="tns:RMInteropServiceSOAP11Binding">
+			<soap:address location="http://www.example.org/" />
+		</wsdl:port>
+		<wsdl:port name="RMInteropServiceSOAP12port_http"
+			binding="tns:RMInteropServiceSOAP12Binding">
+			<soap12:address location="http://www.example.org/" />
+		</wsdl:port>
+	</wsdl:service>
+	
+</wsdl:definitions>
\ No newline at end of file

Added: webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sandesha2_interop.properties
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sandesha2_interop.properties?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sandesha2_interop.properties (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sandesha2_interop.properties Mon Apr 23 21:57:43 2007
@@ -0,0 +1,2 @@
+to=http://127.0.0.1:8080/axis2/services/RMInteropService
+transportTo=http://127.0.0.1:8080/axis2/services/RMInteropService
\ No newline at end of file

Added: webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sec-client-axis2.xml
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sec-client-axis2.xml?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sec-client-axis2.xml (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sec-client-axis2.xml Mon Apr 23 21:57:43 2007
@@ -0,0 +1,439 @@
+<axisconfig name="AxisJava2.0">
+    <!-- ================================================= -->
+    <!-- Parameters -->
+    <!-- ================================================= -->
+    <parameter name="hotdeployment" locked="false">true</parameter>
+    <parameter name="hotupdate" locked="false">false</parameter>
+    <parameter name="enableMTOM" locked="false">false</parameter>
+
+    <!--During a fault, stacktrace can be sent with the fault message. The following flag will control -->
+    <!--that behaviour.-->
+    <parameter name="sendStacktraceDetailsWithFaults" locked="false">true</parameter>
+
+    <!--If there aren't any information available to find out the fault reason, we set the message of the expcetion-->
+    <!--as the faultreason/Reason. But when a fault is thrown from a service or some where, it will be -->
+    <!--wrapped by different levels. Due to this the initial exception message can be lost. If this flag-->
+    <!--is set then, Axis2 tries to get the first exception and set its message as the faultreason/Reason.-->
+    <parameter name="DrillDownToRootCauseForFaultReason" locked="false">false</parameter>
+
+    <!--This is the user name and password of admin console-->
+    <parameter name="userName" locked="false">admin</parameter>
+    <parameter name="password" locked="false">axis2</parameter>
+
+    <!--<parameter name="contextRoot" locked="false">axis2</parameter>-->
+    <!--<parameter name="servicePath" locked="false">services</parameter>-->
+    <!--Set the flag to true if you want to enable transport level session mangment-->
+    <parameter name="manageTransportSession" locked="false">false</parameter>
+
+    <!--Following two parameters will be used to handle REST in Axis2. The default settings will make Axis2 to have two-->
+    <!--different endpoints, one for REST (AxisRESTServlet) one for SOAP message handling (AxisServlet). But following-->
+    <!--parameters help to tweak the message handling of two main servlets. -->
+
+    <!-- If the enableRESTInAxis2MainServlet is true, then Axis2MainServlet will handle both SOAP and REST messages -->
+    <parameter name="enableRESTInAxis2MainServlet" locked="true">true</parameter>
+
+    <!-- Following parameter will completely disable REST handling in both the servlets-->
+    <parameter name="disableREST" locked="true">false</parameter>
+
+    <!-- This will disable the separate servlet we have for REST handling. -->
+    <parameter name="disableSeparateEndpointForREST" locked="true">false</parameter>
+
+
+
+    <!-- ================================================= -->
+    <!-- Message Receivers -->
+    <!-- ================================================= -->
+    <!--This is the Deafult Message Receiver for the system , if you want to have MessageReceivers for -->
+    <!--all the other MEP implement it and add the correct entry to here , so that you can refer from-->
+    <!--any operation -->
+    <!--Note : You can ovride this for particular service by adding the same element with your requirement-->
+    <messageReceivers>
+        <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-only"
+                         class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
+        <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-out"
+                         class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+    </messageReceivers>
+    
+    <!-- ================================================= -->
+    <!-- Target Resolvers -->
+    <!-- ================================================= -->
+    <!-- Uncomment the following and specify the class name for your TargetResolver to add -->
+    <!-- a TargetResolver. TargetResolvers are used to process the To EPR for example to -->
+    <!-- choose a server in a cluster -->
+    <!--<targetResolvers>-->
+    <!--<targetResolver class="" />-->
+    <!--</targetResolvers>-->
+    
+    
+    <!-- ================================================= -->
+    <!-- Transport Ins -->
+    <!-- ================================================= -->
+    <transportReceiver name="http"
+                       class="org.apache.axis2.transport.http.SimpleHTTPServer">
+        <parameter name="port" locked="false">6060</parameter>
+        <!--If you want to give your own host address for EPR generation-->
+        <!--uncommet following paramter , and set as you required.-->
+        <!--<parameter name="hostname" locked="false">http://myApp.com/ws</parameter>-->
+    </transportReceiver>
+
+    <transportReceiver name="tcp"
+                       class="org.apache.axis2.transport.tcp.TCPServer">
+        <parameter name="port" locked="false">6061</parameter>
+        <!--If you want to give your own host address for EPR generation-->
+        <!--uncommet following paramter , and set as you required.-->
+        <!--<parameter name="hostname" locked="false">tcp://myApp.com/ws</parameter>-->
+    </transportReceiver>
+
+    <!-- ================================================= -->
+    <!-- Transport Outs -->
+    <!-- ================================================= -->
+
+    <transportSender name="tcp"
+                     class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+    <transportSender name="local"
+                     class="org.apache.axis2.transport.local.LocalTransportSender"/>
+    <transportSender name="http"
+                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+        <parameter name="Transfer-Encoding" locked="false">chunked</parameter>
+    </transportSender>
+    <transportSender name="https"
+                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+        <parameter name="Transfer-Encoding" locked="false">chunked</parameter>
+    </transportSender>
+
+	<module ref="addressing" />
+	<module ref="sandesha2" />
+	
+    <!-- ================================================= -->
+    <!-- Phases  -->
+    <!-- ================================================= -->
+    <phaseOrder type="InFlow">
+        <!--  System pre defined phases       -->
+         <phase name="Transport">
+            <handler name="RequestURIBasedDispatcher"
+                     class="org.apache.axis2.engine.RequestURIBasedDispatcher">
+                <order phase="Transport"/>
+            </handler>
+            <handler name="SOAPActionBasedDispatcher"
+                     class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
+                <order phase="Transport"/>
+            </handler>
+        </phase>
+        <phase name="Security"/>
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+            <handler name="AddressingBasedDispatcher"
+                     class="org.apache.axis2.engine.AddressingBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+            <handler name="RequestURIOperationDispatcher"
+                     class="org.apache.axis2.engine.RequestURIOperationDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="SOAPMessageBodyBasedDispatcher"
+                     class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+            <handler name="InstanceDispatcher"
+                     class="org.apache.axis2.engine.InstanceDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+        </phase>
+        <!--  System pre defined phases       -->
+        <!--   After Postdispatch phase module author or or service author can add any phase he want      -->
+        <phase name="OperationInPhase"/>
+		<phase name="RMPhase" />
+    </phaseOrder>
+    <phaseOrder type="OutFlow">
+        <!--      user can add his own phases to this area  -->
+		<phase name="RMPhase" />
+	    <phase name="OperationOutPhase"/>
+        <!--system predefined phase-->
+        <!--these phase will run irrespective of the service-->
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+        <phase name="Security"/>
+    </phaseOrder>
+    <phaseOrder type="InFaultFlow">
+        <phase name="PreDispatch"/>
+        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+            <handler name="RequestURIBasedDispatcher"
+                     class="org.apache.axis2.engine.RequestURIBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="SOAPActionBasedDispatcher"
+                     class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="AddressingBasedDispatcher"
+                     class="org.apache.axis2.engine.AddressingBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+            <handler name="RequestURIOperationDispatcher"
+                     class="org.apache.axis2.engine.RequestURIOperationDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+
+            <handler name="SOAPMessageBodyBasedDispatcher"
+                     class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+            <handler name="InstanceDispatcher"
+                     class="org.apache.axis2.engine.InstanceDispatcher">
+                <order phase="Dispatch"/>
+            </handler>
+        </phase>
+        <!--      user can add his own phases to this area  -->
+        <phase name="OperationInFaultPhase"/>
+		<phase name="RMPhase" />
+    </phaseOrder>
+    <phaseOrder type="OutFaultFlow">
+        <!--      user can add his own phases to this area  -->
+        <phase name="RMPhase" />
+		<phase name="OperationOutFaultPhase"/>
+        <phase name="PolicyDetermination"/>
+        <phase name="MessageOut"/>
+    </phaseOrder>
+    
+	
+	<!-- Rampart and Rahas configurations -->
+	<wsp:Policy wsu:Id="SecConvPolicy2" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+	<wsp:ExactlyOne>
+		<wsp:All>
+			<sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+				<wsp:Policy>
+					<sp:ProtectionToken>
+						<wsp:Policy>
+							<sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+								<wsp:Policy>
+									<sp:RequireDerivedKeys/>
+									<sp:BootstrapPolicy>
+										<wsp:Policy>
+											<sp:EncryptedParts>
+												<sp:Body/>
+											</sp:EncryptedParts>
+											<sp:SymmetricBinding>
+												<wsp:Policy>
+													<sp:ProtectionToken>
+														<wsp:Policy>
+															<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+																<wsp:Policy>
+																	<sp:RequireDerivedKeys/>
+																	<sp:RequireThumbprintReference/>
+																	<sp:WssX509V3Token10/>
+																</wsp:Policy>
+															</sp:X509Token>
+														</wsp:Policy>
+													</sp:ProtectionToken>
+													<sp:AlgorithmSuite>
+														<wsp:Policy>
+															<sp:Basic128Rsa15/>
+														</wsp:Policy>
+													</sp:AlgorithmSuite>
+													<sp:Layout>
+														<wsp:Policy>
+															<sp:Strict/>
+														</wsp:Policy>
+													</sp:Layout>
+													<sp:IncludeTimestamp/>
+													<sp:EncryptSignature/>
+													<sp:OnlySignEntireHeadersAndBody/>
+												</wsp:Policy>
+											</sp:SymmetricBinding>
+											<sp:EndorsingSupportingTokens>
+												<wsp:Policy>
+													<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+														<wsp:Policy>
+															<sp:RequireThumbprintReference/>
+															<sp:WssX509V3Token10/>
+														</wsp:Policy>
+													</sp:X509Token>
+												</wsp:Policy>
+											</sp:EndorsingSupportingTokens>
+											<sp:Wss11>
+												<wsp:Policy>
+													<sp:MustSupportRefKeyIdentifier/>
+													<sp:MustSupportRefIssuerSerial/>
+													<sp:MustSupportRefThumbprint/>
+													<sp:MustSupportRefEncryptedKey/>
+													<sp:RequireSignatureConfirmation/>
+												</wsp:Policy>
+											</sp:Wss11>
+											<sp:Trust10>
+												<wsp:Policy>
+													<sp:MustSupportIssuedTokens/>
+													<sp:RequireClientEntropy/>
+													<sp:RequireServerEntropy/>
+												</wsp:Policy>
+											</sp:Trust10>
+										</wsp:Policy>
+									</sp:BootstrapPolicy>
+								</wsp:Policy>
+							</sp:SecureConversationToken>
+						</wsp:Policy>
+					</sp:ProtectionToken>
+					<sp:AlgorithmSuite>
+						<wsp:Policy>
+							<sp:Basic128Rsa15/>
+						</wsp:Policy>
+					</sp:AlgorithmSuite>
+					<sp:Layout>
+						<wsp:Policy>
+							<sp:Strict/>
+						</wsp:Policy>
+					</sp:Layout>
+					<sp:IncludeTimestamp/>
+					<sp:EncryptSignature/>
+					<sp:OnlySignEntireHeadersAndBody/>
+				</wsp:Policy>
+			</sp:SymmetricBinding>
+			<sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+				<wsp:Policy>
+					<sp:MustSupportRefKeyIdentifier/>
+					<sp:MustSupportRefIssuerSerial/>
+					<sp:MustSupportRefThumbprint/>
+					<sp:MustSupportRefEncryptedKey/>
+				</wsp:Policy>
+			</sp:Wss11>
+			<sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+				<wsp:Policy>
+					<sp:MustSupportIssuedTokens/>
+					<sp:RequireClientEntropy/>
+					<sp:RequireServerEntropy/>
+				</wsp:Policy>
+			</sp:Trust10>
+			<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+				<sp:Body/>
+			</sp:EncryptedParts>
+			<ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy"> 
+				<ramp:user>alice</ramp:user>
+				<ramp:encryptionUser>bob</ramp:encryptionUser>
+				<ramp:passwordCallbackClass>org.apache.sandesha2.interop.PWCallback</ramp:passwordCallbackClass>
+				
+				<ramp:signatureCrypto>
+					<ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
+						<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
+						<ramp:property name="org.apache.ws.security.crypto.merlin.file">interop/conf/store.jks</ramp:property>
+						<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">password</ramp:property>
+					</ramp:crypto>
+				</ramp:signatureCrypto>
+				<ramp:encryptionCypto>
+					<ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
+						<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
+						<ramp:property name="org.apache.ws.security.crypto.merlin.file">interop/conf/store.jks</ramp:property>
+						<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">password</ramp:property>
+					</ramp:crypto>
+				</ramp:encryptionCypto>
+				
+				<ramp:tokenIssuerPolicy xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+					<wsp:Policy>
+						<sp:EncryptedParts>
+							<sp:Body/>
+						</sp:EncryptedParts>
+						<sp:SymmetricBinding>
+							<wsp:Policy>
+								<sp:ProtectionToken>
+									<wsp:Policy>
+										<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+											<wsp:Policy>
+												<sp:RequireDerivedKeys/>
+												<sp:RequireThumbprintReference/>
+												<sp:WssX509V3Token10/>
+											</wsp:Policy>
+										</sp:X509Token>
+									</wsp:Policy>
+								</sp:ProtectionToken>
+								<sp:AlgorithmSuite>
+									<wsp:Policy>
+										<sp:Basic128Rsa15/>
+									</wsp:Policy>
+								</sp:AlgorithmSuite>
+								<sp:Layout>
+									<wsp:Policy>
+										<sp:Strict/>
+									</wsp:Policy>
+								</sp:Layout>
+								<sp:IncludeTimestamp/>
+								<sp:EncryptSignature/>
+								<sp:OnlySignEntireHeadersAndBody/>
+							</wsp:Policy>
+						</sp:SymmetricBinding>
+						<sp:EndorsingSupportingTokens>
+							<wsp:Policy>
+								<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+									<wsp:Policy>
+										<sp:RequireThumbprintReference/>
+										<sp:WssX509V3Token10/>
+									</wsp:Policy>
+								</sp:X509Token>
+							</wsp:Policy>
+						</sp:EndorsingSupportingTokens>
+						<sp:Wss11>
+							<wsp:Policy>
+								<sp:MustSupportRefKeyIdentifier/>
+								<sp:MustSupportRefIssuerSerial/>
+								<sp:MustSupportRefThumbprint/>
+								<sp:MustSupportRefEncryptedKey/>
+								<sp:RequireSignatureConfirmation/>
+							</wsp:Policy>
+						</sp:Wss11>
+						<sp:Trust10>
+							<wsp:Policy>
+								<sp:MustSupportIssuedTokens/>
+								<sp:RequireClientEntropy/>
+								<sp:RequireServerEntropy/>
+							</wsp:Policy>
+						</sp:Trust10>
+					</wsp:Policy>
+				</ramp:tokenIssuerPolicy>
+				
+			</ramp:RampartConfig>
+		</wsp:All>
+	</wsp:ExactlyOne>
+	</wsp:Policy>
+
+	
+    <parameter name="sct-issuer-config">
+		<sct-issuer-config>
+			<cryptoProperties>
+               <crypto provider="org.apache.ws.security.components.crypto.Merlin">
+                    <property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</property>
+                    <property name="org.apache.ws.security.crypto.merlin.file">interop/conf/store.jks</property>
+                    <property name="org.apache.ws.security.crypto.merlin.keystore.password">password</property>
+                </crypto>
+			</cryptoProperties>
+			<addRequestedAttachedRef />
+			<addRequestedUnattachedRef />
+
+            <!--
+               Key computation mechanism
+               1 - Use Request Entropy
+               2 - Provide Entropy
+               3 - Use Own Key
+            -->
+            <keyComputation>2</keyComputation>
+
+            <!--
+               proofKeyType element is valid only if the keyComputation is set to 3
+               i.e. Use Own Key
+
+               Valid values are: EncryptedKey & BinarySecret
+            -->
+            <proofKeyType>BinarySecret</proofKeyType>
+        </sct-issuer-config>
+    </parameter>
+	
+	<parameter name="token-canceler-config">
+		<token-canceler-config>
+			<!--<proofToken>EncryptedKey</proofToken>-->
+			<!--<cryptoProperties>sctIssuer.properties</cryptoProperties>-->
+			<!--<addRequestedAttachedRef />-->
+		</token-canceler-config>
+    </parameter>
+
+</axisconfig>
\ No newline at end of file

Added: webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sec-client-policy.xml
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sec-client-policy.xml?view=auto&rev=531722
==============================================================================
--- webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sec-client-policy.xml (added)
+++ webservices/sandesha/trunk/java/modules/interop/src/resources/conf/sec-client-policy.xml Mon Apr 23 21:57:43 2007
@@ -0,0 +1,194 @@
+<wsp:Policy wsu:Id="SecConvPolicy2" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+	<wsp:ExactlyOne>
+		<wsp:All>
+			<sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+				<wsp:Policy>
+					<sp:ProtectionToken>
+						<wsp:Policy>
+							<sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+								<wsp:Policy>
+									<sp:RequireDerivedKeys/>
+									<sp:BootstrapPolicy>
+										<wsp:Policy>
+											<sp:EncryptedParts>
+												<sp:Body/>
+											</sp:EncryptedParts>
+											<sp:SymmetricBinding>
+												<wsp:Policy>
+													<sp:ProtectionToken>
+														<wsp:Policy>
+															<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+																<wsp:Policy>
+																	<sp:RequireDerivedKeys/>
+																	<sp:RequireThumbprintReference/>
+																	<sp:WssX509V3Token10/>
+																</wsp:Policy>
+															</sp:X509Token>
+														</wsp:Policy>
+													</sp:ProtectionToken>
+													<sp:AlgorithmSuite>
+														<wsp:Policy>
+															<sp:Basic128Rsa15/>
+														</wsp:Policy>
+													</sp:AlgorithmSuite>
+													<sp:Layout>
+														<wsp:Policy>
+															<sp:Strict/>
+														</wsp:Policy>
+													</sp:Layout>
+													<sp:IncludeTimestamp/>
+													<sp:EncryptSignature/>
+													<sp:OnlySignEntireHeadersAndBody/>
+												</wsp:Policy>
+											</sp:SymmetricBinding>
+											<sp:EndorsingSupportingTokens>
+												<wsp:Policy>
+													<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+														<wsp:Policy>
+															<sp:RequireThumbprintReference/>
+															<sp:WssX509V3Token10/>
+														</wsp:Policy>
+													</sp:X509Token>
+												</wsp:Policy>
+											</sp:EndorsingSupportingTokens>
+											<sp:Wss11>
+												<wsp:Policy>
+													<sp:MustSupportRefKeyIdentifier/>
+													<sp:MustSupportRefIssuerSerial/>
+													<sp:MustSupportRefThumbprint/>
+													<sp:MustSupportRefEncryptedKey/>
+													<sp:RequireSignatureConfirmation/>
+												</wsp:Policy>
+											</sp:Wss11>
+											<sp:Trust10>
+												<wsp:Policy>
+													<sp:MustSupportIssuedTokens/>
+													<sp:RequireClientEntropy/>
+													<sp:RequireServerEntropy/>
+												</wsp:Policy>
+											</sp:Trust10>
+										</wsp:Policy>
+									</sp:BootstrapPolicy>
+								</wsp:Policy>
+							</sp:SecureConversationToken>
+						</wsp:Policy>
+					</sp:ProtectionToken>
+					<sp:AlgorithmSuite>
+						<wsp:Policy>
+							<sp:Basic128Rsa15/>
+						</wsp:Policy>
+					</sp:AlgorithmSuite>
+					<sp:Layout>
+						<wsp:Policy>
+							<sp:Strict/>
+						</wsp:Policy>
+					</sp:Layout>
+					<sp:IncludeTimestamp/>
+					<sp:EncryptSignature/>
+					<sp:OnlySignEntireHeadersAndBody/>
+				</wsp:Policy>
+			</sp:SymmetricBinding>
+			<sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+				<wsp:Policy>
+					<sp:MustSupportRefKeyIdentifier/>
+					<sp:MustSupportRefIssuerSerial/>
+					<sp:MustSupportRefThumbprint/>
+					<sp:MustSupportRefEncryptedKey/>
+				</wsp:Policy>
+			</sp:Wss11>
+			<sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+				<wsp:Policy>
+					<sp:MustSupportIssuedTokens/>
+					<sp:RequireClientEntropy/>
+					<sp:RequireServerEntropy/>
+				</wsp:Policy>
+			</sp:Trust10>
+			<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+				<sp:Body/>
+			</sp:EncryptedParts>
+			<ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy"> 
+				<ramp:user>alice</ramp:user>
+				<ramp:encryptionUser>bob</ramp:encryptionUser>
+				<ramp:passwordCallbackClass>org.apache.sandesha2.interop.PWCallback</ramp:passwordCallbackClass>
+				
+				<ramp:signatureCrypto>
+					<ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
+						<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
+						<ramp:property name="org.apache.ws.security.crypto.merlin.file">interop/conf/store.jks</ramp:property>
+						<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">password</ramp:property>
+					</ramp:crypto>
+				</ramp:signatureCrypto>
+				<ramp:encryptionCypto>
+					<ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
+						<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
+						<ramp:property name="org.apache.ws.security.crypto.merlin.file">interop/conf/store.jks</ramp:property>
+						<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">password</ramp:property>
+					</ramp:crypto>
+				</ramp:encryptionCypto>
+				
+				<ramp:tokenIssuerPolicy xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+					<wsp:Policy>
+						<sp:EncryptedParts>
+							<sp:Body/>
+						</sp:EncryptedParts>
+						<sp:SymmetricBinding>
+							<wsp:Policy>
+								<sp:ProtectionToken>
+									<wsp:Policy>
+										<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+											<wsp:Policy>
+												<sp:RequireDerivedKeys/>
+												<sp:RequireThumbprintReference/>
+												<sp:WssX509V3Token10/>
+											</wsp:Policy>
+										</sp:X509Token>
+									</wsp:Policy>
+								</sp:ProtectionToken>
+								<sp:AlgorithmSuite>
+									<wsp:Policy>
+										<sp:Basic128Rsa15/>
+									</wsp:Policy>
+								</sp:AlgorithmSuite>
+								<sp:Layout>
+									<wsp:Policy>
+										<sp:Strict/>
+									</wsp:Policy>
+								</sp:Layout>
+								<sp:IncludeTimestamp/>
+								<sp:EncryptSignature/>
+								<sp:OnlySignEntireHeadersAndBody/>
+							</wsp:Policy>
+						</sp:SymmetricBinding>
+						<sp:EndorsingSupportingTokens>
+							<wsp:Policy>
+								<sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+									<wsp:Policy>
+										<sp:RequireThumbprintReference/>
+										<sp:WssX509V3Token10/>
+									</wsp:Policy>
+								</sp:X509Token>
+							</wsp:Policy>
+						</sp:EndorsingSupportingTokens>
+						<sp:Wss11>
+							<wsp:Policy>
+								<sp:MustSupportRefKeyIdentifier/>
+								<sp:MustSupportRefIssuerSerial/>
+								<sp:MustSupportRefThumbprint/>
+								<sp:MustSupportRefEncryptedKey/>
+								<sp:RequireSignatureConfirmation/>
+							</wsp:Policy>
+						</sp:Wss11>
+						<sp:Trust10>
+							<wsp:Policy>
+								<sp:MustSupportIssuedTokens/>
+								<sp:RequireClientEntropy/>
+								<sp:RequireServerEntropy/>
+							</wsp:Policy>
+						</sp:Trust10>
+					</wsp:Policy>
+				</ramp:tokenIssuerPolicy>
+				
+			</ramp:RampartConfig>
+		</wsp:All>
+	</wsp:ExactlyOne>
+</wsp:Policy>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org