Client: RESTful Python: http://localhost:3004/
Servicii disponibile:
Serv0:	 ping: Python RESTful ServiceRy.py: fmb(192.168.2.100:3004), datetime.datetime(2010, 7, 25, 20, 0, 38, 382000)

Evaluari de expresii:

Serv0:	toFpp:
0="0"-"5"
1="7"-"8"
1="3"*1
0=0+1
2="5"/"2"
0=0^2
0
#0|#5|-#3|#7|#8|-*+#5|#2|/^
(-5+3*(7-8))^(5/2)
Serv0:	subtract(0,5)=-5
Serv0:	subtract(7,8)=-1
Serv0:	multiply(3,-1)=-3
Serv0:	add(-5,-3)=-8
Serv0:	divide(5,2)=2
Serv0:	intPow(-8,2)=64
Rezultat 64


Serv0:	toFpp:
())5(6+9)
ERROR paranteze incorecte!


Serv0:	toFpp:
---
ERROR operatori fara operanzi


Serv0:	toFpp:
5()))
ERROR paranteze incorecte!


Serv0:	toFpp:
"5"
#5|
+5
Rezultat +5


Serv0:	toFpp:
0="0"-"5"
0
#0|#5|-
-5
Serv0:	subtract(0,5)=-5
Rezultat -5


Serv0:	toFpp:
-5++7
ERROR operatori fara operanzi


Serv0:	toFpp:
0="0"-"5"
0=0+"7"
0
#0|#5|-#7|+
-5+7
Serv0:	subtract(0,5)=-5
Serv0:	add(-5,7)=2
Rezultat 2


Serv0:	toFpp:
0="0"-"55"
1="7"-"8"
1="3"*1
0=0+1
2="5"/"2"
0=0^2
0
#0|#55|-#3|#7|#8|-*+#5|#2|/^
(-5 5+  3*(7-  8)) ^(5/  2)
Serv0:	subtract(0,55)=-55
Serv0:	subtract(7,8)=-1
Serv0:	multiply(3,-1)=-3
Serv0:	add(-55,-3)=-58
Serv0:	divide(5,2)=2
Serv0:	intPow(-58,2)=3364
Rezultat 3364


Serv0:	toFpp:
0="0"-"55"
1="7"-"8"
1="3"*1
0=0+1
2="5"%"2"
0=0^2
0
#0|#55|-#3|#7|#8|-*+#5|#2|%^
(-5 5+  3*(7-  8)) ^(5 %  2)
Serv0:	subtract(0,55)=-55
Serv0:	subtract(7,8)=-1
Serv0:	multiply(3,-1)=-3
Serv0:	add(-55,-3)=-58
Serv0:	mod(5,2)=1
Serv0:	intPow(-58,1)=-58
Rezultat -58


Apeluri punctuale de metode de la servicii aleatoare:
Serv0:	ping: Python RESTful ServiceRy.py: fmb(192.168.2.100:3004), datetime.datetime(2010, 7, 25, 20, 1, 10, 738000)
Serv0:	add: 	7 + 2 = 9
Serv0:	subtract: 	7 - 2 = 5
Serv0:	multiply: 	7 * 2 = 14
Serv0:	intPow: 	7 ^ 2 = 49
Serv0:	mod: 	7 % 2 = 1
Serv0:	divide: 	7 / 0 = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
    <title>500 Internal Server Error</title>
    <style type="text/css">
    #powered_by {
        margin-top: 20px;
        border-top: 2px solid black;
        font-style: italic;
    }

    #traceback {
        color: red;
    }
    </style>
</head>
    <body>
        <h2>500 Internal Server Error</h2>
        <p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p>
        <pre id="traceback">Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\cherrypy\_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "C:\Python26\lib\site-packages\cherrypy\_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "D:\Florin\Carti\SWMPA\Cap7Aplicatii\EvaluareExpresii\Python\ServiceRy.py", line 25, in divide
    return `self.bib.divide(int(args[0]), int(args[1]))`
  File "D:\Florin\Carti\SWMPA\Cap7Aplicatii\EvaluareExpresii\Python\Bib.py", line 24, in divide
    raise Exception("divide: Impartire la zero")
Exception: divide: Impartire la zero
</pre>
    <div id="powered_by">
    <span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.1.2</a></span>
    </div>
    </body>
</html>

Serv0:	mod: 	7 / 0 = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
    <title>500 Internal Server Error</title>
    <style type="text/css">
    #powered_by {
        margin-top: 20px;
        border-top: 2px solid black;
        font-style: italic;
    }

    #traceback {
        color: red;
    }
    </style>
</head>
    <body>
        <h2>500 Internal Server Error</h2>
        <p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p>
        <pre id="traceback">Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\cherrypy\_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "C:\Python26\lib\site-packages\cherrypy\_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "D:\Florin\Carti\SWMPA\Cap7Aplicatii\EvaluareExpresii\Python\ServiceRy.py", line 29, in mod
    return `self.bib.mod(int(args[0]), int(args[1]))`
  File "D:\Florin\Carti\SWMPA\Cap7Aplicatii\EvaluareExpresii\Python\Bib.py", line 29, in mod
    raise Exception("mod: Impartire la zero")
Exception: mod: Impartire la zero
</pre>
    <div id="powered_by">
    <span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.1.2</a></span>
    </div>
    </body>
</html>

Serv0:	ping: Python RESTful ServiceRy.py: fmb(192.168.2.100:3004), datetime.datetime(2010, 7, 25, 20, 1, 18, 972000)

STOP client.
