Thursday, December 29, 2011

Web Service pre-configuration through python


Configuration of SOAPpy, fpconst and pyXml along with the python 2.6.0
--------------------------------------------------------------------------------------------
Packages & Versions
--------------------------------------------------------------------------------------------
1- Python 2.6.2
2- fpconst 0.7.2
3- PyXML 0.8.4
4- SOAPpy 0.12.0


--------------------------------------------------------------------------------------------
Installation Instruction
--------------------------------------------------------------------------------------------
1- Install Python 2.6.2
                1.1 Set the environment variable for class path : Ex: classpath="c:\python26"

2- Install fpconst
                2.1 Extract the zip file fpconst-0.7.2.tar.gz
                2.2 cd fpconst-0.7.2
                2.3 execute command: python setup.py install

3- Install PyXML
                3.1 Extract the zip file PyXML-0.8.4.tar.gz
                3.2 cd PyXML-0.8.4
                3.3 execute command: python setup.py install (causes some error) then the last command need to fire
                3.4 execute command: python setup.py install --force --skip-build (Showing that script/lib can not be created but its ok, Now verify the version)

4- Install SOAPpy
                4.1 Extract the zip file SOAPpy-0.12.0.zip.
                4.2 cd SOAPpy-0.12.0
                4.3 Go to the SOAPpy-0.12.0\SOAPpy directory
                4.4 Edit the Client.py file
                                4.4.1 find "from __future__ import nested_scopes" line
                                4.4.2 cut it and paste at the first line of file
                4.5 Edit the Server.py file
                                4.5.1 find "from __future__ import nested_scopes" line
                                4.5.2 cut it and paste at the first line of file
                4.6 Edit the Types.py file
                                4.6.1 find "from __future__ import nested_scopes" line
                                4.6.2 cut it and paste at the first line of file
                4.7 execute command: python setup.py install

Once finished, do verify all these installations.
 
---------------------------------------
Verifications
---------------------------------------
Open python ( type : python on command line).
1) Verify PyXml

                >>> import xml
                >>> xml.__version__
                '0.8.4'

2) Verify fpConstants
      >>> import fpconst
      >>> fpconst.__version__
     '0.7.2'

3) Verify SOAPpy
       >>> import SOAPpy
       >>> SOAPpy.__version__
       '0.12.0'

1 comment:

  1. Goood pushkar ....it will help to many python users...wish u very happy new year ...

    ReplyDelete