| Trees | Indices | Help |
|
|---|
|
|
1 # This program is free software; you can redistribute it and/or modify
2 # it under the terms of the (LGPL) GNU Lesser General Public License as
3 # published by the Free Software Foundation; either version 3 of the
4 # License, or (at your option) any later version.
5 #
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU Library Lesser General Public License for more details at
10 # ( http://www.gnu.org/licenses/lgpl.html ).
11 #
12 # You should have received a copy of the GNU Lesser General Public License
13 # along with this program; if not, write to the Free Software
14 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 # written by: Jeff Ortel ( jortel@redhat.com )
16
17 import sys
18 sys.path.append('../')
19
20 import logging
21 import traceback as tb
22 import urllib2
23 import suds.metrics as metrics
24 import traceback as tb
25 from tests import *
26 from suds import WebFault
27 from suds.client import Client
28
29 errors = 0
30
31 setup_logging()
32
33 #logging.getLogger('suds.client').setLevel(logging.DEBUG)
34
36 print '\n________________________________________________________________\n'
37 print 'Test @ ( %s )' % url
38
39 try:
40 url = 'http://localhost:9090/jasperserver-pro/services/repository?wsdl'
41 start(url)
42 client = Client(url, username='jeff', password='ortel')
43 print client
44 print client.service.list('')
45 except WebFault, f:
46 errors += 1
47 print f
48 print f.fault
49 except Exception, e:
50 errors += 1
51 print e
52 tb.print_exc()
53
54 print '\nFinished: errors = %d' % errors
55
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Jun 20 03:54:31 2014 | http://epydoc.sourceforge.net |