]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Download and upload operations from server to client (from client to server) are...
authormka <mka@opencascade.com>
Sat, 17 Nov 2012 11:53:19 +0000 (11:53 +0000)
committermka <mka@opencascade.com>
Sat, 17 Nov 2012 11:53:19 +0000 (11:53 +0000)
14 files changed:
Workspace/Siman-Stub/service_wsdl/service/salome/SimanSalomeService.wsdl
Workspace/Siman-Stub/src/org/splat/ws_client/service/salome/SimanSalomeServiceCallbackHandler.java
Workspace/Siman-Stub/src/org/splat/ws_client/service/salome/SimanSalomeServiceStub.java
Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTest.java
Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTestDownloadFile.java [new file with mode: 0644]
Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTestUploadFile.java [new file with mode: 0644]
Workspace/Siman-WS/WebContent/WEB-INF/conf/axis2.xml
Workspace/Siman-WS/WebContent/WEB-INF/services/SimanSalomeService/META-INF/services.xml
Workspace/Siman-WS/WebContent/WEB-INF/services/SimanSalomeService/spring/applicationContext.xml
Workspace/Siman-WS/WebContent/conf/som.xml
Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeService.java
Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeServiceImpl.java
Workspace/Siman-WS/src/org/splat/ws_server/service/salome/services.xml
Workspace/Siman-WS/src/spring/applicationContext.xml

index 6690c6bb4d9df7c9d68d8e857e61ea70caff88e9..c31c09c5cfa7c5c77a70818adca69349676e307b 100644 (file)
@@ -3,6 +3,28 @@
     <wsdl:documentation>SimanSalomeService</wsdl:documentation>
     <wsdl:types>
         <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://salome.service.ws_server.splat.org">
+            <xs:element name="putFile">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="args0" nillable="true" type="xs:base64Binary"/>
+                        <xs:element minOccurs="0" name="args1" nillable="true" type="xs:string"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getFile">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="args0" nillable="true" type="xs:string"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="getFileResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:base64Binary"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
             <xs:element name="createConfigFile">
                 <xs:complexType>
                     <xs:sequence>
             </xs:element>
         </xs:schema>
     </wsdl:types>
+    <wsdl:message name="getFileRequest">
+        <wsdl:part name="parameters" element="ns:getFile"/>
+    </wsdl:message>
+    <wsdl:message name="getFileResponse">
+        <wsdl:part name="parameters" element="ns:getFileResponse"/>
+    </wsdl:message>
     <wsdl:message name="createConfigFileRequest">
         <wsdl:part name="parameters" element="ns:createConfigFile"/>
     </wsdl:message>
     <wsdl:message name="createConfigFileResponse">
         <wsdl:part name="parameters" element="ns:createConfigFileResponse"/>
     </wsdl:message>
+    <wsdl:message name="putFileRequest">
+        <wsdl:part name="parameters" element="ns:putFile"/>
+    </wsdl:message>
     <wsdl:portType name="SimanSalomeServicePortType">
+        <wsdl:operation name="getFile">
+            <wsdl:input message="ns:getFileRequest" wsaw:Action="urn:getFile"/>
+            <wsdl:output message="ns:getFileResponse" wsaw:Action="urn:getFileResponse"/>
+        </wsdl:operation>
         <wsdl:operation name="createConfigFile">
             <wsdl:input message="ns:createConfigFileRequest" wsaw:Action="urn:createConfigFile"/>
             <wsdl:output message="ns:createConfigFileResponse" wsaw:Action="urn:createConfigFileResponse"/>
         </wsdl:operation>
+        <wsdl:operation name="putFile">
+            <wsdl:input message="ns:putFileRequest" wsaw:Action="urn:putFile"/>
+        </wsdl:operation>
     </wsdl:portType>
     <wsdl:binding name="SimanSalomeServiceSoap11Binding" type="ns:SimanSalomeServicePortType">
         <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+        <wsdl:operation name="getFile">
+            <soap:operation soapAction="urn:getFile" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
         <wsdl:operation name="createConfigFile">
             <soap:operation soapAction="urn:createConfigFile" style="document"/>
             <wsdl:input>
                 <soap:body use="literal"/>
             </wsdl:output>
         </wsdl:operation>
+        <wsdl:operation name="putFile">
+            <soap:operation soapAction="urn:putFile" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
     </wsdl:binding>
     <wsdl:binding name="SimanSalomeServiceSoap12Binding" type="ns:SimanSalomeServicePortType">
         <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+        <wsdl:operation name="getFile">
+            <soap12:operation soapAction="urn:getFile" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap12:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
         <wsdl:operation name="createConfigFile">
             <soap12:operation soapAction="urn:createConfigFile" style="document"/>
             <wsdl:input>
                 <soap12:body use="literal"/>
             </wsdl:output>
         </wsdl:operation>
+        <wsdl:operation name="putFile">
+            <soap12:operation soapAction="urn:putFile" style="document"/>
+            <wsdl:input>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
     </wsdl:binding>
     <wsdl:binding name="SimanSalomeServiceHttpBinding" type="ns:SimanSalomeServicePortType">
         <http:binding verb="POST"/>
+        <wsdl:operation name="getFile">
+            <http:operation location="getFile"/>
+            <wsdl:input>
+                <mime:content type="application/xml" part="parameters"/>
+            </wsdl:input>
+            <wsdl:output>
+                <mime:content type="application/xml" part="parameters"/>
+            </wsdl:output>
+        </wsdl:operation>
         <wsdl:operation name="createConfigFile">
             <http:operation location="createConfigFile"/>
             <wsdl:input>
                 <mime:content type="application/xml" part="parameters"/>
             </wsdl:output>
         </wsdl:operation>
+        <wsdl:operation name="putFile">
+            <http:operation location="putFile"/>
+            <wsdl:input>
+                <mime:content type="application/xml" part="parameters"/>
+            </wsdl:input>
+        </wsdl:operation>
     </wsdl:binding>
     <wsdl:service name="SimanSalomeService">
         <wsdl:port name="SimanSalomeServiceHttpSoap11Endpoint" binding="ns:SimanSalomeServiceSoap11Binding">
index 4cab724a3e20d1bb8dd15290d00aa03e596eaba4..1fd9dec77353c1a244f89683594650cd4941ccc2 100644 (file)
             public void receiveErrorcreateConfigFile(java.lang.Exception e) {
             }
                 
+               // No methods generated for meps other than in-out
+                
+           /**
+            * auto generated Axis2 call back method for getFile method
+            * override this method for handling normal response from getFile operation
+            */
+           public void receiveResultgetFile(
+                    org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse result
+                        ) {
+           }
+
+          /**
+           * auto generated Axis2 Error handler
+           * override this method for handling error response from getFile operation
+           */
+            public void receiveErrorgetFile(java.lang.Exception e) {
+            }
+                
 
 
     }
index c84159a155ef43cb4174f57ce4e3d8c8138417a1..ae800a766ce6307279bd8cbd3f663c9e38c04374 100644 (file)
@@ -44,7 +44,7 @@
         //creating the operations
         org.apache.axis2.description.AxisOperation __operation;
 
-        _operations = new org.apache.axis2.description.AxisOperation[1];
+        _operations = new org.apache.axis2.description.AxisOperation[3];
         
                    __operation = new org.apache.axis2.description.OutInAxisOperation();
                 
             _operations[0]=__operation;
             
         
+                    __operation = new org.apache.axis2.description.OutOnlyAxisOperation();
+                
+
+            __operation.setName(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org", "putFile"));
+           _service.addOperation(__operation);
+           
+
+           
+           
+            _operations[1]=__operation;
+            
+        
+                   __operation = new org.apache.axis2.description.OutInAxisOperation();
+                
+
+            __operation.setName(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org", "getFile"));
+           _service.addOperation(__operation);
+           
+
+           
+           
+            _operations[2]=__operation;
+            
+        
         }
 
     //populates the faults
            _operationClient.execute(false);
 
                     }
+                 
                 
+                /**
+                  * Auto generated method signature
+                  * 
+                  */
+                public void  putFile(
+                 org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile putFile2
 
+                ) throws java.rmi.RemoteException
+                
+                
+                {
+                org.apache.axis2.context.MessageContext _messageContext = 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;
-    }
+                
+                org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());
+                _operationClient.getOptions().setAction("urn:putFile");
+                _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
 
-    
-    
-    private javax.xml.namespace.QName[] opNameArray = null;
-    private boolean optimizeContent(javax.xml.namespace.QName opName) {
-        
+                
+              
+                  addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
+              
+                org.apache.axiom.soap.SOAPEnvelope env = null;
+                 _messageContext = new org.apache.axis2.context.MessageContext();
 
-        if (opNameArray == null) {
-            return false;
-        }
-        for (int i = 0; i < opNameArray.length; i++) {
-            if (opName.equals(opNameArray[i])) {
-                return true;   
-            }
-        }
-        return false;
-    }
-     //http://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpSoap12Endpoint/
-        public static class ExtensionMapper{
+                
+                                                    //Style is Doc.
+                                                    
+                                                                    
+                                                                    env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+                                                                    putFile2,
+                                                                    optimizeContent(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                                    "putFile")),new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                                    "putFile"));
+                                                                
+
+              //adding SOAP soap_headers
+         _serviceClient.addHeadersToEnvelope(env);
+                // create message context with that soap envelope
 
-          public static java.lang.Object getTypeObject(java.lang.String namespaceURI,
-                                                       java.lang.String typeName,
-                                                       javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            _messageContext.setEnvelope(env);
 
-              
-             throw new org.apache.axis2.databinding.ADBException("Unsupported type " + namespaceURI + " " + typeName);
-          }
+            // add the message contxt to the operation client
+            _operationClient.addMessageContext(_messageContext);
 
-        }
-    
-        public static class CreateConfigFile
-        implements org.apache.axis2.databinding.ADBBean{
-        
-                public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
-                "http://salome.service.ws_server.splat.org",
-                "createConfigFile",
-                "ns2");
+             _operationClient.execute(true);
 
+           
+              if (_messageContext.getTransportOut() != null) {
+                      _messageContext.getTransportOut().getSender().cleanup(_messageContext);
+              }
+           
+             return;
+           }
             
+                    /**
+                     * Auto generated method signature
+                     * 
+                     * @see org.splat.ws_client.service.salome.SimanSalomeService#getFile
+                     * @param getFile3
+                    
+                     */
 
-                        /**
-                        * field for Args0
-                        */
+                    
 
-                        
-                                    protected long localArgs0 ;
-                                
-                           /*  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 localArgs0Tracker = false ;
+                            public  org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse getFile(
 
-                           public boolean isArgs0Specified(){
-                               return localArgs0Tracker;
-                           }
+                            org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile3)
+                        
 
-                           
+                    throws java.rmi.RemoteException
+                    
+                    {
+              org.apache.axis2.context.MessageContext _messageContext = null;
+              try{
+               org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
+              _operationClient.getOptions().setAction("urn:getFile");
+              _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
 
-                           /**
-                           * Auto generated getter method
-                           * @return long
-                           */
-                           public  long getArgs0(){
-                               return localArgs0;
-                           }
+              
+              
+                  addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
+              
 
-                           
-                        
-                            /**
-                               * Auto generated setter method
-                               * @param param Args0
-                               */
-                               public void setArgs0(long param){
-                            
-                                       // setting primitive attribute tracker to true
-                                       localArgs0Tracker =
-                                       param != java.lang.Long.MIN_VALUE;
-                                   
-                                            this.localArgs0=param;
-                                    
+              // create a message context
+              _messageContext = new org.apache.axis2.context.MessageContext();
 
-                               }
-                            
+              
 
-                        /**
-                        * field for Args1
-                        */
+              // create SOAP envelope with that payload
+              org.apache.axiom.soap.SOAPEnvelope env = null;
+                    
+                                                    
+                                                    env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+                                                    getFile3,
+                                                    optimizeContent(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                    "getFile")), new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                    "getFile"));
+                                                
+        //adding SOAP soap_headers
+         _serviceClient.addHeadersToEnvelope(env);
+        // set the message context with that soap envelope
+        _messageContext.setEnvelope(env);
 
-                        
-                                    protected long localArgs1 ;
-                                
-                           /*  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 localArgs1Tracker = false ;
+        // add the message contxt to the operation client
+        _operationClient.addMessageContext(_messageContext);
 
-                           public boolean isArgs1Specified(){
-                               return localArgs1Tracker;
-                           }
+        //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.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse.class,
+                                              getEnvelopeNamespaces(_returnEnv));
 
-                           /**
-                           * Auto generated getter method
-                           * @return long
-                           */
-                           public  long getArgs1(){
-                               return localArgs1;
-                           }
+                               
+                                        return (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse)object;
+                                   
+         }catch(org.apache.axis2.AxisFault f){
 
-                           
+            org.apache.axiom.om.OMElement faultElt = f.getDetail();
+            if (faultElt!=null){
+                if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getFile"))){
+                    //make the fault by reflection
+                    try{
+                        java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getFile"));
+                        java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+                        java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
+                        java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+                        //message class
+                        java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getFile"));
+                        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});
                         
-                            /**
-                               * Auto generated setter method
-                               * @param param Args1
-                               */
-                               public void setArgs1(long param){
-                            
-                                       // setting primitive attribute tracker to true
-                                       localArgs1Tracker =
-                                       param != java.lang.Long.MIN_VALUE;
-                                   
-                                            this.localArgs1=param;
-                                    
 
-                               }
-                            
+                        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;
+            }
+            } finally {
+                if (_messageContext.getTransportOut() != null) {
+                      _messageContext.getTransportOut().getSender().cleanup(_messageContext);
+                }
+            }
+        }
+            
+                /**
+                * Auto generated method signature for Asynchronous Invocations
+                * 
+                * @see org.splat.ws_client.service.salome.SimanSalomeService#startgetFile
+                    * @param getFile3
+                
+                */
+                public  void startgetFile(
 
-                        /**
-                        * field for Args2
-                        */
+                 org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile3,
 
-                        
-                                    protected long localArgs2 ;
-                                
+                  final org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler callback)
+
+                throws java.rmi.RemoteException{
+
+              org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
+             _operationClient.getOptions().setAction("urn:getFile");
+             _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+              
+              
+                  addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
+              
+
+
+              // create SOAP envelope with that payload
+              org.apache.axiom.soap.SOAPEnvelope env=null;
+              final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
+
+                    
+                                    //Style is Doc.
+                                    
+                                                    
+                                                    env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+                                                    getFile3,
+                                                    optimizeContent(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                    "getFile")), new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                    "getFile"));
+                                                
+        // adding SOAP soap_headers
+         _serviceClient.addHeadersToEnvelope(env);
+        // create message context with that soap envelope
+        _messageContext.setEnvelope(env);
+
+        // add the message context to the operation client
+        _operationClient.addMessageContext(_messageContext);
+
+
+                    
+                        _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
+                            public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
+                            try {
+                                org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
+                                
+                                        java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
+                                                                         org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse.class,
+                                                                         getEnvelopeNamespaces(resultEnv));
+                                        callback.receiveResultgetFile(
+                                        (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse)object);
+                                        
+                            } catch (org.apache.axis2.AxisFault e) {
+                                callback.receiveErrorgetFile(e);
+                            }
+                            }
+
+                            public void onError(java.lang.Exception error) {
+                                                               if (error instanceof org.apache.axis2.AxisFault) {
+                                                                       org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
+                                                                       org.apache.axiom.om.OMElement faultElt = f.getDetail();
+                                                                       if (faultElt!=null){
+                                                                               if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getFile"))){
+                                                                                       //make the fault by reflection
+                                                                                       try{
+                                                                                                       java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getFile"));
+                                                                                                       java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
+                                                                                                       java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
+                                                    java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
+                                                                                                       //message class
+                                                                                                       java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getFile"));
+                                                                                                               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});
+                                                                                                       
+                                       
+                                                                                           callback.receiveErrorgetFile(new java.rmi.RemoteException(ex.getMessage(), ex));
+                                            } catch(java.lang.ClassCastException e){
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorgetFile(f);
+                                            } catch (java.lang.ClassNotFoundException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorgetFile(f);
+                                            } catch (java.lang.NoSuchMethodException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorgetFile(f);
+                                            } catch (java.lang.reflect.InvocationTargetException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorgetFile(f);
+                                            } catch (java.lang.IllegalAccessException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorgetFile(f);
+                                            } catch (java.lang.InstantiationException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorgetFile(f);
+                                            } catch (org.apache.axis2.AxisFault e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorgetFile(f);
+                                            }
+                                                                           } else {
+                                                                                   callback.receiveErrorgetFile(f);
+                                                                           }
+                                                                       } else {
+                                                                           callback.receiveErrorgetFile(f);
+                                                                       }
+                                                               } else {
+                                                                   callback.receiveErrorgetFile(error);
+                                                               }
+                            }
+
+                            public void onFault(org.apache.axis2.context.MessageContext faultContext) {
+                                org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
+                                onError(fault);
+                            }
+
+                            public void onComplete() {
+                                try {
+                                    _messageContext.getTransportOut().getSender().cleanup(_messageContext);
+                                } catch (org.apache.axis2.AxisFault axisFault) {
+                                    callback.receiveErrorgetFile(axisFault);
+                                }
+                            }
+                });
+                        
+
+          org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
+        if ( _operations[2].getMessageReceiver()==null &&  _operationClient.getOptions().isUseSeparateListener()) {
+           _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
+          _operations[2].setMessageReceiver(
+                    _callbackReceiver);
+        }
+
+           //execute the operation client
+           _operationClient.execute(false);
+
+                    }
+                
+
+
+       /**
+        *  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://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpSoap12Endpoint/
+        public static class PutFile
+        implements org.apache.axis2.databinding.ADBBean{
+        
+                public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+                "http://salome.service.ws_server.splat.org",
+                "putFile",
+                "ns2");
+
+            
+
+                        /**
+                        * field for Args0
+                        */
+
+                        
+                                    protected javax.activation.DataHandler localArgs0 ;
+                                
                            /*  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 localArgs2Tracker = false ;
+                           protected boolean localArgs0Tracker = false ;
 
-                           public boolean isArgs2Specified(){
-                               return localArgs2Tracker;
+                           public boolean isArgs0Specified(){
+                               return localArgs0Tracker;
                            }
 
                            
 
                            /**
                            * Auto generated getter method
-                           * @return long
+                           * @return javax.activation.DataHandler
                            */
-                           public  long getArgs2(){
-                               return localArgs2;
+                           public  javax.activation.DataHandler getArgs0(){
+                               return localArgs0;
                            }
 
                            
                         
                             /**
                                * Auto generated setter method
-                               * @param param Args2
+                               * @param param Args0
                                */
-                               public void setArgs2(long param){
+                               public void setArgs0(javax.activation.DataHandler param){
+                            localArgs0Tracker = true;
+                                   
+                                            this.localArgs0=param;
+                                    
+
+                               }
                             
-                                       // setting primitive attribute tracker to true
-                                       localArgs2Tracker =
-                                       param != java.lang.Long.MIN_VALUE;
+
+                        /**
+                        * field for Args1
+                        */
+
+                        
+                                    protected java.lang.String localArgs1 ;
+                                
+                           /*  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 localArgs1Tracker = false ;
+
+                           public boolean isArgs1Specified(){
+                               return localArgs1Tracker;
+                           }
+
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return java.lang.String
+                           */
+                           public  java.lang.String getArgs1(){
+                               return localArgs1;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param Args1
+                               */
+                               public void setArgs1(java.lang.String param){
+                            localArgs1Tracker = true;
                                    
-                                            this.localArgs2=param;
+                                            this.localArgs1=param;
                                     
 
                                }
                    java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://salome.service.ws_server.splat.org");
                    if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
                        writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
-                           namespacePrefix+":createConfigFile",
+                           namespacePrefix+":putFile",
                            xmlWriter);
                    } else {
                        writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
-                           "createConfigFile",
+                           "putFile",
                            xmlWriter);
                    }
 
                                     namespace = "http://salome.service.ws_server.splat.org";
                                     writeStartElement(null, namespace, "args0", xmlWriter);
                              
-                                               if (localArgs0==java.lang.Long.MIN_VALUE) {
-                                           
-                                                         throw new org.apache.axis2.databinding.ADBException("args0 cannot be null!!");
-                                                      
-                                               } else {
-                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs0));
-                                               }
-                                    
+                                        
+                                    if (localArgs0!=null)  {
+                                       try {
+                                           org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler(xmlWriter, localArgs0, null, true);
+                                       } catch (java.io.IOException ex) {
+                                           throw new javax.xml.stream.XMLStreamException("Unable to read data handler for args0", ex);
+                                       }
+                                    } else {
+                                         
+                                             writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+                                         
+                                    }
+                                 
                                    xmlWriter.writeEndElement();
                              } if (localArgs1Tracker){
                                     namespace = "http://salome.service.ws_server.splat.org";
                                     writeStartElement(null, namespace, "args1", xmlWriter);
                              
-                                               if (localArgs1==java.lang.Long.MIN_VALUE) {
-                                           
-                                                         throw new org.apache.axis2.databinding.ADBException("args1 cannot be null!!");
-                                                      
-                                               } else {
-                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs1));
-                                               }
+
+                                          if (localArgs1==null){
+                                              // write the nil attribute
+                                              
+                                                     writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(localArgs1);
+                                            
+                                          }
                                     
                                    xmlWriter.writeEndElement();
-                             } if (localArgs2Tracker){
+                             }
+                    xmlWriter.writeEndElement();
+               
+
+        }
+
+        private static java.lang.String generatePrefix(java.lang.String namespace) {
+            if(namespace.equals("http://salome.service.ws_server.splat.org")){
+                return "ns2";
+            }
+            return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+        }
+
+        /**
+         * Utility method to write an element start tag.
+         */
+        private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
+                                       javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+            java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+            if (writerPrefix != null) {
+                xmlWriter.writeStartElement(namespace, localPart);
+            } else {
+                if (namespace.length() == 0) {
+                    prefix = "";
+                } else if (prefix == null) {
+                    prefix = generatePrefix(namespace);
+                }
+
+                xmlWriter.writeStartElement(prefix, localPart, namespace);
+                xmlWriter.writeNamespace(prefix, namespace);
+                xmlWriter.setPrefix(prefix, namespace);
+            }
+        }
+        
+        /**
+         * 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);
+            }
+        }
+
+
+           /**
+             * Util method to write an attribute without the ns prefix
+             */
+            private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+                                             javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+                java.lang.String attributeNamespace = qname.getNamespaceURI();
+                java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+                if (attributePrefix == null) {
+                    attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+                }
+                java.lang.String attributeValue;
+                if (attributePrefix.trim().length() > 0) {
+                    attributeValue = attributePrefix + ":" + qname.getLocalPart();
+                } else {
+                    attributeValue = qname.getLocalPart();
+                }
+
+                if (namespace.equals("")) {
+                    xmlWriter.writeAttribute(attName, attributeValue);
+                } else {
+                    registerPrefix(xmlWriter, namespace);
+                    xmlWriter.writeAttribute(namespace, attName, attributeValue);
+                }
+            }
+        /**
+         *  method to handle Qnames
+         */
+
+        private void writeQName(javax.xml.namespace.QName qname,
+                                javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+            java.lang.String namespaceURI = qname.getNamespaceURI();
+            if (namespaceURI != null) {
+                java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+                if (prefix == null) {
+                    prefix = generatePrefix(namespaceURI);
+                    xmlWriter.writeNamespace(prefix, namespaceURI);
+                    xmlWriter.setPrefix(prefix,namespaceURI);
+                }
+
+                if (prefix.trim().length() > 0){
+                    xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+                } else {
+                    // i.e this is the default namespace
+                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+                }
+
+            } else {
+                xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+            }
+        }
+
+        private void writeQNames(javax.xml.namespace.QName[] qnames,
+                                 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+            if (qnames != null) {
+                // we have to store this data until last moment since it is not possible to write any
+                // namespace data after writing the charactor data
+                java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+                java.lang.String namespaceURI = null;
+                java.lang.String prefix = null;
+
+                for (int i = 0; i < qnames.length; i++) {
+                    if (i > 0) {
+                        stringToWrite.append(" ");
+                    }
+                    namespaceURI = qnames[i].getNamespaceURI();
+                    if (namespaceURI != null) {
+                        prefix = xmlWriter.getPrefix(namespaceURI);
+                        if ((prefix == null) || (prefix.length() == 0)) {
+                            prefix = generatePrefix(namespaceURI);
+                            xmlWriter.writeNamespace(prefix, namespaceURI);
+                            xmlWriter.setPrefix(prefix,namespaceURI);
+                        }
+
+                        if (prefix.trim().length() > 0){
+                            stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                        } else {
+                            stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                        }
+                    } else {
+                        stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                    }
+                }
+                xmlWriter.writeCharacters(stringToWrite.toString());
+            }
+
+        }
+
+
+        /**
+         * 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 = generatePrefix(namespace);
+                javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+                while (true) {
+                    java.lang.String uri = nsContext.getNamespaceURI(prefix);
+                    if (uri == null || uri.length() == 0) {
+                        break;
+                    }
+                    prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+                }
+                xmlWriter.writeNamespace(prefix, namespace);
+                xmlWriter.setPrefix(prefix, namespace);
+            }
+            return prefix;
+        }
+
+
+  
+        /**
+        * databinding method to get an XML representation of this object
+        *
+        */
+        public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+                    throws org.apache.axis2.databinding.ADBException{
+
+
+        
+                 java.util.ArrayList elementList = new java.util.ArrayList();
+                 java.util.ArrayList attribList = new java.util.ArrayList();
+
+                 if (localArgs0Tracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                        "args0"));
+                                
+                            elementList.add(localArgs0);
+                        } if (localArgs1Tracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                                      "args1"));
+                                 
+                                         elementList.add(localArgs1==null?null:
+                                         org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs1));
+                                    }
+
+                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 PutFile parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            PutFile object =
+                new PutFile();
+
+            int event;
+            java.lang.String nillableValue = null;
+            java.lang.String prefix ="";
+            java.lang.String namespaceuri ="";
+            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 = null;
+                    if (fullTypeName.indexOf(":") > -1){
+                        nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+                    }
+                    nsPrefix = nsPrefix==null?"":nsPrefix;
+
+                    java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+                    
+                            if (!"putFile".equals(type)){
+                                //find namespace for the prefix
+                                java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+                                return (PutFile)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();
+                
+
+                
+                    
+                    reader.next();
+                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args0").equals(reader.getName())){
+                                
+                                        nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+                                        if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+                                             object.setArgs0(null);
+                                             reader.next();
+                                        } else {
+                                    
+                                            object.setArgs0(org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(reader));
+                                    
+                                        }
+                                      
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args1").equals(reader.getName())){
+                                
+                                       nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+                                       if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+                                    
+
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setArgs1(
+                                                    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
+                                
+                                    else {
+                                        
+                                    }
+                                  
+                            while (!reader.isStartElement() && !reader.isEndElement())
+                                reader.next();
+                            
+                                if (reader.isStartElement())
+                                // A start element we are not expecting indicates a trailing invalid property
+                                throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
+                            
+
+
+
+            } catch (javax.xml.stream.XMLStreamException e) {
+                throw new java.lang.Exception(e);
+            }
+
+            return object;
+        }
+
+        }//end of factory class
+
+        
+
+        }
+           
+    
+        public static class GetFileResponse
+        implements org.apache.axis2.databinding.ADBBean{
+        
+                public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+                "http://salome.service.ws_server.splat.org",
+                "getFileResponse",
+                "ns2");
+
+            
+
+                        /**
+                        * field for _return
+                        */
+
+                        
+                                    protected javax.activation.DataHandler local_return ;
+                                
+                           /*  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 local_returnTracker = false ;
+
+                           public boolean is_returnSpecified(){
+                               return local_returnTracker;
+                           }
+
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return javax.activation.DataHandler
+                           */
+                           public  javax.activation.DataHandler get_return(){
+                               return local_return;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param _return
+                               */
+                               public void set_return(javax.activation.DataHandler param){
+                            local_returnTracker = true;
+                                   
+                                            this.local_return=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) throws org.apache.axis2.databinding.ADBException{
+
+
+        
+               org.apache.axiom.om.OMDataSource dataSource =
+                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
+               return factory.createOMElement(dataSource,MY_QNAME);
+            
+        }
+
+         public void serialize(final javax.xml.namespace.QName parentQName,
+                                       javax.xml.stream.XMLStreamWriter xmlWriter)
+                                throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+                           serialize(parentQName,xmlWriter,false);
+         }
+
+         public void serialize(final javax.xml.namespace.QName parentQName,
+                               javax.xml.stream.XMLStreamWriter xmlWriter,
+                               boolean serializeType)
+            throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+            
+                
+
+
+                java.lang.String prefix = null;
+                java.lang.String namespace = null;
+                
+
+                    prefix = parentQName.getPrefix();
+                    namespace = parentQName.getNamespaceURI();
+                    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
+                
+                  if (serializeType){
+               
+
+                   java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://salome.service.ws_server.splat.org");
+                   if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           namespacePrefix+":getFileResponse",
+                           xmlWriter);
+                   } else {
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           "getFileResponse",
+                           xmlWriter);
+                   }
+
+               
+                   }
+                if (local_returnTracker){
+                                    namespace = "http://salome.service.ws_server.splat.org";
+                                    writeStartElement(null, namespace, "return", xmlWriter);
+                             
+                                        
+                                    if (local_return!=null)  {
+                                       try {
+                                           org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler(xmlWriter, local_return, null, true);
+                                       } catch (java.io.IOException ex) {
+                                           throw new javax.xml.stream.XMLStreamException("Unable to read data handler for return", ex);
+                                       }
+                                    } else {
+                                         
+                                             writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+                                         
+                                    }
+                                 
+                                   xmlWriter.writeEndElement();
+                             }
+                    xmlWriter.writeEndElement();
+               
+
+        }
+
+        private static java.lang.String generatePrefix(java.lang.String namespace) {
+            if(namespace.equals("http://salome.service.ws_server.splat.org")){
+                return "ns2";
+            }
+            return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+        }
+
+        /**
+         * Utility method to write an element start tag.
+         */
+        private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
+                                       javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+            java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+            if (writerPrefix != null) {
+                xmlWriter.writeStartElement(namespace, localPart);
+            } else {
+                if (namespace.length() == 0) {
+                    prefix = "";
+                } else if (prefix == null) {
+                    prefix = generatePrefix(namespace);
+                }
+
+                xmlWriter.writeStartElement(prefix, localPart, namespace);
+                xmlWriter.writeNamespace(prefix, namespace);
+                xmlWriter.setPrefix(prefix, namespace);
+            }
+        }
+        
+        /**
+         * 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);
+            }
+        }
+
+
+           /**
+             * Util method to write an attribute without the ns prefix
+             */
+            private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+                                             javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+                java.lang.String attributeNamespace = qname.getNamespaceURI();
+                java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+                if (attributePrefix == null) {
+                    attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+                }
+                java.lang.String attributeValue;
+                if (attributePrefix.trim().length() > 0) {
+                    attributeValue = attributePrefix + ":" + qname.getLocalPart();
+                } else {
+                    attributeValue = qname.getLocalPart();
+                }
+
+                if (namespace.equals("")) {
+                    xmlWriter.writeAttribute(attName, attributeValue);
+                } else {
+                    registerPrefix(xmlWriter, namespace);
+                    xmlWriter.writeAttribute(namespace, attName, attributeValue);
+                }
+            }
+        /**
+         *  method to handle Qnames
+         */
+
+        private void writeQName(javax.xml.namespace.QName qname,
+                                javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+            java.lang.String namespaceURI = qname.getNamespaceURI();
+            if (namespaceURI != null) {
+                java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+                if (prefix == null) {
+                    prefix = generatePrefix(namespaceURI);
+                    xmlWriter.writeNamespace(prefix, namespaceURI);
+                    xmlWriter.setPrefix(prefix,namespaceURI);
+                }
+
+                if (prefix.trim().length() > 0){
+                    xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+                } else {
+                    // i.e this is the default namespace
+                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+                }
+
+            } else {
+                xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+            }
+        }
+
+        private void writeQNames(javax.xml.namespace.QName[] qnames,
+                                 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+            if (qnames != null) {
+                // we have to store this data until last moment since it is not possible to write any
+                // namespace data after writing the charactor data
+                java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+                java.lang.String namespaceURI = null;
+                java.lang.String prefix = null;
+
+                for (int i = 0; i < qnames.length; i++) {
+                    if (i > 0) {
+                        stringToWrite.append(" ");
+                    }
+                    namespaceURI = qnames[i].getNamespaceURI();
+                    if (namespaceURI != null) {
+                        prefix = xmlWriter.getPrefix(namespaceURI);
+                        if ((prefix == null) || (prefix.length() == 0)) {
+                            prefix = generatePrefix(namespaceURI);
+                            xmlWriter.writeNamespace(prefix, namespaceURI);
+                            xmlWriter.setPrefix(prefix,namespaceURI);
+                        }
+
+                        if (prefix.trim().length() > 0){
+                            stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                        } else {
+                            stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                        }
+                    } else {
+                        stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                    }
+                }
+                xmlWriter.writeCharacters(stringToWrite.toString());
+            }
+
+        }
+
+
+        /**
+         * 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 = generatePrefix(namespace);
+                javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+                while (true) {
+                    java.lang.String uri = nsContext.getNamespaceURI(prefix);
+                    if (uri == null || uri.length() == 0) {
+                        break;
+                    }
+                    prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+                }
+                xmlWriter.writeNamespace(prefix, namespace);
+                xmlWriter.setPrefix(prefix, namespace);
+            }
+            return prefix;
+        }
+
+
+  
+        /**
+        * databinding method to get an XML representation of this object
+        *
+        */
+        public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+                    throws org.apache.axis2.databinding.ADBException{
+
+
+        
+                 java.util.ArrayList elementList = new java.util.ArrayList();
+                 java.util.ArrayList attribList = new java.util.ArrayList();
+
+                 if (local_returnTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                        "return"));
+                                
+                            elementList.add(local_return);
+                        }
+
+                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 GetFileResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            GetFileResponse object =
+                new GetFileResponse();
+
+            int event;
+            java.lang.String nillableValue = null;
+            java.lang.String prefix ="";
+            java.lang.String namespaceuri ="";
+            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 = null;
+                    if (fullTypeName.indexOf(":") > -1){
+                        nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+                    }
+                    nsPrefix = nsPrefix==null?"":nsPrefix;
+
+                    java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+                    
+                            if (!"getFileResponse".equals(type)){
+                                //find namespace for the prefix
+                                java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+                                return (GetFileResponse)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();
+                
+
+                
+                    
+                    reader.next();
+                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","return").equals(reader.getName())){
+                                
+                                        nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+                                        if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+                                             object.set_return(null);
+                                             reader.next();
+                                        } else {
+                                    
+                                            object.set_return(org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(reader));
+                                    
+                                        }
+                                      
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                    }
+                                  
+                            while (!reader.isStartElement() && !reader.isEndElement())
+                                reader.next();
+                            
+                                if (reader.isStartElement())
+                                // A start element we are not expecting indicates a trailing invalid property
+                                throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
+                            
+
+
+
+            } catch (javax.xml.stream.XMLStreamException e) {
+                throw new java.lang.Exception(e);
+            }
+
+            return object;
+        }
+
+        }//end of factory class
+
+        
+
+        }
+           
+    
+        public static 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{
+
+              
+             throw new org.apache.axis2.databinding.ADBException("Unsupported type " + namespaceURI + " " + typeName);
+          }
+
+        }
+    
+        public static class CreateConfigFile
+        implements org.apache.axis2.databinding.ADBBean{
+        
+                public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+                "http://salome.service.ws_server.splat.org",
+                "createConfigFile",
+                "ns2");
+
+            
+
+                        /**
+                        * field for Args0
+                        */
+
+                        
+                                    protected long localArgs0 ;
+                                
+                           /*  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 localArgs0Tracker = false ;
+
+                           public boolean isArgs0Specified(){
+                               return localArgs0Tracker;
+                           }
+
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return long
+                           */
+                           public  long getArgs0(){
+                               return localArgs0;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param Args0
+                               */
+                               public void setArgs0(long param){
+                            
+                                       // setting primitive attribute tracker to true
+                                       localArgs0Tracker =
+                                       param != java.lang.Long.MIN_VALUE;
+                                   
+                                            this.localArgs0=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for Args1
+                        */
+
+                        
+                                    protected long localArgs1 ;
+                                
+                           /*  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 localArgs1Tracker = false ;
+
+                           public boolean isArgs1Specified(){
+                               return localArgs1Tracker;
+                           }
+
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return long
+                           */
+                           public  long getArgs1(){
+                               return localArgs1;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param Args1
+                               */
+                               public void setArgs1(long param){
+                            
+                                       // setting primitive attribute tracker to true
+                                       localArgs1Tracker =
+                                       param != java.lang.Long.MIN_VALUE;
+                                   
+                                            this.localArgs1=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for Args2
+                        */
+
+                        
+                                    protected long localArgs2 ;
+                                
+                           /*  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 localArgs2Tracker = false ;
+
+                           public boolean isArgs2Specified(){
+                               return localArgs2Tracker;
+                           }
+
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return long
+                           */
+                           public  long getArgs2(){
+                               return localArgs2;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param Args2
+                               */
+                               public void setArgs2(long param){
+                            
+                                       // setting primitive attribute tracker to true
+                                       localArgs2Tracker =
+                                       param != java.lang.Long.MIN_VALUE;
+                                   
+                                            this.localArgs2=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) throws org.apache.axis2.databinding.ADBException{
+
+
+        
+               org.apache.axiom.om.OMDataSource dataSource =
+                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
+               return factory.createOMElement(dataSource,MY_QNAME);
+            
+        }
+
+         public void serialize(final javax.xml.namespace.QName parentQName,
+                                       javax.xml.stream.XMLStreamWriter xmlWriter)
+                                throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+                           serialize(parentQName,xmlWriter,false);
+         }
+
+         public void serialize(final javax.xml.namespace.QName parentQName,
+                               javax.xml.stream.XMLStreamWriter xmlWriter,
+                               boolean serializeType)
+            throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+            
+                
+
+
+                java.lang.String prefix = null;
+                java.lang.String namespace = null;
+                
+
+                    prefix = parentQName.getPrefix();
+                    namespace = parentQName.getNamespaceURI();
+                    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
+                
+                  if (serializeType){
+               
+
+                   java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://salome.service.ws_server.splat.org");
+                   if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           namespacePrefix+":createConfigFile",
+                           xmlWriter);
+                   } else {
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           "createConfigFile",
+                           xmlWriter);
+                   }
+
+               
+                   }
+                if (localArgs0Tracker){
+                                    namespace = "http://salome.service.ws_server.splat.org";
+                                    writeStartElement(null, namespace, "args0", xmlWriter);
+                             
+                                               if (localArgs0==java.lang.Long.MIN_VALUE) {
+                                           
+                                                         throw new org.apache.axis2.databinding.ADBException("args0 cannot be null!!");
+                                                      
+                                               } else {
+                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs0));
+                                               }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localArgs1Tracker){
+                                    namespace = "http://salome.service.ws_server.splat.org";
+                                    writeStartElement(null, namespace, "args1", xmlWriter);
+                             
+                                               if (localArgs1==java.lang.Long.MIN_VALUE) {
+                                           
+                                                         throw new org.apache.axis2.databinding.ADBException("args1 cannot be null!!");
+                                                      
+                                               } else {
+                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs1));
+                                               }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localArgs2Tracker){
+                                    namespace = "http://salome.service.ws_server.splat.org";
+                                    writeStartElement(null, namespace, "args2", xmlWriter);
+                             
+                                               if (localArgs2==java.lang.Long.MIN_VALUE) {
+                                           
+                                                         throw new org.apache.axis2.databinding.ADBException("args2 cannot be null!!");
+                                                      
+                                               } else {
+                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs2));
+                                               }
+                                    
+                                   xmlWriter.writeEndElement();
+                             }
+                    xmlWriter.writeEndElement();
+               
+
+        }
+
+        private static java.lang.String generatePrefix(java.lang.String namespace) {
+            if(namespace.equals("http://salome.service.ws_server.splat.org")){
+                return "ns2";
+            }
+            return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+        }
+
+        /**
+         * Utility method to write an element start tag.
+         */
+        private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
+                                       javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+            java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+            if (writerPrefix != null) {
+                xmlWriter.writeStartElement(namespace, localPart);
+            } else {
+                if (namespace.length() == 0) {
+                    prefix = "";
+                } else if (prefix == null) {
+                    prefix = generatePrefix(namespace);
+                }
+
+                xmlWriter.writeStartElement(prefix, localPart, namespace);
+                xmlWriter.writeNamespace(prefix, namespace);
+                xmlWriter.setPrefix(prefix, namespace);
+            }
+        }
+        
+        /**
+         * 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);
+            }
+        }
+
+
+           /**
+             * Util method to write an attribute without the ns prefix
+             */
+            private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+                                             javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+                java.lang.String attributeNamespace = qname.getNamespaceURI();
+                java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+                if (attributePrefix == null) {
+                    attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+                }
+                java.lang.String attributeValue;
+                if (attributePrefix.trim().length() > 0) {
+                    attributeValue = attributePrefix + ":" + qname.getLocalPart();
+                } else {
+                    attributeValue = qname.getLocalPart();
+                }
+
+                if (namespace.equals("")) {
+                    xmlWriter.writeAttribute(attName, attributeValue);
+                } else {
+                    registerPrefix(xmlWriter, namespace);
+                    xmlWriter.writeAttribute(namespace, attName, attributeValue);
+                }
+            }
+        /**
+         *  method to handle Qnames
+         */
+
+        private void writeQName(javax.xml.namespace.QName qname,
+                                javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+            java.lang.String namespaceURI = qname.getNamespaceURI();
+            if (namespaceURI != null) {
+                java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+                if (prefix == null) {
+                    prefix = generatePrefix(namespaceURI);
+                    xmlWriter.writeNamespace(prefix, namespaceURI);
+                    xmlWriter.setPrefix(prefix,namespaceURI);
+                }
+
+                if (prefix.trim().length() > 0){
+                    xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+                } else {
+                    // i.e this is the default namespace
+                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+                }
+
+            } else {
+                xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+            }
+        }
+
+        private void writeQNames(javax.xml.namespace.QName[] qnames,
+                                 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+            if (qnames != null) {
+                // we have to store this data until last moment since it is not possible to write any
+                // namespace data after writing the charactor data
+                java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+                java.lang.String namespaceURI = null;
+                java.lang.String prefix = null;
+
+                for (int i = 0; i < qnames.length; i++) {
+                    if (i > 0) {
+                        stringToWrite.append(" ");
+                    }
+                    namespaceURI = qnames[i].getNamespaceURI();
+                    if (namespaceURI != null) {
+                        prefix = xmlWriter.getPrefix(namespaceURI);
+                        if ((prefix == null) || (prefix.length() == 0)) {
+                            prefix = generatePrefix(namespaceURI);
+                            xmlWriter.writeNamespace(prefix, namespaceURI);
+                            xmlWriter.setPrefix(prefix,namespaceURI);
+                        }
+
+                        if (prefix.trim().length() > 0){
+                            stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                        } else {
+                            stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                        }
+                    } else {
+                        stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                    }
+                }
+                xmlWriter.writeCharacters(stringToWrite.toString());
+            }
+
+        }
+
+
+        /**
+         * 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 = generatePrefix(namespace);
+                javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
+                while (true) {
+                    java.lang.String uri = nsContext.getNamespaceURI(prefix);
+                    if (uri == null || uri.length() == 0) {
+                        break;
+                    }
+                    prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+                }
+                xmlWriter.writeNamespace(prefix, namespace);
+                xmlWriter.setPrefix(prefix, namespace);
+            }
+            return prefix;
+        }
+
+
+  
+        /**
+        * databinding method to get an XML representation of this object
+        *
+        */
+        public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+                    throws org.apache.axis2.databinding.ADBException{
+
+
+        
+                 java.util.ArrayList elementList = new java.util.ArrayList();
+                 java.util.ArrayList attribList = new java.util.ArrayList();
+
+                 if (localArgs0Tracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                                      "args0"));
+                                 
+                                elementList.add(
+                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs0));
+                            } if (localArgs1Tracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                                      "args1"));
+                                 
+                                elementList.add(
+                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs1));
+                            } if (localArgs2Tracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                                      "args2"));
+                                 
+                                elementList.add(
+                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs2));
+                            }
+
+                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 CreateConfigFile parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            CreateConfigFile object =
+                new CreateConfigFile();
+
+            int event;
+            java.lang.String nillableValue = null;
+            java.lang.String prefix ="";
+            java.lang.String namespaceuri ="";
+            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 = null;
+                    if (fullTypeName.indexOf(":") > -1){
+                        nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+                    }
+                    nsPrefix = nsPrefix==null?"":nsPrefix;
+
+                    java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+                    
+                            if (!"createConfigFile".equals(type)){
+                                //find namespace for the prefix
+                                java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+                                return (CreateConfigFile)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();
+                
+
+                
+                    
+                    reader.next();
+                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args0").equals(reader.getName())){
+                                
+                                    nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+                                    if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+                                        throw new org.apache.axis2.databinding.ADBException("The element: "+"args0" +"  cannot be null");
+                                    }
+                                    
+
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setArgs0(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                               object.setArgs0(java.lang.Long.MIN_VALUE);
+                                           
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args1").equals(reader.getName())){
+                                
+                                    nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+                                    if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+                                        throw new org.apache.axis2.databinding.ADBException("The element: "+"args1" +"  cannot be null");
+                                    }
+                                    
+
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setArgs1(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                               object.setArgs1(java.lang.Long.MIN_VALUE);
+                                           
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args2").equals(reader.getName())){
+                                
+                                    nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+                                    if ("true".equals(nillableValue) || "1".equals(nillableValue)){
+                                        throw new org.apache.axis2.databinding.ADBException("The element: "+"args2" +"  cannot be null");
+                                    }
+                                    
+
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setArgs2(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                               object.setArgs2(java.lang.Long.MIN_VALUE);
+                                           
+                                    }
+                                  
+                            while (!reader.isStartElement() && !reader.isEndElement())
+                                reader.next();
+                            
+                                if (reader.isStartElement())
+                                // A start element we are not expecting indicates a trailing invalid property
+                                throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
+                            
+
+
+
+            } catch (javax.xml.stream.XMLStreamException e) {
+                throw new java.lang.Exception(e);
+            }
+
+            return object;
+        }
+
+        }//end of factory class
+
+        
+
+        }
+           
+    
+        public static class CreateConfigFileResponse
+        implements org.apache.axis2.databinding.ADBBean{
+        
+                public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
+                "http://salome.service.ws_server.splat.org",
+                "createConfigFileResponse",
+                "ns2");
+
+            
+
+                        /**
+                        * field for _return
+                        */
+
+                        
+                                    protected java.lang.String local_return ;
+                                
+                           /*  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 local_returnTracker = false ;
+
+                           public boolean is_returnSpecified(){
+                               return local_returnTracker;
+                           }
+
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return java.lang.String
+                           */
+                           public  java.lang.String get_return(){
+                               return local_return;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param _return
+                               */
+                               public void set_return(java.lang.String param){
+                            local_returnTracker = true;
+                                   
+                                            this.local_return=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) throws org.apache.axis2.databinding.ADBException{
+
+
+        
+               org.apache.axiom.om.OMDataSource dataSource =
+                       new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
+               return factory.createOMElement(dataSource,MY_QNAME);
+            
+        }
+
+         public void serialize(final javax.xml.namespace.QName parentQName,
+                                       javax.xml.stream.XMLStreamWriter xmlWriter)
+                                throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+                           serialize(parentQName,xmlWriter,false);
+         }
+
+         public void serialize(final javax.xml.namespace.QName parentQName,
+                               javax.xml.stream.XMLStreamWriter xmlWriter,
+                               boolean serializeType)
+            throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+            
+                
+
+
+                java.lang.String prefix = null;
+                java.lang.String namespace = null;
+                
+
+                    prefix = parentQName.getPrefix();
+                    namespace = parentQName.getNamespaceURI();
+                    writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
+                
+                  if (serializeType){
+               
+
+                   java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://salome.service.ws_server.splat.org");
+                   if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           namespacePrefix+":createConfigFileResponse",
+                           xmlWriter);
+                   } else {
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           "createConfigFileResponse",
+                           xmlWriter);
+                   }
+
+               
+                   }
+                if (local_returnTracker){
                                     namespace = "http://salome.service.ws_server.splat.org";
-                                    writeStartElement(null, namespace, "args2", xmlWriter);
+                                    writeStartElement(null, namespace, "return", xmlWriter);
                              
-                                               if (localArgs2==java.lang.Long.MIN_VALUE) {
-                                           
-                                                         throw new org.apache.axis2.databinding.ADBException("args2 cannot be null!!");
-                                                      
-                                               } else {
-                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs2));
-                                               }
+
+                                          if (local_return==null){
+                                              // write the nil attribute
+                                              
+                                                     writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(local_return);
+                                            
+                                          }
                                     
                                    xmlWriter.writeEndElement();
                              }
                  java.util.ArrayList elementList = new java.util.ArrayList();
                  java.util.ArrayList attribList = new java.util.ArrayList();
 
-                 if (localArgs0Tracker){
-                                      elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
-                                                                      "args0"));
-                                 
-                                elementList.add(
-                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs0));
-                            } if (localArgs1Tracker){
-                                      elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
-                                                                      "args1"));
-                                 
-                                elementList.add(
-                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs1));
-                            } if (localArgs2Tracker){
+                 if (local_returnTracker){
                                       elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
-                                                                      "args2"));
+                                                                      "return"));
                                  
-                                elementList.add(
-                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs2));
-                            }
+                                         elementList.add(local_return==null?null:
+                                         org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
+                                    }
 
                 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
             
         * 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 CreateConfigFile parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
-            CreateConfigFile object =
-                new CreateConfigFile();
+        public static CreateConfigFileResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            CreateConfigFileResponse object =
+                new CreateConfigFileResponse();
 
             int event;
             java.lang.String nillableValue = null;
 
                     java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
                     
-                            if (!"createConfigFile".equals(type)){
+                            if (!"createConfigFileResponse".equals(type)){
                                 //find namespace for the prefix
                                 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
-                                return (CreateConfigFile)ExtensionMapper.getTypeObject(
+                                return (CreateConfigFileResponse)ExtensionMapper.getTypeObject(
                                      nsUri,type,reader);
                               }
                         
                                     
                                     while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
                                 
-                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args0").equals(reader.getName())){
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","return").equals(reader.getName())){
                                 
-                                    nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
-                                    if ("true".equals(nillableValue) || "1".equals(nillableValue)){
-                                        throw new org.apache.axis2.databinding.ADBException("The element: "+"args0" +"  cannot be null");
-                                    }
+                                       nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+                                       if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
                                     
 
                                     java.lang.String content = reader.getElementText();
                                     
-                                              object.setArgs0(
-                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
-                                              
-                                        reader.next();
-                                    
-                              }  // End of if for expected property start element
-                                
-                                    else {
-                                        
-                                               object.setArgs0(java.lang.Long.MIN_VALUE);
+                                              object.set_return(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+                                            
+                                       } else {
                                            
-                                    }
-                                
-                                    
-                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
-                                
-                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args1").equals(reader.getName())){
-                                
-                                    nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
-                                    if ("true".equals(nillableValue) || "1".equals(nillableValue)){
-                                        throw new org.apache.axis2.databinding.ADBException("The element: "+"args1" +"  cannot be null");
-                                    }
-                                    
-
-                                    java.lang.String content = reader.getElementText();
-                                    
-                                              object.setArgs1(
-                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
-                                              
-                                        reader.next();
-                                    
-                              }  // End of if for expected property start element
-                                
-                                    else {
-                                        
-                                               object.setArgs1(java.lang.Long.MIN_VALUE);
                                            
-                                    }
-                                
-                                    
-                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
-                                
-                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args2").equals(reader.getName())){
-                                
-                                    nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
-                                    if ("true".equals(nillableValue) || "1".equals(nillableValue)){
-                                        throw new org.apache.axis2.databinding.ADBException("The element: "+"args2" +"  cannot be null");
-                                    }
-                                    
-
-                                    java.lang.String content = reader.getElementText();
-                                    
-                                              object.setArgs2(
-                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));
-                                              
+                                           reader.getElementText(); // throw away text nodes if any.
+                                       }
+                                      
                                         reader.next();
                                     
                               }  // End of if for expected property start element
                                 
                                     else {
                                         
-                                               object.setArgs2(java.lang.Long.MIN_VALUE);
-                                           
                                     }
                                   
                             while (!reader.isStartElement() && !reader.isEndElement())
         }
            
     
-        public static class CreateConfigFileResponse
+        public static class GetFile
         implements org.apache.axis2.databinding.ADBBean{
         
                 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
                 "http://salome.service.ws_server.splat.org",
-                "createConfigFileResponse",
+                "getFile",
                 "ns2");
 
             
 
                         /**
-                        * field for _return
+                        * field for Args0
                         */
 
                         
-                                    protected java.lang.String local_return ;
+                                    protected java.lang.String localArgs0 ;
                                 
                            /*  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 local_returnTracker = false ;
+                           protected boolean localArgs0Tracker = false ;
 
-                           public boolean is_returnSpecified(){
-                               return local_returnTracker;
+                           public boolean isArgs0Specified(){
+                               return localArgs0Tracker;
                            }
 
                            
                            * Auto generated getter method
                            * @return java.lang.String
                            */
-                           public  java.lang.String get_return(){
-                               return local_return;
+                           public  java.lang.String getArgs0(){
+                               return localArgs0;
                            }
 
                            
                         
                             /**
                                * Auto generated setter method
-                               * @param param _return
+                               * @param param Args0
                                */
-                               public void set_return(java.lang.String param){
-                            local_returnTracker = true;
+                               public void setArgs0(java.lang.String param){
+                            localArgs0Tracker = true;
                                    
-                                            this.local_return=param;
+                                            this.localArgs0=param;
                                     
 
                                }
                    java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://salome.service.ws_server.splat.org");
                    if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
                        writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
-                           namespacePrefix+":createConfigFileResponse",
+                           namespacePrefix+":getFile",
                            xmlWriter);
                    } else {
                        writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
-                           "createConfigFileResponse",
+                           "getFile",
                            xmlWriter);
                    }
 
                
                    }
-                if (local_returnTracker){
+                if (localArgs0Tracker){
                                     namespace = "http://salome.service.ws_server.splat.org";
-                                    writeStartElement(null, namespace, "return", xmlWriter);
+                                    writeStartElement(null, namespace, "args0", xmlWriter);
                              
 
-                                          if (local_return==null){
+                                          if (localArgs0==null){
                                               // write the nil attribute
                                               
                                                      writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
                                           }else{
 
                                         
-                                                   xmlWriter.writeCharacters(local_return);
+                                                   xmlWriter.writeCharacters(localArgs0);
                                             
                                           }
                                     
                  java.util.ArrayList elementList = new java.util.ArrayList();
                  java.util.ArrayList attribList = new java.util.ArrayList();
 
-                 if (local_returnTracker){
+                 if (localArgs0Tracker){
                                       elementList.add(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
-                                                                      "return"));
+                                                                      "args0"));
                                  
-                                         elementList.add(local_return==null?null:
-                                         org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local_return));
+                                         elementList.add(localArgs0==null?null:
+                                         org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArgs0));
                                     }
 
                 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
         * 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 CreateConfigFileResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
-            CreateConfigFileResponse object =
-                new CreateConfigFileResponse();
+        public static GetFile parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            GetFile object =
+                new GetFile();
 
             int event;
             java.lang.String nillableValue = null;
 
                     java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
                     
-                            if (!"createConfigFileResponse".equals(type)){
+                            if (!"getFile".equals(type)){
                                 //find namespace for the prefix
                                 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
-                                return (CreateConfigFileResponse)ExtensionMapper.getTypeObject(
+                                return (GetFile)ExtensionMapper.getTypeObject(
                                      nsUri,type,reader);
                               }
                         
                                     
                                     while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
                                 
-                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","return").equals(reader.getName())){
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org","args0").equals(reader.getName())){
                                 
                                        nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
                                        if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
 
                                     java.lang.String content = reader.getElementText();
                                     
-                                              object.set_return(
+                                              object.setArgs0(
                                                     org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
                                             
                                        } else {
                         }
                     
 
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
             }
         
                                     
                              /* methods to provide back word compatibility */
 
                              
+                                    
+                                        private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
+                                        throws org.apache.axis2.AxisFault{
+
+                                             
+                                                    try{
+
+                                                            org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                                                            emptyEnvelope.getBody().addChild(param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile.MY_QNAME,factory));
+                                                            return emptyEnvelope;
+                                                        } catch(org.apache.axis2.databinding.ADBException e){
+                                                            throw org.apache.axis2.AxisFault.makeFault(e);
+                                                        }
+                                                
+
+                                        }
+                                
+                             
+                             /* methods to provide back word compatibility */
+
+                             
+                                    
+                                        private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
+                                        throws org.apache.axis2.AxisFault{
+
+                                             
+                                                    try{
+
+                                                            org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                                                            emptyEnvelope.getBody().addChild(param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.MY_QNAME,factory));
+                                                            return emptyEnvelope;
+                                                        } catch(org.apache.axis2.databinding.ADBException e){
+                                                            throw org.apache.axis2.AxisFault.makeFault(e);
+                                                        }
+                                                
+
+                                        }
+                                
+                             
+                             /* methods to provide back word compatibility */
+
+                             
 
 
         /**
 
                 }
            
+                if (org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile.class.equals(type)){
+                
+                           return org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.class.equals(type)){
+                
+                           return org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse.class.equals(type)){
+                
+                           return org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
         } catch (java.lang.Exception e) {
         throw org.apache.axis2.AxisFault.makeFault(e);
         }
index b89277b7e98752832a2a54906132c2c6c17df970..8942d635bd09cef645d444893fb6d8dfb64cc97a 100644 (file)
         org.splat.ws_client.service.salome.SimanSalomeServiceStub stub =
                     new org.splat.ws_client.service.salome.SimanSalomeServiceStub();//the default implementation should point to the right endpoint
 
-           org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile4=
+           org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile10=
                                                         (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.class);
-                    // TODO : Fill in the createConfigFile4 here
-           
-           createConfigFile4.setArgs0(1000);
-           createConfigFile4.setArgs1(1001);
-           createConfigFile4.setArgs2(8);
+                    // TODO : Fill in the createConfigFile10 here
                 
                         assertNotNull(stub.createConfigFile(
-                        createConfigFile4));
+                        createConfigFile10));
                   
 
 
          */
         public  void testStartcreateConfigFile() throws java.lang.Exception{
             org.splat.ws_client.service.salome.SimanSalomeServiceStub stub = new org.splat.ws_client.service.salome.SimanSalomeServiceStub();
-             org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile4=
+             org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile10=
                                                         (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.class);
-                    // TODO : Fill in the createConfigFile4 here
-             
-             createConfigFile4.setArgs0(1000);
-             createConfigFile4.setArgs1(1001);
-             createConfigFile4.setArgs2(8);
-             
+                    // TODO : Fill in the createConfigFile10 here
+                
 
                 stub.startcreateConfigFile(
-                         createConfigFile4,
+                         createConfigFile10,
                     new tempCallbackN65548()
                 );
               
         private class tempCallbackN65548  extends org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler{
             public tempCallbackN65548(){ super(null);}
 
-            @Override
-                       public void receiveResultcreateConfigFile(
-                         final org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse result
+            public void receiveResultcreateConfigFile(
+                         org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFileResponse result
+                            ) {
+                
+            }
+
+            public void receiveErrorcreateConfigFile(java.lang.Exception e) {
+                fail();
+            }
+
+        }
+      
+          /**
+          * Auto generated test method
+          */
+          public  void testputFile() throws java.lang.Exception{
+
+          org.splat.ws_client.service.salome.SimanSalomeServiceStub stub =
+          new org.splat.ws_client.service.salome.SimanSalomeServiceStub();//the default implementation should point to the right endpoint
+          org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile putFile12=
+                  (org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile.class);
+                      // TODO : Fill in the putFile12 here
+                  
+
+                  //There is no output to be tested!
+                  stub.putFile(
+                  putFile12);
+
+              
+          }
+      
+        /**
+         * Auto generated test method
+         */
+        public  void testgetFile() throws java.lang.Exception{
+
+        org.splat.ws_client.service.salome.SimanSalomeServiceStub stub =
+                    new org.splat.ws_client.service.salome.SimanSalomeServiceStub();//the default implementation should point to the right endpoint
+
+           org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile13=
+                                                        (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.class);
+                    // TODO : Fill in the getFile13 here
+                
+                        assertNotNull(stub.getFile(
+                        getFile13));
+                  
+
+
+
+        }
+        
+         /**
+         * Auto generated test method
+         */
+        public  void testStartgetFile() throws java.lang.Exception{
+            org.splat.ws_client.service.salome.SimanSalomeServiceStub stub = new org.splat.ws_client.service.salome.SimanSalomeServiceStub();
+             org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile13=
+                                                        (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.class);
+                    // TODO : Fill in the getFile13 here
+                
+
+                stub.startgetFile(
+                         getFile13,
+                    new tempCallbackN65617()
+                );
+              
+
+
+        }
+
+        private class tempCallbackN65617  extends org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler{
+            public tempCallbackN65617(){ super(null);}
+
+            public void receiveResultgetFile(
+                         org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse result
                             ) {
                 
             }
 
-            @Override
-                       public void receiveErrorcreateConfigFile(final java.lang.Exception e) {
+            public void receiveErrorgetFile(java.lang.Exception e) {
                 fail();
             }
 
         }
       
         //Create an ADBBean and provide it as the test object
-        public org.apache.axis2.databinding.ADBBean getTestObject(final java.lang.Class type) throws java.lang.Exception{
+        public org.apache.axis2.databinding.ADBBean getTestObject(java.lang.Class type) throws java.lang.Exception{
            return (org.apache.axis2.databinding.ADBBean) type.newInstance();
         }
 
diff --git a/Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTestDownloadFile.java b/Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTestDownloadFile.java
new file mode 100644 (file)
index 0000000..6561246
--- /dev/null
@@ -0,0 +1,74 @@
+/*****************************************************************************
+ * Company         EURIWARE
+ * Application     SIMAN
+ * File            $Id$ 
+ * Creation date   15.11.2012
+ * @author         Author: Maria KRUCHININA
+ * @version        Revision: 
+ *****************************************************************************/
+
+package org.splat.ws_client.service.salome; 
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.net.MalformedURLException;
+
+import org.apache.axiom.soap.SOAP11Constants;
+import org.apache.axis2.Constants;
+import org.apache.axis2.client.Options;
+
+
+/**
+ * @author Maria KRUCHININA
+ *
+ */
+public class SimanSalomeServiceTestDownloadFile {
+
+       /**
+        * @param args
+        * @throws MalformedURLException 
+        */
+       public static void main(final String[] args) throws Exception {
+               
+               Options options = new Options();
+
+               options.setProperty(Constants.Configuration.ENABLE_MTOM,Constants.VALUE_TRUE);
+               options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS, Constants.VALUE_TRUE);
+               options.setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR, "w:/temp");
+               options.setProperty(Constants.Configuration.FILE_SIZE_THRESHOLD, "4000");
+               
+               // Increase the time out when sending large attachments
+               options.setTimeOutInMilliSeconds(1000000);
+               options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+               
+               
+               org.splat.ws_client.service.salome.SimanSalomeServiceStub stub =
+                new org.splat.ws_client.service.salome.SimanSalomeServiceStub();//the default implementation should point to the right endpoint
+               
+               org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile request = new org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile();
+               
+               request.setArgs0("W:/Eclipse workspace/SIMAN/Repository/vault/SimanSalome/100010018/siman-salome.conf");
+               //request.setArgs0("W:/testvideo/Requiem for a dream.avi");
+               
+               org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse response;
+               
+               response = stub.getFile(request);
+               
+               //File clientFile = new File("W:/client_temp2/Requiem for a dream_out.avi");
+               File clientFile = new File("W:/client_temp2/siman-salome.conf");
+               File clientFilePath = new File("W:/client_temp2");
+               clientFilePath.mkdirs();
+               clientFile.createNewFile();
+               
+               FileOutputStream outputStream = new FileOutputStream(clientFile);
+               
+               response.get_return().writeTo(outputStream);
+               
+               
+               outputStream.flush();
+               outputStream.close();
+               
+               System.out.print("See copied file on : " + clientFile.getPath());
+       }
+
+}
diff --git a/Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTestUploadFile.java b/Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTestUploadFile.java
new file mode 100644 (file)
index 0000000..d770828
--- /dev/null
@@ -0,0 +1,49 @@
+package org.splat.ws_client.service.salome; 
+
+import javax.activation.DataHandler;
+import javax.activation.DataSource;
+import javax.activation.FileDataSource;
+
+import org.apache.axiom.soap.SOAP11Constants;
+import org.apache.axis2.Constants;
+import org.apache.axis2.client.Options;
+
+public class SimanSalomeServiceTestUploadFile {
+
+       /**
+        * @param args
+        */
+       public static void main(final String[] args) throws Exception {
+               // TODO Auto-generated method stub
+
+               Options options = new Options();
+
+               options.setProperty(Constants.Configuration.ENABLE_MTOM,Constants.VALUE_TRUE);
+               options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS, Constants.VALUE_TRUE);
+               options.setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR, "w:/temp");
+               options.setProperty(Constants.Configuration.FILE_SIZE_THRESHOLD, "4000");
+               
+               // Increase the time out when sending large attachments
+               options.setTimeOutInMilliSeconds(1000000);
+               options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
+               
+               org.splat.ws_client.service.salome.SimanSalomeServiceStub stub =
+                new org.splat.ws_client.service.salome.SimanSalomeServiceStub();//the default implementation should point to the right endpoint
+               
+               org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile request = new org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile();
+               
+               String clientFile = "w:/client_temp2/MKA_test.txt";
+               DataSource dataSource = new FileDataSource(clientFile);
+               DataHandler requestDH = new DataHandler(dataSource);
+               
+               String requestFilePath = "W:/Eclipse workspace/SIMAN/Repository/vault/SimanSalome/100010018/MKA_test.txt";
+               
+               request.setArgs0(requestDH);
+               request.setArgs1(requestFilePath);
+               
+               stub.putFile(request);
+                       
+               System.out.print("See file on the server with path : " + requestFilePath);
+       }
+
+}
index 37bfd75983074168fa35d3d4cee6d23208efa385..49a088346815ee7fab00d5fbd1accd0b33d33996 100644 (file)
     <!-- ================================================= -->
     <parameter name="hotdeployment">true</parameter>
     <parameter name="hotupdate">false</parameter>
-    <parameter name="enableMTOM">false</parameter>
+    <parameter name="enableMTOM">true</parameter>
     <parameter name="enableSwA">false</parameter>
 
     <!--Uncomment if you want to enable file caching for attachments -->
-    <!--parameter name="cacheAttachments">true</parameter>
-    <parameter name="attachmentDIR"></parameter>
-    <parameter name="sizeThreshold">4000</parameter-->
+    <parameter name="cacheAttachments">true</parameter>
+    <parameter name="attachmentDIR">w:/temp</parameter>
+    <parameter name="sizeThreshold">4000</parameter>
 
     <parameter name="EnableChildFirstClassLoading">false</parameter>
 
index 0dd106de4dc73f8c3bec5443e3decf142d6a19ab..f1f84569bfd05da21e14adb800d9d46dceb1813d 100644 (file)
 
                <parameter name="ServiceClass">org.splat.ws_server.service.salome.SimanSalomeService
                </parameter>
+               
+               <parameter name="enableMTOM">true
+               </parameter>
+               
 <!--           It is an interface of the SimanSalomeService -->
 
                <parameter name="SpringBeanName">SimanSalomeService</parameter>
index 1e4a0acd0ccb2795ce1cb9dcd31c22d5386ca727..2503fd3f3e68d707f18b5e0de6922e7fb8d8729d 100644 (file)
@@ -17,6 +17,8 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
 
     <bean id="SimanSalomeService" class="org.splat.ws_server.service.salome.SimanSalomeServiceImpl">
         <property name="scenarioService" ref="scenarioService" />
+        <property name="repositoryService" ref="repositoryService" />
+        <property name="projectSettingsService" ref="projectSettings" />
     </bean>
 
 </beans>
index bd0db4eb592b9a6b1c14c3fafbac7224120657e1..abacaec3e3ff4bcbd96babf05be5d6a7edc1634f 100644 (file)
@@ -6,7 +6,7 @@
 <!-- 1. Database physical location
      -->
     <database>
-        <repository disk="D:/DevTools/SIMER/REPOSITORY_HOME_dev" />
+        <repository disk="W:/Eclipse workspace/SIMAN/Repository" />
     </database>
 
 
             <classification context="object,part,geometry"/>
             <flow contents="geometry,memorandum,minutes" result="geometry"/>
             <storage path="2.Geometry"/>
+            <module name="GEOM"/>
            </step>
         <step name="meshing">
             <classification context="model,element,shape,order"/>
             <flow contents="model,memorandum,minutes" result="model"/>
             <storage path="3.Mesh"/>
-        </step>
-        <step name="preprocessing">
-            <classification context="analysis"/>
-            <flow contents="loads,script,minutes" result="loads"/>
-            <storage path="4.Analysis"/>
+            <module name="SMESH"/>
         </step>
         <step name="solving">
-            <classification context="platform,module,component"/>
+            <classification context="loads,script,platform,module,component"/>
             <flow contents="log,results,minutes" result="results"/>
             <storage path="5.Result"/>
+            <module name="CASTEM"/>
         </step>
         <step name="postprocessing">
             <flow contents="memorandum,minutes"/>
         <default        review="manager"            />
     </validations>
 
+<!-- 3. Check-in check-out information
+     Defines the way documents involved in the check-in check-out operations must be processed.
+     -->
+    <mappings>
+        <document type="geometry">
+            <source format="step" process="file-download"/>   <!-- Geometry created from STEP import        -->
+            <source format="py"   process="file-download"/>   <!-- Geometry created from Python execution   -->
+            <source format="xml"  process="ocaf-import"/>     <!-- Geometry created interactively           -->
+            <export format="brep"/>                           <!-- Result Shape                             -->
+        </document>
+        <document type="model">
+            <source format="py"   process="file-download"/>   <!-- Mesh created from Python execution       -->
+            <source format="xml"  process="ocaf-import"/>     <!-- Mesh including input parameters          -->
+            <export format="med"/>                            <!-- Result mesh without input parameters     -->
+        </document>
+        <document type="loads">
+            <source format="py"   process="file-download"/>   <!-- Input data created from Python execution -->
+            <source format="c3m"  process="c3m-import"/>      <!-- Input data created interactively         -->
+        </document>
+        <document type="results">
+            <source format="med"  process="med-import"/>      <!-- Calculation results source file          -->
+        </document>
+    </mappings>
 </project-structure>
\ No newline at end of file
index 62d91e2e9231e5557e6b4fd8bc4a97cd9084c2c8..b83d7ff28f373d7d01369de3435bb25262a69e5c 100644 (file)
@@ -1,5 +1,9 @@
 package org.splat.ws_server.service.salome;
 
+import java.io.IOException;
+
+import javax.activation.DataHandler;
+
 
 public interface SimanSalomeService {
        
@@ -10,6 +14,21 @@ public interface SimanSalomeService {
      * @return the URL location of the siman-salome.conf
      */
 
-       public String createConfigFile(final Long studyId, final Long scenarioId,
+       String createConfigFile(final Long studyId, final Long scenarioId,
                        final Long userId);
+       
+       /**
+        * Get the server file on client.
+        * @param fileURL - the file URL
+        * @return the data handler
+        */
+       DataHandler getFile(final String fileURL);
+       
+       /**
+        * Put the file from client to server.
+        * @param dataHandler the data handler
+        * @param vaultURL the target URL in vault
+        * @throws IOException input/output error
+        **/
+       void /*DataHandler*/ putFile(final DataHandler dataHandler, final String vaultURL);
 }
index 54402452732c7beacfaa4e007f32a660194260a9..db1497f76819a770133b8cd748fac8aeb139882c 100644 (file)
@@ -2,103 +2,273 @@ package org.splat.ws_server.service.salome;
 
 import java.io.BufferedWriter;
 import java.io.File;
+import java.io.FileOutputStream;
 import java.io.FileWriter;
 import java.io.IOException;
+import java.sql.SQLException;
 import java.util.Iterator;
 import java.util.List;
 
+import javax.activation.DataHandler;
+import javax.activation.FileDataSource;
+
+import org.apache.log4j.Logger;
 import org.splat.service.ScenarioService;
 import org.splat.service.dto.DocumentDTO;
 import org.splat.service.dto.FileDTO;
 import org.splat.service.dto.StepDTO;
+import org.splat.service.technical.ProjectSettingsService;
+import org.splat.service.technical.RepositoryService;
 
 public class SimanSalomeServiceImpl implements SimanSalomeService {
+       
+       /**
+        * The logger for the service.
+        */
+       protected final static Logger LOG = Logger
+                       .getLogger(SimanSalomeServiceImpl.class);
 
+       /**
+        * The Scenario Service.
+        */
        private ScenarioService _scenarioService;
+       
+       /**
+        * The Repository Service.
+        */
+       private RepositoryService _repositoryService;
+       
+       /**
+        * The Project Settings Service.
+        */
+       private ProjectSettingsService _projectSettingsService;
 
+       /**
+        * 
+        * {@inheritDoc}
+        * @see org.splat.ws_server.service.salome.SimanSalomeService#createConfigFile(java.lang.Long, java.lang.Long, java.lang.Long)
+        */
        @Override
        public String createConfigFile(final Long studyId, final Long scenarioId,
                        final Long userId) {
+                       
+                       try {
+                               //_projectSettingsService.configure("WebContent/conf/som.xml");
+                               _projectSettingsService.configure("W:/Eclipse workspace/SIMAN/SIMAN_SRC/Workspace/Siman-WS/WebContent/conf/som.xml");
+                               //ClassLoader loader = ClassLoader.getSystemClassLoader();
+                               //URL pathToSOM = loader.getResource("WebContent/conf/som.xml");
+                               
+                               /*ClassLoader cl = Thread.currentThread().getContextClassLoader();
+                               URL testURL = ClassLoader.getSystemResource("conf/som.xml");
+                               URL test2URL = ClassLoader.getSystemResource("som.xml");
+                               String          path    = System.getProperty("user.dir");
+                               
+                               File textfile = new File("w:/testfile.txt");
+                               
+                                FileWriter fstream;
+                               try {
+                                     fstream = new FileWriter(textfile);
+                                     BufferedWriter out = new BufferedWriter(fstream);  
+                                     if (testURL != null)
+                                         out.write("testURL " + testURL.getPath());
+                                     else
+                                         out.write("testURL == null\n");
+                                     
+                                     if (test2URL != null)
+                                         out.write("test2URL " + test2URL.getPath());
+                                     else
+                                         out.write("test2URL == null\n");
+                                     
+                                     out.write("path = " + path);
+                                     
+                                     out.close();
+                                   } catch (IOException e) {
+                                         // TODO Auto-generated catch block
+                                         e.printStackTrace();
+                                   }*/
+
+                               //_projectSettingsService.configure(ClassLoader.getSystemResource("som.xml").getPath());
+                               //_projectSettingsService.configure(pathToSOM.getPath());
+                       } catch (IOException ioException) {
+                               LOG.debug("Sorry, IOException is throws", ioException);
+                       } catch (SQLException sqlException) {
+                               LOG.debug("Sorry, impossible to populate the database", sqlException);
+                       }       
+
+                       List<StepDTO> listSteps = _scenarioService.getScenarioInfo(scenarioId);
+                       
+                       File configFilePath = new File(_repositoryService.getRepositoryVaultPath() + "/SimanSalome/" + studyId.toString() + scenarioId.toString() + userId.toString());
+                       configFilePath.mkdirs();
+                       File configFile = new File(configFilePath + "/siman-salome.conf");
+                       
+                       //build the result file.
+               FileWriter fstream;
+               try {
+                     fstream = new FileWriter(configFile);
+                     BufferedWriter out = new BufferedWriter(fstream);  
+                     
+                     out.write("Study ID : " + studyId + "\n");
+                     out.write("Scenario ID : " + scenarioId + "\n");
+                     out.write("User ID : " + userId + "\n");
+                     out.write("\n");
+                     
+                     Iterator<StepDTO> stepIter = listSteps.iterator();
+                     Iterator<DocumentDTO> docIter;
+                     Iterator<FileDTO> fileIter;
+                     
+                     StepDTO stepValue;
+                     DocumentDTO docValue;
+                     FileDTO fileValue;
+                     char fileState;
+                     
+                     for ( ; stepIter.hasNext(); ) {
+                         stepValue = stepIter.next();
+                         out.write("Activity : " + stepValue.getKey() + "\n");
+                         out.write("Activity ID : " + stepValue.getNumber() + "\n");
+                         out.write("SALOME module : " + stepValue.getModule() + "\n");
+                         
+                         docIter = stepValue.getDocs().iterator();
+                         
+                         for ( ; docIter.hasNext(); ) {
+                                 docValue = docIter.next();
+                                 out.write("    Document : " + docValue.getTitle() + "\n");
+                                 out.write("    Document ID: " + docValue.getId() + "\n");
+                                 
+                                 fileIter = docValue.getFiles().iterator();
+                                 
+                                 for ( ; fileIter.hasNext(); ) {
+                                         fileValue = fileIter.next();
+                                         if (fileValue.isResult() == false) {
+                                                 out.write("        Source file : " + fileValue.getPath() + "\n");
+                                         } else {
+                                                 out.write("        Result file : " + fileValue.getPath() + "\n");
+                                         }
+                                         
+                                         out.write("            Automatic processing : " + fileValue.getProcessing() + "\n");
+                                         fileState = fileValue.getState();
+                                         if ((fileState == 'Y') || (fileState == 'N')) {
+                                                 out.write("            State : file-actual\n");
+                                         } else if (fileState == 'O') {
+                                                 out.write("            State : file-outdated\n");
+                                         }
+                                 }
+                         }
+                         
+                         out.write("\n");
+                     }
+                     
+                     out.close();
+                   } catch (IOException e) {
+                         // TODO Auto-generated catch block
+                         e.printStackTrace();
+                   }
+               
+               return configFile.getAbsolutePath();
+       }
+       
 
-               List<StepDTO> listSteps = _scenarioService.getScenarioInfo(scenarioId);
+       /**
+        * 
+        * {@inheritDoc}
+        * @see org.splat.ws_server.service.salome.SimanSalomeService#getFile(java.lang.String)
+        */
+       @Override
+       public DataHandler getFile(final String fileURL) {
+               FileDataSource dataSource = new FileDataSource(fileURL);
+               DataHandler fileDataHandler = new DataHandler(dataSource);
+               return fileDataHandler;
+       }
+       
+       /**
+        * 
+        * {@inheritDoc}
+        * @see org.splat.ws_server.service.salome.SimanSalomeService#putFile(javax.activation.DataHandler, java.io.File)
+        */
+       @Override
+       public void /*DataHandler*/ putFile(final DataHandler dataHandler, final String vaultURL) {
+               
+               File vaultURLFile = new File(vaultURL);
+               File serverFilePath = vaultURLFile.getParentFile();
+               serverFilePath.mkdirs();
+               
+               try {
+                       vaultURLFile.createNewFile();
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       
+               try {
+                       
+                       FileOutputStream outputStream = new FileOutputStream(vaultURLFile);
+                       dataHandler.writeTo(outputStream);
                
-               File configFile = new File("W:\\siman-salome.conf");
+                       outputStream.flush();
+                       outputStream.close();
                
-               //build the result file.
-        FileWriter fstream;
-        try {
-              fstream = new FileWriter(configFile);
-              BufferedWriter out = new BufferedWriter(fstream);  
-              
-              out.write("Study ID : " + studyId + "\n");
-              out.write("Scenario ID : " + scenarioId + "\n");
-              out.write("User ID : " + userId + "\n");
-              out.write("\n");
-              
-              Iterator<StepDTO> stepIter = listSteps.iterator();
-              Iterator<DocumentDTO> docIter;
-              Iterator<FileDTO> fileIter;
-              
-              StepDTO stepValue;
-              DocumentDTO docValue;
-              FileDTO fileValue;
-              char fileState;
-              
-              out.write("listSteps size = " + listSteps.size() + "\n");
-              
-              for ( ; stepIter.hasNext(); ) {
-                 stepValue = stepIter.next();
-                 out.write("Activity : " + stepValue.getKey() + "\n");
-                 out.write("Activity ID : " + stepValue.getNumber() + "\n");
-                 out.write("SALOME module : " + stepValue.getModule() + "\n");
-                 
-                 docIter = stepValue.getDocs().iterator();
-                 
-                 out.write("listDocs size = " + stepValue.getDocs().size() + "\n");
-                 
-                 for ( ; docIter.hasNext(); ) {
-                         docValue = docIter.next();
-                         out.write("    Document : " + docValue.getTitle() + "\n");
-                         out.write("    Document ID: " + docValue.getId() + "\n");
-                         
-                         fileIter = docValue.getFiles().iterator();
-                         
-                         out.write("listFiles size = " + docValue.getFiles().size() + "\n");
-                         
-                         for ( ; fileIter.hasNext(); ) {
-                                 fileValue = fileIter.next();
-                                 if (fileValue.isResult() == false) {
-                                         out.write("        Source file : " + fileValue.getPath() + "\n");
-                                 } else {
-                                         out.write("        Result file : " + fileValue.getPath() + "\n");
-                                 }
-                                 
-                                 out.write("            Automatic processing : " + fileValue.getProcessing() + "\n");
-                                 fileState = fileValue.getState();
-                                 if ((fileState == 'Y') || (fileState == 'N')) {
-                                         out.write("            State : file-actual\n");
-                                 } else if (fileState == 'O') {
-                                         out.write("            State : file-outdated\n");
-                                 }
-                         }
-                 }
-              }
-              
-              
-              out.close();
-        } catch (IOException e) {
-              // TODO Auto-generated catch block
-              e.printStackTrace();
-        }
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+               
+               /*FileDataSource fileDataSource = new FileDataSource(vaultURL);
+               DataHandler fileDataHandler = new DataHandler(fileDataSource);
+               return fileDataHandler;*/               
                
-               return configFile.getAbsolutePath();
        }
 
+       /**
+        * Get the scenarioService.
+        * @return the scenarioService
+        */
        public ScenarioService getScenarioService() {
                return _scenarioService;
        }
 
+       /**
+        * Set the scenarioService.
+        * @param scenarioService the scenarioService to set
+        */
        public void setScenarioService(final ScenarioService scenarioService) {
                _scenarioService = scenarioService;
        }
+
+
+       /**
+        * Get the repositoryService.
+        * @return the repositoryService
+        */
+       public RepositoryService getRepositoryService() {
+               return _repositoryService;
+       }
+
+
+       /**
+        * Set the repositoryService.
+        * @param repositoryService the repositoryService to set
+        */
+       public void setRepositoryService(final RepositoryService repositoryService) {
+               _repositoryService = repositoryService;
+       }
+
+
+       /**
+        * Get the projectSettingsService.
+        * @return the projectSettingsService
+        */
+       public ProjectSettingsService getProjectSettingsService() {
+               return _projectSettingsService;
+       }
+
+
+       /**
+        * Set the projectSettingsService.
+        * @param projectSettingsService the projectSettingsService to set
+        */
+       public void setProjectSettingsService(
+                       final ProjectSettingsService projectSettingsService) {
+               _projectSettingsService = projectSettingsService;
+       }
+       
+       
 }
index 0dd106de4dc73f8c3bec5443e3decf142d6a19ab..f1f84569bfd05da21e14adb800d9d46dceb1813d 100644 (file)
 
                <parameter name="ServiceClass">org.splat.ws_server.service.salome.SimanSalomeService
                </parameter>
+               
+               <parameter name="enableMTOM">true
+               </parameter>
+               
 <!--           It is an interface of the SimanSalomeService -->
 
                <parameter name="SpringBeanName">SimanSalomeService</parameter>
index 1e4a0acd0ccb2795ce1cb9dcd31c22d5386ca727..2503fd3f3e68d707f18b5e0de6922e7fb8d8729d 100644 (file)
@@ -17,6 +17,8 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd">
 
     <bean id="SimanSalomeService" class="org.splat.ws_server.service.salome.SimanSalomeServiceImpl">
         <property name="scenarioService" ref="scenarioService" />
+        <property name="repositoryService" ref="repositoryService" />
+        <property name="projectSettingsService" ref="projectSettings" />
     </bean>
 
 </beans>