You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ch...@apache.org on 2006/11/13 06:09:20 UTC

svn commit: r474155 [1/3] - in /webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org: apache/sandesha2/interop/ tempuri/

Author: chamikara
Date: Sun Nov 12 21:09:19 2006
New Revision: 474155

URL: http://svn.apache.org/viewvc?view=rev&rev=474155
Log:
Updated interop classes.

Modified:
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceCallbackHandler.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOnly.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOut.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceSkeleton.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceStub.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/EchoString.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/EchoStringRequestBodyType.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/EchoStringResponse.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/EchoStringResponseBodyType.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/ExtensionMapper.java
    webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/Ping.java

Modified: webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceCallbackHandler.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceCallbackHandler.java?view=diff&rev=474155&r1=474154&r2=474155
==============================================================================
--- webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceCallbackHandler.java (original)
+++ webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceCallbackHandler.java Sun Nov 12 21:09:19 2006
@@ -1,71 +1,66 @@
-/*
- * 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.sandesha2.interop;
-
-/**
- * RMInteropServiceCallbackHandler Callback class, Users can extend this class
- * and implement their own receiveResult and receiveError methods.
- */
-public abstract class RMInteropServiceCallbackHandler {
-
-	protected Object clientData;
-
-	/**
-	 * User can pass in any object that needs to be accessed once the
-	 * NonBlocking Web service call is finished and appropriate method of this
-	 * CallBack is called.
-	 * 
-	 * @param clientData
-	 *            Object mechanism by which the user can pass in user data that
-	 *            will be avilable at the time this callback is called.
-	 */
-	public RMInteropServiceCallbackHandler(Object clientData) {
-		this.clientData = clientData;
-	}
-
-	/**
-	 * Please use this constructor if you don't want to set any clientData
-	 */
-	public RMInteropServiceCallbackHandler() {
-		this.clientData = null;
-	}
-
-	/**
-	 * Get the client data
-	 */
-
-	public Object getClientData() {
-		return clientData;
-	}
-
-	/**
-	 * auto generated Axis2 call back method for EchoString method
-	 * 
-	 */
-	public void receiveResultEchoString(org.tempuri.EchoStringResponse param28) {
-	}
-
-	/**
-	 * auto generated Axis2 Error handler
-	 * 
-	 */
-	public void receiveErrorEchoString(java.lang.Exception e) {
-	}
 
-	// No methods generated for meps other than in-out
+    /**
+     * RMInteropServiceCallbackHandler.java
+     *
+     * This file was auto-generated from WSDL
+     * by the Apache Axis2 version: #axisVersion# #today#
+     */
+    package org.apache.sandesha2.interop;
+
+    /**
+     *  RMInteropServiceCallbackHandler Callback class, Users can extend this class and implement
+     *  their own receiveResult and receiveError methods.
+     */
+    public abstract class RMInteropServiceCallbackHandler{
+
+
+
+    protected Object clientData;
+
+    /**
+    * User can pass in any object that needs to be accessed once the NonBlocking
+    * Web service call is finished and appropriate method of this CallBack is called.
+    * @param clientData Object mechanism by which the user can pass in user data
+    * that will be avilable at the time this callback is called.
+    */
+    public RMInteropServiceCallbackHandler(Object clientData){
+        this.clientData = clientData;
+    }
+
+    /**
+    * Please use this constructor if you don't want to set any clientData
+    */
+    public RMInteropServiceCallbackHandler(){
+        this.clientData = null;
+    }
+
+    /**
+     * Get the client data
+     */
+
+     public Object getClientData() {
+        return clientData;
+     }
+
+        
+           /**
+            * auto generated Axis2 call back method for EchoString method
+            *
+            */
+           public void receiveResultEchoString(
+                    org.tempuri.EchoStringResponse param28) {
+           }
+
+          /**
+           * auto generated Axis2 Error handler
+           *
+           */
+            public void receiveErrorEchoString(java.lang.Exception e) {
+            }
+                
+               // No methods generated for meps other than in-out
+                
 
-}
+
+    }
+    
\ No newline at end of file

Modified: webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOnly.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOnly.java?view=diff&rev=474155&r1=474154&r2=474155
==============================================================================
--- webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOnly.java (original)
+++ webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOnly.java Sun Nov 12 21:09:19 2006
@@ -1,165 +1,163 @@
-/*
- * 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.sandesha2.interop;
-
-/**
- * RMInteropServiceMessageReceiverInOnly message receiver
- */
-
-public class RMInteropServiceMessageReceiverInOnly extends
-		org.apache.axis2.receivers.AbstractInMessageReceiver {
-
-	public void invokeBusinessLogic(
-			org.apache.axis2.context.MessageContext inMessage)
-			throws org.apache.axis2.AxisFault {
-
-		try {
-
-			// get the implementation class for the Web Service
-			Object obj = getTheImplementationObject(inMessage);
-
-			// Inject the Message Context if it is asked for
-			org.apache.axis2.engine.DependencyManager
-					.configureBusinessLogicProvider(obj, inMessage
-							.getOperationContext());
-
-			RMInteropServiceSkeleton skel = (RMInteropServiceSkeleton) obj;
-			// Out Envelop
-			org.apache.axiom.soap.SOAPEnvelope envelope = null;
-			// Find the axisOperation that has been set by the Dispatch phase.
-			org.apache.axis2.description.AxisOperation op = inMessage
-					.getOperationContext().getAxisOperation();
-			if (op == null) {
-				throw new org.apache.axis2.AxisFault(
-						"Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
-			}
-
-			java.lang.String methodName;
-			if (op.getName() != null
-					& (methodName = op.getName().getLocalPart()) != null) {
-
-				if ("Ping".equals(methodName)) {
-
-					// doc style
-					skel.Ping((org.tempuri.Ping) fromOM(inMessage.getEnvelope()
-							.getBody().getFirstElement(),
-							org.tempuri.Ping.class,
-							getEnvelopeNamespaces(inMessage.getEnvelope())));
-
-				}
-
-			}
-		} catch (Exception e) {
-			throw org.apache.axis2.AxisFault.makeFault(e);
-		}
-	}
-
-	//
-	private org.apache.axiom.om.OMElement toOM(org.tempuri.EchoString param,
-			boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.EchoString.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.om.OMElement toOM(
-			org.tempuri.EchoStringResponse param, boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.om.OMElement toOM(org.tempuri.Ping param,
-			boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.Ping.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
-			org.apache.axiom.soap.SOAPFactory factory,
-			org.tempuri.EchoStringResponse param, boolean optimizeContent) {
-		org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory
-				.getDefaultEnvelope();
-
-		emptyEnvelope.getBody().addChild(
-				param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,
-						factory));
-
-		return emptyEnvelope;
-	}
-
-	/**
-	 * get the default envelope
-	 */
-	private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
-			org.apache.axiom.soap.SOAPFactory factory) {
-		return factory.getDefaultEnvelope();
-	}
-
-	private java.lang.Object fromOM(org.apache.axiom.om.OMElement param,
-			java.lang.Class type, java.util.Map extraNamespaces) {
-
-		try {
-
-			if (org.tempuri.EchoString.class.equals(type)) {
-
-				return org.tempuri.EchoString.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-			if (org.tempuri.EchoStringResponse.class.equals(type)) {
-
-				return org.tempuri.EchoStringResponse.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-			if (org.tempuri.Ping.class.equals(type)) {
-
-				return org.tempuri.Ping.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-		} catch (Exception e) {
-			throw new RuntimeException(e);
-		}
-		return null;
-	}
-
-	/**
-	 * A utility method that copies the namepaces from the SOAPEnvelope
-	 */
-	private java.util.Map getEnvelopeNamespaces(
-			org.apache.axiom.soap.SOAPEnvelope env) {
-		java.util.Map returnMap = new java.util.HashMap();
-		java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
-		while (namespaceIterator.hasNext()) {
-			org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator
-					.next();
-			returnMap.put(ns.getPrefix(), ns.getNamespaceURI());
-		}
-		return returnMap;
-	}
 
-}// end of class
 
+        /**
+        * RMInteropServiceMessageReceiverInOnly.java
+        *
+        * This file was auto-generated from WSDL
+        * by the Apache Axis2 version: #axisVersion# #today#
+        */
+        package org.apache.sandesha2.interop;
+
+        /**
+        *  RMInteropServiceMessageReceiverInOnly message receiver
+        */
+
+        public class RMInteropServiceMessageReceiverInOnly extends org.apache.axis2.receivers.AbstractInMessageReceiver{
+
+        public void invokeBusinessLogic(org.apache.axis2.context.MessageContext inMessage) throws org.apache.axis2.AxisFault{
+
+        try {
+
+        // get the implementation class for the Web Service
+        Object obj = getTheImplementationObject(inMessage);
+
+        RMInteropServiceSkeleton skel = (RMInteropServiceSkeleton)obj;
+        //Out Envelop
+        org.apache.axiom.soap.SOAPEnvelope envelope = null;
+        //Find the axisOperation that has been set by the Dispatch phase.
+        org.apache.axis2.description.AxisOperation op = inMessage.getOperationContext().getAxisOperation();
+        if (op == null) {
+        throw new org.apache.axis2.AxisFault("Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
+        }
+
+        java.lang.String methodName;
+        if(op.getName() != null & (methodName = op.getName().getLocalPart()) != null){
+
+        
+
+            if("Ping".equals(methodName)){
+
+            
+            
+                            //doc style
+                             skel.Ping(
+                                    (org.tempuri.Ping)fromOM(
+                                            inMessage.getEnvelope().getBody().getFirstElement(),
+                                            org.tempuri.Ping.class,
+                                            getEnvelopeNamespaces(inMessage.getEnvelope())
+                                            ));
+                                
+
+            }
+        
+
+        }
+        } catch (Exception e) {
+        throw org.apache.axis2.AxisFault.makeFault(e);
+        }
+        }
+
+
+        
+        //
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.EchoString param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.EchoString.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.EchoStringResponse param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.Ping param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.Ping.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.tempuri.EchoStringResponse param, boolean optimizeContent){
+                      org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                       
+                                emptyEnvelope.getBody().addChild(param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,factory));
+                            
+
+                     return emptyEnvelope;
+                    }
+                    
+
+
+        /**
+        *  get the default envelope
+        */
+        private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
+        return factory.getDefaultEnvelope();
+        }
+
+
+        private  java.lang.Object fromOM(
+        org.apache.axiom.om.OMElement param,
+        java.lang.Class type,
+        java.util.Map extraNamespaces){
+
+        try {
+        
+                if (org.tempuri.EchoString.class.equals(type)){
+                
+                           return org.tempuri.EchoString.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.tempuri.EchoStringResponse.class.equals(type)){
+                
+                           return org.tempuri.EchoStringResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.tempuri.Ping.class.equals(type)){
+                
+                           return org.tempuri.Ping.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+        } catch (Exception e) {
+        throw new RuntimeException(e);
+        }
+           return null;
+        }
+
+
+
+    
+
+
+
+        /**
+        *  A utility method that copies the namepaces from the SOAPEnvelope
+        */
+        private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
+        java.util.Map returnMap = new java.util.HashMap();
+        java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
+        while (namespaceIterator.hasNext()) {
+        org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
+        returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
+        }
+        return returnMap;
+        }
+
+
+
+        }//end of class
+
+    
\ No newline at end of file

Modified: webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOut.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOut.java?view=diff&rev=474155&r1=474154&r2=474155
==============================================================================
--- webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOut.java (original)
+++ webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceMessageReceiverInOut.java Sun Nov 12 21:09:19 2006
@@ -1,187 +1,177 @@
 
-/*
- * 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.sandesha2.interop;
-
-/**
- * RMInteropServiceMessageReceiverInOut message receiver
- */
-
-public class RMInteropServiceMessageReceiverInOut extends
-		org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver {
-
-	public void invokeBusinessLogic(
-			org.apache.axis2.context.MessageContext msgContext,
-			org.apache.axis2.context.MessageContext newMsgContext)
-			throws org.apache.axis2.AxisFault {
-
-		try {
-
-			// get the implementation class for the Web Service
-			Object obj = getTheImplementationObject(msgContext);
-
-			// Inject the Message Context if it is asked for
-			org.apache.axis2.engine.DependencyManager
-					.configureBusinessLogicProvider(obj, msgContext
-							.getOperationContext());
-
-			RMInteropServiceSkeleton skel = (RMInteropServiceSkeleton) obj;
-			// Out Envelop
-			org.apache.axiom.soap.SOAPEnvelope envelope = null;
-			// Find the axisOperation that has been set by the Dispatch phase.
-			org.apache.axis2.description.AxisOperation op = msgContext
-					.getOperationContext().getAxisOperation();
-			if (op == null) {
-				throw new org.apache.axis2.AxisFault(
-						"Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
-			}
-
-			java.lang.String methodName;
-			if (op.getName() != null
-					& (methodName = op.getName().getLocalPart()) != null) {
-
-				if ("EchoString".equals(methodName)) {
-
-					org.tempuri.EchoStringResponse param4 = null;
-
-					// doc style
-					org.tempuri.EchoString wrappedParam = (org.tempuri.EchoString) fromOM(
-							msgContext.getEnvelope().getBody()
-									.getFirstElement(),
-							org.tempuri.EchoString.class,
-							getEnvelopeNamespaces(msgContext.getEnvelope()));
-
-					param4 = skel.EchoString(wrappedParam);
-
-					envelope = toEnvelope(getSOAPFactory(msgContext), param4,
-							false);
-
-				}
-
-				newMsgContext.setEnvelope(envelope);
-			}
-		} catch (Exception e) {
-			throw org.apache.axis2.AxisFault.makeFault(e);
-		}
-	}
-
-	//
-	private org.apache.axiom.om.OMElement toOM(org.tempuri.EchoString param,
-			boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.EchoString.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.om.OMElement toOM(
-			org.tempuri.EchoStringResponse param, boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.om.OMElement toOM(org.tempuri.Ping param,
-			boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.Ping.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
-			org.apache.axiom.soap.SOAPFactory factory,
-			org.tempuri.EchoStringResponse param, boolean optimizeContent) {
-		org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory
-				.getDefaultEnvelope();
-
-		emptyEnvelope.getBody().addChild(
-				param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,
-						factory));
-
-		return emptyEnvelope;
-	}
-
-	/**
-	 * get the default envelope
-	 */
-	private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
-			org.apache.axiom.soap.SOAPFactory factory) {
-		return factory.getDefaultEnvelope();
-	}
-
-	private java.lang.Object fromOM(org.apache.axiom.om.OMElement param,
-			java.lang.Class type, java.util.Map extraNamespaces) {
-
-		try {
-
-			if (org.tempuri.EchoString.class.equals(type)) {
-
-				return org.tempuri.EchoString.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-			if (org.tempuri.EchoStringResponse.class.equals(type)) {
-
-				return org.tempuri.EchoStringResponse.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-			if (org.tempuri.Ping.class.equals(type)) {
-
-				return org.tempuri.Ping.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-		} catch (Exception e) {
-			throw new RuntimeException(e);
-		}
-		return null;
-	}
-
-	/**
-	 * A utility method that copies the namepaces from the SOAPEnvelope
-	 */
-	private java.util.Map getEnvelopeNamespaces(
-			org.apache.axiom.soap.SOAPEnvelope env) {
-		java.util.Map returnMap = new java.util.HashMap();
-		java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
-		while (namespaceIterator.hasNext()) {
-			org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator
-					.next();
-			returnMap.put(ns.getPrefix(), ns.getNamespaceURI());
-		}
-		return returnMap;
-	}
-
-	private org.apache.axis2.AxisFault createAxisFault(java.lang.Exception e) {
-		org.apache.axis2.AxisFault f;
-		Throwable cause = e.getCause();
-		if (cause != null) {
-			f = new org.apache.axis2.AxisFault(e.getMessage(), cause);
-		} else {
-			f = new org.apache.axis2.AxisFault(e.getMessage());
-		}
 
-		return f;
-	}
+        /**
+        * RMInteropServiceMessageReceiverInOut.java
+        *
+        * This file was auto-generated from WSDL
+        * by the Apache Axis2 version: #axisVersion# #today#
+        */
+        package org.apache.sandesha2.interop;
+
+        /**
+        *  RMInteropServiceMessageReceiverInOut message receiver
+        */
+
+        public class RMInteropServiceMessageReceiverInOut extends org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver{
+
+
+        public void invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext, org.apache.axis2.context.MessageContext newMsgContext)
+        throws org.apache.axis2.AxisFault{
+
+        try {
+
+        // get the implementation class for the Web Service
+        Object obj = getTheImplementationObject(msgContext);
+
+        RMInteropServiceSkeleton skel = (RMInteropServiceSkeleton)obj;
+        //Out Envelop
+        org.apache.axiom.soap.SOAPEnvelope envelope = null;
+        //Find the axisOperation that has been set by the Dispatch phase.
+        org.apache.axis2.description.AxisOperation op = msgContext.getOperationContext().getAxisOperation();
+        if (op == null) {
+        throw new org.apache.axis2.AxisFault("Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
+        }
+
+        java.lang.String methodName;
+        if(op.getName() != null & (methodName = op.getName().getLocalPart()) != null){
+
+        
+
+            if("EchoString".equals(methodName)){
+
+            
+            org.tempuri.EchoStringResponse param4 = null;
+                    
+                            //doc style
+                            org.tempuri.EchoString wrappedParam =
+                                                 (org.tempuri.EchoString)fromOM(
+                        msgContext.getEnvelope().getBody().getFirstElement(),
+                        org.tempuri.EchoString.class,
+                        getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                    
+                                   param4 =
+                                             skel.EchoString(wrappedParam) ;
+                                        
+                                    envelope = toEnvelope(getSOAPFactory(msgContext), param4, false);
+                                
+
+            }
+        
+
+        newMsgContext.setEnvelope(envelope);
+        }
+        }
+        catch (Exception e) {
+        throw org.apache.axis2.AxisFault.makeFault(e);
+        }
+        }
+        
+        //
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.EchoString param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.EchoString.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.EchoStringResponse param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.Ping param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.Ping.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.tempuri.EchoStringResponse param, boolean optimizeContent){
+                      org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                       
+                                emptyEnvelope.getBody().addChild(param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,factory));
+                            
+
+                     return emptyEnvelope;
+                    }
+                    
+
+
+        /**
+        *  get the default envelope
+        */
+        private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
+        return factory.getDefaultEnvelope();
+        }
+
+
+        private  java.lang.Object fromOM(
+        org.apache.axiom.om.OMElement param,
+        java.lang.Class type,
+        java.util.Map extraNamespaces){
+
+        try {
+        
+                if (org.tempuri.EchoString.class.equals(type)){
+                
+                           return org.tempuri.EchoString.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.tempuri.EchoStringResponse.class.equals(type)){
+                
+                           return org.tempuri.EchoStringResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.tempuri.Ping.class.equals(type)){
+                
+                           return org.tempuri.Ping.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+        } catch (Exception e) {
+        throw new RuntimeException(e);
+        }
+           return null;
+        }
+
+
+
+    
+
+        /**
+        *  A utility method that copies the namepaces from the SOAPEnvelope
+        */
+        private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
+        java.util.Map returnMap = new java.util.HashMap();
+        java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
+        while (namespaceIterator.hasNext()) {
+        org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
+        returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
+        }
+        return returnMap;
+        }
+
+        private org.apache.axis2.AxisFault createAxisFault(java.lang.Exception e) {
+        org.apache.axis2.AxisFault f;
+        Throwable cause = e.getCause();
+        if (cause != null) {
+            f = new org.apache.axis2.AxisFault(e.getMessage(), cause);
+        } else {
+            f = new org.apache.axis2.AxisFault(e.getMessage());
+        }
 
-}// end of class
+        return f;
+    }
+
+        }//end of class
+    
\ No newline at end of file

Modified: webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceSkeleton.java?view=diff&rev=474155&r1=474154&r2=474155
==============================================================================
--- webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceSkeleton.java (original)
+++ webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceSkeleton.java Sun Nov 12 21:09:19 2006
@@ -1,52 +1,49 @@
-/*
- * 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.sandesha2.interop;
-
-/**
- * RMInteropServiceSkeleton java skeleton for the axisService
- */
-public class RMInteropServiceSkeleton {
-
-	/**
-	 * Auto generated method signature
-	 * 
-	 * @param param0
-	 * 
-	 */
-	public org.tempuri.EchoStringResponse EchoString(
-			org.tempuri.EchoString param0)
-
-	{
-		// Todo fill this with the necessary business logic
-		throw new java.lang.UnsupportedOperationException("Please implement "
-				+ this.getClass().getName() + "#EchoString");
-	}
-
-	/**
-	 * Auto generated method signature
-	 * 
-	 * @param param2
-	 * 
-	 */
-	public void Ping(org.tempuri.Ping param2)
-
-	{
-		// Todo fill this with the necessary business logic
-
-	}
-
-}
+    /**
+     * RMInteropServiceSkeleton.java
+     *
+     * This file was auto-generated from WSDL
+     * by the Apache Axis2 version: #axisVersion# #today#
+     */
+    package org.apache.sandesha2.interop;
+    /**
+     *  RMInteropServiceSkeleton java skeleton for the axisService
+     */
+    public class RMInteropServiceSkeleton{
+     
+         
+        /**
+         * Auto generated method signature
+         
+          * @param param0
+         
+         */
+        public  org.tempuri.EchoStringResponse EchoString
+                  (
+          org.tempuri.EchoString param0
+          )
+         
+           {
+                //Todo fill this with the necessary business logic
+                throw new  java.lang.UnsupportedOperationException("Please implement " + this.getClass().getName() + "#EchoString");
+        }
+     
+         
+        /**
+         * Auto generated method signature
+         
+          * @param param2
+         
+         */
+        public  void Ping
+                  (
+          org.tempuri.Ping param2
+          )
+         
+           {
+                //Todo fill this with the necessary business logic
+                
+        }
+     
+    }
+    
\ No newline at end of file

Modified: webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceStub.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceStub.java?view=diff&rev=474155&r1=474154&r2=474155
==============================================================================
--- webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceStub.java (original)
+++ webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/apache/sandesha2/interop/RMInteropServiceStub.java Sun Nov 12 21:09:19 2006
@@ -1,442 +1,455 @@
-/*
- * 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.sandesha2.interop;
+        /**
+        * RMInteropServiceStub.java
+        *
+        * This file was auto-generated from WSDL
+        * by the Apache Axis2 version: #axisVersion# #today#
+        */
+        package org.apache.sandesha2.interop;
+
+        
+
+        /*
+        *  RMInteropServiceStub java implementation
+        */
+
+        
+        public class RMInteropServiceStub extends org.apache.axis2.client.Stub
+        {
+        protected org.apache.axis2.description.AxisOperation[] _operations;
+
+        //hashmaps to keep the fault mapping
+        private java.util.HashMap faultExeptionNameMap = new java.util.HashMap();
+        private java.util.HashMap faultExeptionClassNameMap = new java.util.HashMap();
+        private java.util.HashMap faultMessageMap = new java.util.HashMap();
+
+    
+    private void populateAxisService() throws org.apache.axis2.AxisFault {
+
+     //creating the Service with a unique name
+     _service = new org.apache.axis2.description.AxisService("RMInteropService" + this.hashCode());
+     
+    
+
+        //creating the operations
+        org.apache.axis2.description.AxisOperation __operation;
+    
+
+
+        _operations = new org.apache.axis2.description.AxisOperation[2];
+        
+                   __operation = new org.apache.axis2.description.OutInAxisOperation();
+                
+
+            __operation.setName(new javax.xml.namespace.QName("", "EchoString"));
+	    _service.addOperation(__operation);
+	    
+	    
+	    
+            _operations[0]=__operation;
+            
+        
+                    __operation = new org.apache.axis2.description.OutOnlyAxisOperation();
+                
+
+            __operation.setName(new javax.xml.namespace.QName("", "Ping"));
+	    _service.addOperation(__operation);
+	    
+	    
+	    
+            _operations[1]=__operation;
+            
+        
+        }
+
+    //populates the faults
+    private void populateFaults(){
+         
+
+
+    }
+
+   /**
+    Constructor that takes in a configContext
+    */
+   public RMInteropServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext,
+        java.lang.String targetEndpoint)
+        throws org.apache.axis2.AxisFault {
+         //To populate AxisService
+         populateAxisService();
+         populateFaults();
 
-/*
- * RMInteropServiceStub java implementation
- */
-
-public class RMInteropServiceStub extends org.apache.axis2.client.Stub {
-	protected org.apache.axis2.description.AxisOperation[] _operations;
-
-	// hashmaps to keep the fault mapping
-	private java.util.HashMap faultExeptionNameMap = new java.util.HashMap();
-
-	private java.util.HashMap faultExeptionClassNameMap = new java.util.HashMap();
-
-	private java.util.HashMap faultMessageMap = new java.util.HashMap();
-
-	private void populateAxisService() throws org.apache.axis2.AxisFault {
-
-		// creating the Service with a unique name
-		_service = new org.apache.axis2.description.AxisService(
-				"RMInteropService" + this.hashCode());
-
-		// creating the operations
-		org.apache.axis2.description.AxisOperation __operation;
-
-		_operations = new org.apache.axis2.description.AxisOperation[2];
-
-		__operation = new org.apache.axis2.description.OutInAxisOperation();
-
-		__operation.setName(new javax.xml.namespace.QName("", "EchoString"));
-		_service.addOperation(__operation);
-
-		_operations[0] = __operation;
-
-		__operation = new org.apache.axis2.description.OutOnlyAxisOperation();
-
-		__operation.setName(new javax.xml.namespace.QName("", "Ping"));
-		_service.addOperation(__operation);
-
-		_operations[1] = __operation;
-
-	}
-
-	// populates the faults
-	private void populateFaults() {
-
-	}
-
-	/**
-	 * Constructor that takes in a configContext
-	 */
-	public RMInteropServiceStub(
-			org.apache.axis2.context.ConfigurationContext configurationContext,
-			java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
-		// To populate AxisService
-		populateAxisService();
-		populateFaults();
-
-		_serviceClient = new org.apache.axis2.client.ServiceClient(
-				configurationContext, _service);
+        _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service);
 		_service.applyPolicy();
+	
+        configurationContext = _serviceClient.getServiceContext().getConfigurationContext();
 
-		configurationContext = _serviceClient.getServiceContext()
-				.getConfigurationContext();
-
-		_serviceClient.getOptions().setTo(
-				new org.apache.axis2.addressing.EndpointReference(
-						targetEndpoint));
-
-	}
-
-	/**
-	 * Default Constructor
-	 */
-	public RMInteropServiceStub() throws org.apache.axis2.AxisFault {
-
-		this("http://www.example.org/");
-
-	}
-
-	/**
-	 * Constructor taking the target endpoint
-	 */
-	public RMInteropServiceStub(java.lang.String targetEndpoint)
-			throws org.apache.axis2.AxisFault {
-		this(null, targetEndpoint);
-	}
-
-	/**
-	 * Auto generated method signature
-	 * 
-	 * @see org.apache.sandesha2.interop.RMInteropService#EchoString
-	 * @param param30
-	 * 
-	 */
-	public org.tempuri.EchoStringResponse EchoString(
-
-	org.tempuri.EchoString param30) throws java.rmi.RemoteException
-
-	{
-		try {
-			org.apache.axis2.client.OperationClient _operationClient = _serviceClient
-					.createClient(_operations[0].getName());
-			_operationClient.getOptions().setAction("urn:wsrm:EchoString");
-			_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(
-					true);
-
-			// create SOAP envelope with that payload
-			org.apache.axiom.soap.SOAPEnvelope env = null;
-
-			// Style is Doc.
-
-			env = toEnvelope(getFactory(_operationClient.getOptions()
-					.getSoapVersionURI()), param30,
-					optimizeContent(new javax.xml.namespace.QName("",
-							"EchoString")));
-
-			// adding SOAP headers
-			_serviceClient.addHeadersToEnvelope(env);
-			// create message context with that soap envelope
-			org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
-			_messageContext.setEnvelope(env);
-
-			// add the message contxt to the operation client
-			_operationClient.addMessageContext(_messageContext);
-
-			// execute the operation client
-			_operationClient.execute(true);
-
-			org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient
-					.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
-			org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext
-					.getEnvelope();
-
-			java.lang.Object object = fromOM(_returnEnv.getBody()
-					.getFirstElement(), org.tempuri.EchoStringResponse.class,
-					getEnvelopeNamespaces(_returnEnv));
-			_messageContext.getTransportOut().getSender().cleanup(
-					_messageContext);
-			return (org.tempuri.EchoStringResponse) object;
-
-		} catch (org.apache.axis2.AxisFault f) {
-			org.apache.axiom.om.OMElement faultElt = f.getDetail();
-			if (faultElt != null) {
-				if (faultExeptionNameMap.containsKey(faultElt.getQName())) {
-					// make the fault by reflection
-					try {
-						java.lang.String exceptionClassName = (java.lang.String) faultExeptionClassNameMap
-								.get(faultElt.getQName());
-						java.lang.Class exceptionClass = java.lang.Class
-								.forName(exceptionClassName);
-						java.lang.Exception ex = (java.lang.Exception) exceptionClass
-								.newInstance();
-						// message class
-						java.lang.String messageClassName = (java.lang.String) faultMessageMap
-								.get(faultElt.getQName());
-						java.lang.Class messageClass = java.lang.Class
-								.forName(messageClassName);
-						java.lang.Object messageObject = fromOM(faultElt,
-								messageClass, null);
-						java.lang.reflect.Method m = exceptionClass.getMethod(
-								"setFaultMessage",
-								new java.lang.Class[] { messageClass });
-						m.invoke(ex, new java.lang.Object[] { messageObject });
-
-						throw new java.rmi.RemoteException(ex.getMessage(), ex);
-					} catch (java.lang.ClassCastException e) {
-						// we cannot intantiate the class - throw the original
-						// Axis fault
-						throw f;
-					} catch (java.lang.ClassNotFoundException e) {
-						// we cannot intantiate the class - throw the original
-						// Axis fault
-						throw f;
-					} catch (java.lang.NoSuchMethodException e) {
-						// we cannot intantiate the class - throw the original
-						// Axis fault
-						throw f;
-					} catch (java.lang.reflect.InvocationTargetException e) {
-						// we cannot intantiate the class - throw the original
-						// Axis fault
-						throw f;
-					} catch (java.lang.IllegalAccessException e) {
-						// we cannot intantiate the class - throw the original
-						// Axis fault
-						throw f;
-					} catch (java.lang.InstantiationException e) {
-						// we cannot intantiate the class - throw the original
-						// Axis fault
-						throw f;
-					}
-				} else {
-					throw f;
-				}
-			} else {
-				throw f;
-			}
-		}
-	}
-
-	/**
-	 * Auto generated method signature for Asynchronous Invocations
-	 * 
-	 * @see org.apache.sandesha2.interop.RMInteropService#startEchoString
-	 * @param param30
-	 * 
-	 */
-	public void startEchoString(
-
-			org.tempuri.EchoString param30,
-			final org.apache.sandesha2.interop.RMInteropServiceCallbackHandler callback)
-
-	throws java.rmi.RemoteException {
-
-		org.apache.axis2.client.OperationClient _operationClient = _serviceClient
-				.createClient(_operations[0].getName());
-		_operationClient.getOptions().setAction("urn:wsrm:EchoString");
-		_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
-
-		// create SOAP envelope with that payload
-		org.apache.axiom.soap.SOAPEnvelope env = null;
-
-		// Style is Doc.
-
-		env = toEnvelope(
-				getFactory(_operationClient.getOptions().getSoapVersionURI()),
-				param30,
-				optimizeContent(new javax.xml.namespace.QName("", "EchoString")));
-
-		// adding SOAP headers
-		_serviceClient.addHeadersToEnvelope(env);
-		// create message context with that soap envelope
-		org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
-		_messageContext.setEnvelope(env);
-
-		// add the message contxt to the operation client
-		_operationClient.addMessageContext(_messageContext);
-
-		_operationClient
-				.setCallback(new org.apache.axis2.client.async.Callback() {
-					public void onComplete(
-							org.apache.axis2.client.async.AsyncResult result) {
-						java.lang.Object object = fromOM(result
-								.getResponseEnvelope().getBody()
-								.getFirstElement(),
-								org.tempuri.EchoStringResponse.class,
-								getEnvelopeNamespaces(result
-										.getResponseEnvelope()));
-						callback
-								.receiveResultEchoString((org.tempuri.EchoStringResponse) object);
-					}
-
-					public void onError(java.lang.Exception e) {
-						callback.receiveErrorEchoString(e);
-					}
-				});
-
-		org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
-		if (_operations[0].getMessageReceiver() == null
-				&& _operationClient.getOptions().isUseSeparateListener()) {
-			_callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
-			_operations[0].setMessageReceiver(_callbackReceiver);
-		}
-
-		// execute the operation client
-		_operationClient.execute(false);
-
-	}
-
-	public void Ping(org.tempuri.Ping param32
-
-	) throws java.rmi.RemoteException
-
-	{
-
-		org.apache.axis2.client.OperationClient _operationClient = _serviceClient
-				.createClient(_operations[1].getName());
-		_operationClient.getOptions().setAction("urn:wsrm:Ping");
-		_operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
-
-		org.apache.axiom.soap.SOAPEnvelope env = null;
-
-		// Style is Doc.
-
-		env = toEnvelope(getFactory(_operationClient.getOptions()
-				.getSoapVersionURI()), param32,
-				optimizeContent(new javax.xml.namespace.QName("", "Ping")));
-
-		// adding SOAP headers
-		_serviceClient.addHeadersToEnvelope(env);
-		// create message context with that soap envelope
-		org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
-		_messageContext.setEnvelope(env);
-
-		// add the message contxt to the operation client
-		_operationClient.addMessageContext(_messageContext);
-
-		_operationClient.execute(true);
-
-		return;
-	}
-
-	/**
-	 * A utility method that copies the namepaces from the SOAPEnvelope
-	 */
-	private java.util.Map getEnvelopeNamespaces(
-			org.apache.axiom.soap.SOAPEnvelope env) {
-		java.util.Map returnMap = new java.util.HashMap();
-		java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
-		while (namespaceIterator.hasNext()) {
-			org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator
-					.next();
-			returnMap.put(ns.getPrefix(), ns.getNamespaceURI());
-		}
-		return returnMap;
-	}
-
-	private javax.xml.namespace.QName[] opNameArray = null;
-
-	private boolean optimizeContent(javax.xml.namespace.QName opName) {
-
-		if (opNameArray == null) {
-			return false;
-		}
-		for (int i = 0; i < opNameArray.length; i++) {
-			if (opName.equals(opNameArray[i])) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	// http://www.example.org/
-	private org.apache.axiom.om.OMElement toOM(org.tempuri.EchoString param,
-			boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.EchoString.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.om.OMElement toOM(
-			org.tempuri.EchoStringResponse param, boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.om.OMElement toOM(org.tempuri.Ping param,
-			boolean optimizeContent) {
-
-		return param.getOMElement(org.tempuri.Ping.MY_QNAME,
-				org.apache.axiom.om.OMAbstractFactory.getOMFactory());
-
-	}
-
-	private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
-			org.apache.axiom.soap.SOAPFactory factory,
-			org.tempuri.EchoString param, boolean optimizeContent) {
-		org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory
-				.getDefaultEnvelope();
-
-		emptyEnvelope.getBody().addChild(
-				param.getOMElement(org.tempuri.EchoString.MY_QNAME, factory));
-
-		return emptyEnvelope;
-	}
-
-	private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
-			org.apache.axiom.soap.SOAPFactory factory, org.tempuri.Ping param,
-			boolean optimizeContent) {
-		org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory
-				.getDefaultEnvelope();
-
-		emptyEnvelope.getBody().addChild(
-				param.getOMElement(org.tempuri.Ping.MY_QNAME, factory));
-
-		return emptyEnvelope;
-	}
-
-	/**
-	 * get the default envelope
-	 */
-	private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
-			org.apache.axiom.soap.SOAPFactory factory) {
-		return factory.getDefaultEnvelope();
-	}
-
-	private java.lang.Object fromOM(org.apache.axiom.om.OMElement param,
-			java.lang.Class type, java.util.Map extraNamespaces) {
-
-		try {
-
-			if (org.tempuri.EchoString.class.equals(type)) {
-
-				return org.tempuri.EchoString.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-			if (org.tempuri.EchoStringResponse.class.equals(type)) {
-
-				return org.tempuri.EchoStringResponse.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-			if (org.tempuri.Ping.class.equals(type)) {
-
-				return org.tempuri.Ping.Factory.parse(param
-						.getXMLStreamReaderWithoutCaching());
-
-			}
-
-		} catch (Exception e) {
-			throw new RuntimeException(e);
-		}
-		return null;
-	}
-
-	private void setOpNameArray() {
-		opNameArray = null;
-	}
-
-}
+        _serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(
+                targetEndpoint));
+        
+    
+    }
+
+    /**
+     * Default Constructor
+     */
+    public RMInteropServiceStub() throws org.apache.axis2.AxisFault {
+        
+                    this("http://www.example.org/" );
+                
+    }
+
+    /**
+     * Constructor taking the target endpoint
+     */
+    public RMInteropServiceStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
+        this(null,targetEndpoint);
+    }
+
+
+
+        
+                    /**
+                    * Auto generated method signature
+                    * @see org.apache.sandesha2.interop.RMInteropService#EchoString
+                        * @param param30
+                    
+                    */
+                    public org.tempuri.EchoStringResponse EchoString(
+
+                    org.tempuri.EchoString param30)
+                    throws java.rmi.RemoteException
+                    
+                    {
+              try{
+               org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
+              _operationClient.getOptions().setAction("urn:wsrm:EchoString");
+              _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+              
+
+              // create SOAP envelope with that payload
+              org.apache.axiom.soap.SOAPEnvelope env = null;
+                    
+                                    //Style is Doc.
+                                    
+                                                    
+                                                    env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+                                                    param30,
+                                                    optimizeContent(new javax.xml.namespace.QName("",
+                                                    "EchoString")));
+                                                
+        //adding SOAP headers
+         _serviceClient.addHeadersToEnvelope(env);
+        // create message context with that soap envelope
+        org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext() ;
+        _messageContext.setEnvelope(env);
+
+        // add the message contxt to the operation client
+        _operationClient.addMessageContext(_messageContext);
+
+        //execute the operation client
+        _operationClient.execute(true);
+
+         
+               org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
+                                           org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+                org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+                
+                
+                           java.lang.Object object = fromOM(
+                                        _returnEnv.getBody().getFirstElement() ,
+                                        org.tempuri.EchoStringResponse.class,
+                                         getEnvelopeNamespaces(_returnEnv));
+                           _messageContext.getTransportOut().getSender().cleanup(_messageContext);
+                           return (org.tempuri.EchoStringResponse)object;
+                    
+         }catch(org.apache.axis2.AxisFault f){
+            org.apache.axiom.om.OMElement faultElt = f.getDetail();
+            if (faultElt!=null){
+                if (faultExeptionNameMap.containsKey(faultElt.getQName())){
+                    //make the fault by reflection
+                    try{
+                        java.lang.String exceptionClassName = (java.lang.String)faultExeptionClassNameMap.get(faultElt.getQName());
+                        java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+                        java.lang.Exception ex=
+                                (java.lang.Exception) exceptionClass.newInstance();
+                        //message class
+                        java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());
+                        java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+                        java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
+                        java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+                                   new java.lang.Class[]{messageClass});
+                        m.invoke(ex,new java.lang.Object[]{messageObject});
+                        
+
+                        throw new java.rmi.RemoteException(ex.getMessage(), ex);
+                    }catch(java.lang.ClassCastException e){
+                       // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    } catch (java.lang.ClassNotFoundException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    }catch (java.lang.NoSuchMethodException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    } catch (java.lang.reflect.InvocationTargetException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    }  catch (java.lang.IllegalAccessException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    }   catch (java.lang.InstantiationException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    }
+                }else{
+                    throw f;
+                }
+            }else{
+                throw f;
+            }
+        }
+        }
+            
+                /**
+                * Auto generated method signature for Asynchronous Invocations
+                * @see org.apache.sandesha2.interop.RMInteropService#startEchoString
+                    * @param param30
+                
+                */
+                public  void startEchoString(
+
+                 org.tempuri.EchoString param30,
+
+                  final org.apache.sandesha2.interop.RMInteropServiceCallbackHandler callback)
+
+                throws java.rmi.RemoteException{
+
+              org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
+             _operationClient.getOptions().setAction("urn:wsrm:EchoString");
+             _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+          
+
+              // create SOAP envelope with that payload
+              org.apache.axiom.soap.SOAPEnvelope env=null;
+                    
+                                    //Style is Doc.
+                                    
+                                                    
+                                                    env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+                                                    param30,
+                                                    optimizeContent(new javax.xml.namespace.QName("",
+                                                    "EchoString")));
+                                                
+        //adding SOAP headers
+         _serviceClient.addHeadersToEnvelope(env);
+        // create message context with that soap envelope
+        org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext() ;
+        _messageContext.setEnvelope(env);
+
+        // add the message contxt to the operation client
+        _operationClient.addMessageContext(_messageContext);
+
+
+                    
+                           _operationClient.setCallback(new org.apache.axis2.client.async.Callback() {
+                    public void onComplete(
+                            org.apache.axis2.client.async.AsyncResult result) {
+                        java.lang.Object object = fromOM(result.getResponseEnvelope().getBody().getFirstElement(),
+                               org.tempuri.EchoStringResponse.class,
+                               getEnvelopeNamespaces(result.getResponseEnvelope())
+                            );
+                        callback.receiveResultEchoString((org.tempuri.EchoStringResponse) object);
+                    }
+
+                    public void onError(java.lang.Exception e) {
+                        callback.receiveErrorEchoString(e);
+                    }
+                });
+                        
+
+          org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+        if ( _operations[0].getMessageReceiver()==null &&  _operationClient.getOptions().isUseSeparateListener()) {
+           _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+          _operations[0].setMessageReceiver(
+                    _callbackReceiver);
+        }
+
+           //execute the operation client
+           _operationClient.execute(false);
+
+                    }
+                 
+                
+                public void  Ping(
+                 org.tempuri.Ping param32
+
+                ) throws java.rmi.RemoteException
+                
+                
+                {
+
+                
+                org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());
+                _operationClient.getOptions().setAction("urn:wsrm:Ping");
+                _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+                
+                org.apache.axiom.soap.SOAPEnvelope env = null;
+
+                
+                                                    //Style is Doc.
+                                                    
+                                                                    
+                                                                    env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+                                                                    param32,
+                                                                    optimizeContent(new javax.xml.namespace.QName("",
+                                                                    "Ping")));
+                                                                
+
+              //adding SOAP headers
+         _serviceClient.addHeadersToEnvelope(env);
+                // create message context with that soap envelope
+            org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext() ;
+            _messageContext.setEnvelope(env);
+
+            // add the message contxt to the operation client
+            _operationClient.addMessageContext(_messageContext);
+
+             _operationClient.execute(true);
+           
+             return;
+           }
+            
+
+       /**
+        *  A utility method that copies the namepaces from the SOAPEnvelope
+        */
+       private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
+        java.util.Map returnMap = new java.util.HashMap();
+        java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
+        while (namespaceIterator.hasNext()) {
+            org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
+            returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
+        }
+       return returnMap;
+    }
+
+    
+    
+    private javax.xml.namespace.QName[] opNameArray = null;
+    private boolean optimizeContent(javax.xml.namespace.QName opName) {
+        
+
+        if (opNameArray == null) {
+            return false;
+        }
+        for (int i = 0; i < opNameArray.length; i++) {
+            if (opName.equals(opNameArray[i])) {
+                return true;   
+            }
+        }
+        return false;
+    }
+     //http://www.example.org/
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.EchoString param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.EchoString.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.EchoStringResponse param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.EchoStringResponse.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.tempuri.Ping param, boolean optimizeContent){
+            
+                     return param.getOMElement(org.tempuri.Ping.MY_QNAME,
+                                  org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                    
+
+            }
+        
+
+                            
+                        private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.tempuri.EchoString param, boolean optimizeContent){
+                        org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                             
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(org.tempuri.EchoString.MY_QNAME,factory));
+                                
+                         return emptyEnvelope;
+                        }
+
+                        
+
+                            
+                        private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.tempuri.Ping param, boolean optimizeContent){
+                        org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                             
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(org.tempuri.Ping.MY_QNAME,factory));
+                                
+                         return emptyEnvelope;
+                        }
+
+                        
+
+
+        /**
+        *  get the default envelope
+        */
+        private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
+        return factory.getDefaultEnvelope();
+        }
+
+
+        private  java.lang.Object fromOM(
+        org.apache.axiom.om.OMElement param,
+        java.lang.Class type,
+        java.util.Map extraNamespaces){
+
+        try {
+        
+                if (org.tempuri.EchoString.class.equals(type)){
+                
+                           return org.tempuri.EchoString.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.tempuri.EchoStringResponse.class.equals(type)){
+                
+                           return org.tempuri.EchoStringResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.tempuri.Ping.class.equals(type)){
+                
+                           return org.tempuri.Ping.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+        } catch (Exception e) {
+        throw new RuntimeException(e);
+        }
+           return null;
+        }
+
+
+
+    
+            private void setOpNameArray(){
+            opNameArray = null;
+            }
+           
+   }
+   
\ No newline at end of file

Modified: webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/EchoString.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/EchoString.java?view=diff&rev=474155&r1=474154&r2=474155
==============================================================================
--- webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/EchoString.java (original)
+++ webservices/sandesha/branches/sandesha2/java/1_1/interop/src/org/tempuri/EchoString.java Sun Nov 12 21:09:19 2006
@@ -1,283 +1,282 @@
-/*
- * 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;
-
-/**
- * EchoString bean class
- */
-
-public class EchoString implements org.apache.axis2.databinding.ADBBean {
-
-	public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
-			"http://tempuri.org/", "echoString", "ns1");
-
-	/**
-	 * field for EchoString
-	 */
-
-	protected org.tempuri.EchoStringRequestBodyType localEchoString;
-
-	/**
-	 * Auto generated getter method
-	 * 
-	 * @return org.tempuri.EchoStringRequestBodyType
-	 */
-	public org.tempuri.EchoStringRequestBodyType getEchoString() {
-		return localEchoString;
-	}
-
-	/**
-	 * Auto generated setter method
-	 * 
-	 * @param param
-	 *            EchoString
-	 */
-	public void setEchoString(org.tempuri.EchoStringRequestBodyType param) {
-
-		this.localEchoString = 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 (localEchoString == 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, "echoString",
-									namespace);
-							xmlWriter.writeNamespace(prefix, namespace);
-							xmlWriter.setPrefix(prefix, namespace);
-
-						} else {
-							xmlWriter
-									.writeStartElement(namespace, "echoString");
-						}
-
-					} else {
-						xmlWriter.writeStartElement("echoString");
-					}
-
-					// write the nil attribute
-					writeAttribute("xsi",
-							"http://www.w3.org/2001/XMLSchema-instance", "nil",
-							"true", xmlWriter);
-					xmlWriter.writeEndElement();
-				} else {
-					localEchoString.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 (localEchoString == null) {
-			return new org.apache.axis2.databinding.utils.reader.NullXMLStreamReader(
-					MY_QNAME);
-		} else {
-			return localEchoString.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 EchoString parse(javax.xml.stream.XMLStreamReader reader)
-				throws java.lang.Exception {
-			EchoString object = new EchoString();
-			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/", "echoString")
-										.equals(reader.getName())) {
-
-							object
-									.setEchoString(org.tempuri.EchoStringRequestBodyType.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
-
-}
+            /**
+            * EchoString.java
+            *
+            * This file was auto-generated from WSDL
+            * by the Apache Axis2 version: #axisVersion# #today#
+            */
+
+            package org.tempuri;
+            /**
+            *  EchoString bean class
+            */
+        
+        public  class EchoString
+        implements org.apache.axis2.databinding.ADBBean{
+        
+                public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+                "http://tempuri.org/",
+                "echoString",
+                "ns1");
+
+            
+
+                        /**
+                        * field for EchoString
+                        */
+
+                        protected org.tempuri.EchoStringRequestBodyType localEchoString ;
+                        
+
+                           /**
+                           * Auto generated getter method
+                           * @return org.tempuri.EchoStringRequestBodyType
+                           */
+                           public  org.tempuri.EchoStringRequestBodyType getEchoString(){
+                               return localEchoString;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param EchoString
+                               */
+                               public void setEchoString(org.tempuri.EchoStringRequestBodyType param){
+                            
+                                    this.localEchoString=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 (localEchoString==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,"echoString", namespace);
+                                                xmlWriter.writeNamespace(prefix, namespace);
+                                                xmlWriter.setPrefix(prefix, namespace);
+
+                                            } else {
+                                                xmlWriter.writeStartElement(namespace,"echoString");
+                                            }
+
+                                        } else {
+                                            xmlWriter.writeStartElement("echoString");
+                                        }
+
+                                        // write the nil attribute
+                                        writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","true",xmlWriter);
+                                        xmlWriter.writeEndElement();
+                                       }else{
+                                         localEchoString.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();
+          }
+        };
+
+        
+               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 (localEchoString==null){
+                                   return new org.apache.axis2.databinding.utils.reader.NullXMLStreamReader(MY_QNAME);
+                                }else{
+                                   return localEchoString.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 EchoString parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            EchoString object = new EchoString();
+            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 object;
+                             
+
+                   }
+                
+
+                
+                // 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/","echoString").equals(reader.getName())){
+                                
+                                      if ("true".equals(reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil"))){
+                                          object.setEchoString(null);
+                                          reader.next();
+                                      }else{
+                                    
+                                        object.setEchoString(org.tempuri.EchoStringRequestBodyType.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
+
+        
+
+        }
+           
+          
\ 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