]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
checkIn method of the WebService is added
authormka <mka@opencascade.com>
Tue, 20 Nov 2012 13:25:22 +0000 (13:25 +0000)
committermka <mka@opencascade.com>
Tue, 20 Nov 2012 13:25:22 +0000 (13:25 +0000)
Workspace/Siman-Common/src/org/splat/service/dto/DocumentDTO.java
Workspace/Siman-Common/src/org/splat/service/dto/FileDTO.java
Workspace/Siman-Common/src/org/splat/service/dto/StepDTO.java
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/SimanSalomeServiceTestCheckIn.java [new file with mode: 0644]
Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeService.java
Workspace/Siman-WS/src/org/splat/ws_server/service/salome/SimanSalomeServiceImpl.java

index c7fbda68aeedcd3b28c728e899d11f839e5ac6ff..1f3b3f3c3f43926b6173ece198106bc78592fa66 100644 (file)
@@ -42,6 +42,12 @@ public class DocumentDTO {
                _id = index;
                _title = title;
        }
+       
+       /**
+        * Constructor with initialization.
+        */
+       public DocumentDTO() {
+       }
 
        /**
         * Get the files.
@@ -109,6 +115,14 @@ public class DocumentDTO {
                _files.add(fileDTO);
                return fileDTO;
        }
+       
+       /**
+        * Add a new file DTO.
+        * @param file the file to be added.
+        **/
+       public void addFile(final FileDTO file) {
+               _files.add(file);
+       }
 
        /**
         * {@inheritDoc}
index b7ba42f1487b6b5dc6c22a4e59c5b2cbaf3e7493..e7e5c1410102e73f8893ae82c50208d3a8c222bb 100644 (file)
@@ -51,6 +51,16 @@ public class FileDTO {
                _processing = processing;
                _isResult = isResult;
        }
+       
+       /**
+        * Constructor with initialization.
+        * 
+        * @param relativePath
+        *            relative file path
+        */
+       public FileDTO(final String relativePath) {
+               _path = relativePath;
+       }
 
        /**
         * Get the isResult.
index dfead5f41727afb3ac2227ebce6a2a99f184fe9c..0f1326af67e4762683ffd312326ec3c0c8e869bd 100644 (file)
@@ -67,6 +67,16 @@ public class StepDTO {
                _docs.add(doc);
                return doc;
        }
+       
+       /**
+        * Add a document DTO to the step DTO.
+        * 
+        * @param document
+        *            the document to be added
+        */
+       public void addDoc(final DocumentDTO document) {
+               _docs.add(document);
+       }
 
        /**
         * Get the key.
index 433d2232fefd549bced645dbdccedb2ce5633894..474f278c874858a6c674e00a15d5c88a92d692c0 100644 (file)
                     </xs:sequence>
                 </xs:complexType>
             </xs:element>
+            <xs:element name="checkIn">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="args0" nillable="true" type="xs:string"/>
+                        <xs:element minOccurs="0" name="args1" type="xs:long"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="checkInResponse">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
         </xs:schema>
     </wsdl:types>
     <wsdl:message name="getFileRequest">
     <wsdl:message name="getFileResponse">
         <wsdl:part name="parameters" element="ns:getFileResponse"/>
     </wsdl:message>
+    <wsdl:message name="checkInRequest">
+        <wsdl:part name="parameters" element="ns:checkIn"/>
+    </wsdl:message>
+    <wsdl:message name="checkInResponse">
+        <wsdl:part name="parameters" element="ns:checkInResponse"/>
+    </wsdl:message>
     <wsdl:message name="createConfigFileRequest">
         <wsdl:part name="parameters" element="ns:createConfigFile"/>
     </wsdl:message>
             <wsdl:input message="ns:getFileRequest" wsaw:Action="urn:getFile"/>
             <wsdl:output message="ns:getFileResponse" wsaw:Action="urn:getFileResponse"/>
         </wsdl:operation>
+        <wsdl:operation name="checkIn">
+            <wsdl:input message="ns:checkInRequest" wsaw:Action="urn:checkIn"/>
+            <wsdl:output message="ns:checkInResponse" wsaw:Action="urn:checkInResponse"/>
+        </wsdl:operation>
         <wsdl:operation name="createConfigFile">
             <wsdl:input message="ns:createConfigFileRequest" wsaw:Action="urn:createConfigFile"/>
             <wsdl:output message="ns:createConfigFileResponse" wsaw:Action="urn:createConfigFileResponse"/>
                 <soap:body use="literal"/>
             </wsdl:output>
         </wsdl:operation>
+        <wsdl:operation name="checkIn">
+            <soap:operation soapAction="urn:checkIn" 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>
                 <soap12:body use="literal"/>
             </wsdl:output>
         </wsdl:operation>
+        <wsdl:operation name="checkIn">
+            <soap12:operation soapAction="urn:checkIn" 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>
                 <mime:content type="application/xml" part="parameters"/>
             </wsdl:output>
         </wsdl:operation>
+        <wsdl:operation name="checkIn">
+            <http:operation location="checkIn"/>
+            <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>
index 2e9d7c892182e619e1227d47086ff0473223b23a..ab49b9dcc482c238975ffbee0bdd93bef634299b 100644 (file)
             public void receiveErrorputFile(java.lang.Exception e) {
             }
                 
+           /**
+            * auto generated Axis2 call back method for checkIn method
+            * override this method for handling normal response from checkIn operation
+            */
+           public void receiveResultcheckIn(
+                    org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse result
+                        ) {
+           }
+
+          /**
+           * auto generated Axis2 Error handler
+           * override this method for handling error response from checkIn operation
+           */
+            public void receiveErrorcheckIn(java.lang.Exception e) {
+            }
+                
            /**
             * auto generated Axis2 call back method for getFile method
             * override this method for handling normal response from getFile operation
index 19c39f3b0db19289e5147750ceb88c47c50b2a3c..b0701aeaa1d41bea370469e63599627b9449a7ef 100644 (file)
@@ -44,7 +44,7 @@
         //creating the operations
         org.apache.axis2.description.AxisOperation __operation;
 
-        _operations = new org.apache.axis2.description.AxisOperation[3];
+        _operations = new org.apache.axis2.description.AxisOperation[4];
         
                    __operation = new org.apache.axis2.description.OutInAxisOperation();
                 
@@ -73,7 +73,7 @@
                    __operation = new org.apache.axis2.description.OutInAxisOperation();
                 
 
-            __operation.setName(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org", "getFile"));
+            __operation.setName(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org", "checkIn"));
            _service.addOperation(__operation);
            
 
             _operations[2]=__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[3]=__operation;
+            
+        
         }
 
     //populates the faults
                     _callbackReceiver);
         }
 
+           //execute the operation client
+           _operationClient.execute(false);
+
+                    }
+                
+                    /**
+                     * Auto generated method signature
+                     * 
+                     * @see org.splat.ws_client.service.salome.SimanSalomeService#checkIn
+                     * @param checkIn4
+                    
+                     */
+
+                    
+
+                            public  org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse checkIn(
+
+                            org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn checkIn4)
+                        
+
+                    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:checkIn");
+              _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
+
+              
+              
+                  addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
+              
+
+              // create a message context
+              _messageContext = new org.apache.axis2.context.MessageContext();
+
+              
+
+              // create SOAP envelope with that payload
+              org.apache.axiom.soap.SOAPEnvelope env = null;
+                    
+                                                    
+                                                    env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
+                                                    checkIn4,
+                                                    optimizeContent(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                    "checkIn")), new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                    "checkIn"));
+                                                
+        //adding SOAP soap_headers
+         _serviceClient.addHeadersToEnvelope(env);
+        // set the message context with that soap envelope
+        _messageContext.setEnvelope(env);
+
+        // add the message contxt to the operation client
+        _operationClient.addMessageContext(_messageContext);
+
+        //execute the operation client
+        _operationClient.execute(true);
+
+         
+               org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
+                                           org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
+                org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
+                
+                
+                                java.lang.Object object = fromOM(
+                                             _returnEnv.getBody().getFirstElement() ,
+                                             org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse.class,
+                                              getEnvelopeNamespaces(_returnEnv));
+
+                               
+                                        return (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse)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(),"checkIn"))){
+                    //make the fault by reflection
+                    try{
+                        java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"checkIn"));
+                        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(),"checkIn"));
+                        java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
+                        java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
+                        java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
+                                   new java.lang.Class[]{messageClass});
+                        m.invoke(ex,new java.lang.Object[]{messageObject});
+                        
+
+                        throw new java.rmi.RemoteException(ex.getMessage(), ex);
+                    }catch(java.lang.ClassCastException e){
+                       // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    } catch (java.lang.ClassNotFoundException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    }catch (java.lang.NoSuchMethodException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    } catch (java.lang.reflect.InvocationTargetException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    }  catch (java.lang.IllegalAccessException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    }   catch (java.lang.InstantiationException e) {
+                        // we cannot intantiate the class - throw the original Axis fault
+                        throw f;
+                    }
+                }else{
+                    throw f;
+                }
+            }else{
+                throw f;
+            }
+            } 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#startcheckIn
+                    * @param checkIn4
+                
+                */
+                public  void startcheckIn(
+
+                 org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn checkIn4,
+
+                  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:checkIn");
+             _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()),
+                                                    checkIn4,
+                                                    optimizeContent(new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                    "checkIn")), new javax.xml.namespace.QName("http://salome.service.ws_server.splat.org",
+                                                    "checkIn"));
+                                                
+        // 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.CheckInResponse.class,
+                                                                         getEnvelopeNamespaces(resultEnv));
+                                        callback.receiveResultcheckIn(
+                                        (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse)object);
+                                        
+                            } catch (org.apache.axis2.AxisFault e) {
+                                callback.receiveErrorcheckIn(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(),"checkIn"))){
+                                                                                       //make the fault by reflection
+                                                                                       try{
+                                                                                                       java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"checkIn"));
+                                                                                                       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(),"checkIn"));
+                                                                                                               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.receiveErrorcheckIn(new java.rmi.RemoteException(ex.getMessage(), ex));
+                                            } catch(java.lang.ClassCastException e){
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorcheckIn(f);
+                                            } catch (java.lang.ClassNotFoundException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorcheckIn(f);
+                                            } catch (java.lang.NoSuchMethodException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorcheckIn(f);
+                                            } catch (java.lang.reflect.InvocationTargetException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorcheckIn(f);
+                                            } catch (java.lang.IllegalAccessException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorcheckIn(f);
+                                            } catch (java.lang.InstantiationException e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorcheckIn(f);
+                                            } catch (org.apache.axis2.AxisFault e) {
+                                                // we cannot intantiate the class - throw the original Axis fault
+                                                callback.receiveErrorcheckIn(f);
+                                            }
+                                                                           } else {
+                                                                                   callback.receiveErrorcheckIn(f);
+                                                                           }
+                                                                       } else {
+                                                                           callback.receiveErrorcheckIn(f);
+                                                                       }
+                                                               } else {
+                                                                   callback.receiveErrorcheckIn(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.receiveErrorcheckIn(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);
 
                      * Auto generated method signature
                      * 
                      * @see org.splat.ws_client.service.salome.SimanSalomeService#getFile
-                     * @param getFile4
+                     * @param getFile6
                     
                      */
 
 
                             public  org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse getFile(
 
-                            org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile4)
+                            org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile6)
                         
 
                     throws java.rmi.RemoteException
                     {
               org.apache.axis2.context.MessageContext _messageContext = null;
               try{
-               org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
+               org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());
               _operationClient.getOptions().setAction("urn:getFile");
               _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
 
                     
                                                     
                                                     env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
-                                                    getFile4,
+                                                    getFile6,
                                                     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"));
                 * Auto generated method signature for Asynchronous Invocations
                 * 
                 * @see org.splat.ws_client.service.salome.SimanSalomeService#startgetFile
-                    * @param getFile4
+                    * @param getFile6
                 
                 */
                 public  void startgetFile(
 
-                 org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile4,
+                 org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile6,
 
                   final org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler callback)
 
                 throws java.rmi.RemoteException{
 
-              org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
+              org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());
              _operationClient.getOptions().setAction("urn:getFile");
              _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
 
                                     
                                                     
                                                     env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
-                                                    getFile4,
+                                                    getFile6,
                                                     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"));
                         
 
           org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
-        if ( _operations[2].getMessageReceiver()==null &&  _operationClient.getOptions().isUseSeparateListener()) {
+        if ( _operations[3].getMessageReceiver()==null &&  _operationClient.getOptions().isUseSeparateListener()) {
            _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
-          _operations[2].setMessageReceiver(
+          _operations[3].setMessageReceiver(
                     _callbackReceiver);
         }
 
                 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
                 "http://salome.service.ws_server.splat.org",
                 "putFile",
-                "ns2");
+                "ns1");
 
             
 
 
         private static java.lang.String generatePrefix(java.lang.String namespace) {
             if(namespace.equals("http://salome.service.ws_server.splat.org")){
-                return "ns2";
+                return "ns1";
             }
             return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
         }
                 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
                 "http://salome.service.ws_server.splat.org",
                 "getFileResponse",
-                "ns2");
+                "ns1");
 
             
 
 
         private static java.lang.String generatePrefix(java.lang.String namespace) {
             if(namespace.equals("http://salome.service.ws_server.splat.org")){
-                return "ns2";
+                return "ns1";
             }
             return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
         }
                 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
                 "http://salome.service.ws_server.splat.org",
                 "createConfigFile",
-                "ns2");
+                "ns1");
 
             
 
 
         private static java.lang.String generatePrefix(java.lang.String namespace) {
             if(namespace.equals("http://salome.service.ws_server.splat.org")){
-                return "ns2";
+                return "ns1";
             }
             return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
         }
                 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
                 "http://salome.service.ws_server.splat.org",
                 "putFileResponse",
-                "ns2");
+                "ns1");
 
             
 
 
         private static java.lang.String generatePrefix(java.lang.String namespace) {
             if(namespace.equals("http://salome.service.ws_server.splat.org")){
-                return "ns2";
+                return "ns1";
             }
             return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
         }
         }
            
     
-        public static class CreateConfigFileResponse
+        public static class CheckIn
         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");
+                "checkIn",
+                "ns1");
 
             
 
                         /**
-                        * 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 getArgs0(){
+                               return localArgs0;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param Args0
+                               */
+                               public void setArgs0(java.lang.String param){
+                            localArgs0Tracker = true;
+                                   
+                                            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;
+                                    
+
+                               }
+                            
+
+     
+     
+        /**
+        *
+        * @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+":checkIn",
+                           xmlWriter);
+                   } else {
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           "checkIn",
+                           xmlWriter);
+                   }
+
+               
+                   }
+                if (localArgs0Tracker){
+                                    namespace = "http://salome.service.ws_server.splat.org";
+                                    writeStartElement(null, namespace, "args0", xmlWriter);
+                             
+
+                                          if (localArgs0==null){
+                                              // write the nil attribute
+                                              
+                                                     writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(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();
+                             }
+                    xmlWriter.writeEndElement();
+               
+
+        }
+
+        private static java.lang.String generatePrefix(java.lang.String namespace) {
+            if(namespace.equals("http://salome.service.ws_server.splat.org")){
+                return "ns1";
+            }
+            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==null?null:
+                                         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));
+                            }
+
+                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 CheckIn parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            CheckIn object =
+                new CheckIn();
+
+            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 (!"checkIn".equals(type)){
+                                //find namespace for the prefix
+                                java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+                                return (CheckIn)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)){
+                                    
+
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setArgs0(
+                                                    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() && 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())
+                                // 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",
+                "ns1");
+
+            
+
+                        /**
+                        * 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, "return", xmlWriter);
+                             
+
+                                          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();
+                             }
+                    xmlWriter.writeEndElement();
+               
+
+        }
+
+        private static java.lang.String generatePrefix(java.lang.String namespace) {
+            if(namespace.equals("http://salome.service.ws_server.splat.org")){
+                return "ns1";
+            }
+            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==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());
+            
+            
+
+        }
+
+  
+
+     /**
+      *  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 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 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 (!"createConfigFileResponse".equals(type)){
+                                //find namespace for the prefix
+                                java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+                                return (CreateConfigFileResponse)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)){
+                                    
+
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.set_return(
+                                                    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 CheckInResponse
+        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",
+                "checkInResponse",
+                "ns1");
+
+            
+
+                        /**
+                        * 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;
+                           }
 
                            
 
                    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+":checkInResponse",
                            xmlWriter);
                    } else {
                        writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
-                           "createConfigFileResponse",
+                           "checkInResponse",
                            xmlWriter);
                    }
 
 
         private static java.lang.String generatePrefix(java.lang.String namespace) {
             if(namespace.equals("http://salome.service.ws_server.splat.org")){
-                return "ns2";
+                return "ns1";
             }
             return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
         }
         * 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 CheckInResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            CheckInResponse object =
+                new CheckInResponse();
 
             int event;
             java.lang.String nillableValue = null;
 
                     java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
                     
-                            if (!"createConfigFileResponse".equals(type)){
+                            if (!"checkInResponse".equals(type)){
                                 //find namespace for the prefix
                                 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
-                                return (CreateConfigFileResponse)ExtensionMapper.getTypeObject(
+                                return (CheckInResponse)ExtensionMapper.getTypeObject(
                                      nsUri,type,reader);
                               }
                         
                 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
                 "http://salome.service.ws_server.splat.org",
                 "getFile",
-                "ns2");
+                "ns1");
 
             
 
 
         private static java.lang.String generatePrefix(java.lang.String namespace) {
             if(namespace.equals("http://salome.service.ws_server.splat.org")){
-                return "ns2";
+                return "ns1";
             }
             return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
         }
                         }
                     
 
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn.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.CheckInResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse.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)
 
                              
                                     
+                                        private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn 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.CheckIn.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{
 
                            return org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFileResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
                     
 
+                }
+           
+                if (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn.class.equals(type)){
+                
+                           return org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse.class.equals(type)){
+                
+                           return org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
                 }
            
                 if (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.class.equals(type)){
index fb95334c88c3e7403206f351058ffe40d0d0ec3c..8d3707e5b1c84f4353db7ee3dcea557d500f8269 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 createConfigFile12=
+           org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile16=
                                                         (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.class);
-                    // TODO : Fill in the createConfigFile12 here
+                    // TODO : Fill in the createConfigFile16 here
                 
                         assertNotNull(stub.createConfigFile(
-                        createConfigFile12));
+                        createConfigFile16));
                   
 
 
          */
         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 createConfigFile12=
+             org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile createConfigFile16=
                                                         (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CreateConfigFile.class);
-                    // TODO : Fill in the createConfigFile12 here
+                    // TODO : Fill in the createConfigFile16 here
                 
 
                 stub.startcreateConfigFile(
-                         createConfigFile12,
+                         createConfigFile16,
                     new tempCallbackN65548()
                 );
               
         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 putFile14=
+           org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile putFile18=
                                                         (org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile.class);
-                    // TODO : Fill in the putFile14 here
+                    // TODO : Fill in the putFile18 here
                 
                         assertNotNull(stub.putFile(
-                        putFile14));
+                        putFile18));
                   
 
 
          */
         public  void testStartputFile() 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.PutFile putFile14=
+             org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile putFile18=
                                                         (org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.PutFile.class);
-                    // TODO : Fill in the putFile14 here
+                    // TODO : Fill in the putFile18 here
                 
 
                 stub.startputFile(
-                         putFile14,
+                         putFile18,
                     new tempCallbackN65589()
                 );
               
 
         }
       
+        /**
+         * Auto generated test method
+         */
+        public  void testcheckIn() 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.CheckIn checkIn20=
+                                                        (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn.class);
+                    // TODO : Fill in the checkIn20 here
+                
+                        assertNotNull(stub.checkIn(
+                        checkIn20));
+                  
+
+
+
+        }
+        
+         /**
+         * Auto generated test method
+         */
+        public  void testStartcheckIn() 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.CheckIn checkIn20=
+                                                        (org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn.class);
+                    // TODO : Fill in the checkIn20 here
+                
+
+                stub.startcheckIn(
+                         checkIn20,
+                    new tempCallbackN65630()
+                );
+              
+
+
+        }
+
+        private class tempCallbackN65630  extends org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler{
+            public tempCallbackN65630(){ super(null);}
+
+            public void receiveResultcheckIn(
+                         org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse result
+                            ) {
+                
+            }
+
+            public void receiveErrorcheckIn(java.lang.Exception e) {
+                fail();
+            }
+
+        }
+      
         /**
          * Auto generated test method
          */
         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 getFile16=
+           org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile22=
                                                         (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.class);
-                    // TODO : Fill in the getFile16 here
+                    // TODO : Fill in the getFile22 here
                 
                         assertNotNull(stub.getFile(
-                        getFile16));
+                        getFile22));
                   
 
 
          */
         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 getFile16=
+             org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile getFile22=
                                                         (org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile)getTestObject(org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFile.class);
-                    // TODO : Fill in the getFile16 here
+                    // TODO : Fill in the getFile22 here
                 
 
                 stub.startgetFile(
-                         getFile16,
-                    new tempCallbackN65630()
+                         getFile22,
+                    new tempCallbackN65671()
                 );
               
 
 
         }
 
-        private class tempCallbackN65630  extends org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler{
-            public tempCallbackN65630(){ super(null);}
+        private class tempCallbackN65671  extends org.splat.ws_client.service.salome.SimanSalomeServiceCallbackHandler{
+            public tempCallbackN65671(){ super(null);}
 
             public void receiveResultgetFile(
                          org.splat.ws_client.service.salome.SimanSalomeServiceStub.GetFileResponse result
diff --git a/Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTestCheckIn.java b/Workspace/Siman-Stub/test/org/splat/ws_client/service/salome/SimanSalomeServiceTestCheckIn.java
new file mode 100644 (file)
index 0000000..b4080a2
--- /dev/null
@@ -0,0 +1,39 @@
+/*****************************************************************************
+ * Company         EURIWARE
+ * Application     SIMAN
+ * File            $Id$ 
+ * Creation date   19.11.2012
+ * @author         Author: Maria KRUCHININA
+ * @version        Revision: 
+ *****************************************************************************/
+
+package org.splat.ws_client.service.salome; 
+
+/**
+ * @author Maria KRUCHININA
+ *
+ */
+public class SimanSalomeServiceTestCheckIn {
+
+       /**
+        * @param args
+        */
+       public static void main(final String[] args) throws Exception{
+               
+               org.splat.ws_client.service.salome.SimanSalomeServiceStub stub = new org.splat.ws_client.service.salome.SimanSalomeServiceStub();
+
+               // Creating the request
+               org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn request = new org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckIn();
+               
+               request.setArgs0("W:\\Eclipse workspace\\SIMAN\\Repository\\downloads\\8\\salome-siman.conf");
+               request.setArgs1(8);
+               
+               // Invoking the service
+               org.splat.ws_client.service.salome.SimanSalomeServiceStub.CheckInResponse response;
+               response = stub.checkIn(request);
+               
+               System.out.print("Response : " + response.get_return());
+
+       }
+
+}
index ec54456b9d47ce6fdc8aeb501549dcea52c01840..de4d7c2c90aebc23ac39b9e647954fc9127fca88 100644 (file)
@@ -2,7 +2,11 @@ package org.splat.ws_server.service.salome;
 
 import javax.activation.DataHandler;
 
-
+/**
+ * The SimanSalome WebService.
+ * @author Maria KRUCHININA
+ *
+ */
 public interface SimanSalomeService {
        
        /** Create the siman-salome.conf file.
@@ -30,4 +34,11 @@ public interface SimanSalomeService {
         * @return the result URL in vault
         **/
        String /*DataHandler*/ putFile(final DataHandler dataHandler, final String fileName, final Long userId);
+       
+       /**
+        * Check in operation.
+        * @param fileURL - the salome-siman.conf file URL
+        * @param userId the user ID
+        **/
+       String checkIn(final String fileURL, final Long userId);
 }
index a258fe8c27117bccc352ef9dce9d77307b4514f1..1668069e1a6953c46167c0d9f5c3b05b01dc2753 100644 (file)
@@ -2,12 +2,17 @@ package org.splat.ws_server.service.salome;
 
 import java.io.BufferedWriter;
 import java.io.File;
+import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.FileWriter;
 import java.io.IOException;
 import java.sql.SQLException;
+import java.util.ArrayList;
+import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Map;
+import java.util.Scanner;
 
 import javax.activation.DataHandler;
 import javax.activation.FileDataSource;
@@ -228,6 +233,75 @@ public class SimanSalomeServiceImpl implements SimanSalomeService {
                return fileDataHandler;*/               
                
        }
+       
+       
+       /**
+        * 
+        * {@inheritDoc}
+        * @see org.splat.ws_server.service.salome.SimanSalomeService#checkIn()
+        */
+       @Override
+       public String checkIn(final String fileURL, final Long userId) {
+                               
+               File configFile = new File(fileURL);
+               
+               //parse the config file and set properties to the DTO.  
+               
+               Map<Integer, StepDTO> numberStepMap = new HashMap<Integer, StepDTO>();
+               FileDTO file;
+               DocumentDTO document;
+               StepDTO step;
+               long ScenarioId = 0;
+
+               try {
+                       Scanner input = new Scanner(configFile);
+                       
+                       while(input.hasNext()) {
+                               
+                           String nextLine = input.nextLine();
+                           String[] tokens = nextLine.split(",");
+                           int activityNumber = Integer.valueOf(tokens[2]);
+                           ScenarioId = Long.valueOf(tokens[0]);
+                           
+                           if (numberStepMap.containsKey(activityNumber)) {
+                               step = numberStepMap.get(activityNumber);
+                               
+                               file = new FileDTO(tokens[4]);   
+                                   document = new DocumentDTO();
+                                   document.addFile(file);
+                                   document.setId(Long.valueOf(tokens[3]));
+                                   step.addDoc(document);
+                               
+                           } else {
+                           
+                                   file = new FileDTO(tokens[4]);       
+                                   document = new DocumentDTO();
+                                   document.addFile(file);
+                                   document.setId(Long.valueOf(tokens[3]));
+                                   step = new StepDTO();
+                                   step.addDoc(document);
+                                   step.setNumber(Integer.valueOf(tokens[2]));
+                                   
+                                   numberStepMap.put(activityNumber, step);
+                           }
+                       }
+               
+                       input.close();
+                       
+                       List<StepDTO> listSteps = new ArrayList<StepDTO>(numberStepMap.values());
+               
+                       _scenarioService.checkin(ScenarioId, userId, listSteps);
+                       
+                       numberStepMap.clear();
+                       
+                       return "SUCCESS";
+                       
+               } catch (FileNotFoundException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+                       return "ERROR";
+               }
+       }
 
        /**
         * Get the scenarioService.