Ignore:
Timestamp:
31/08/06 16:59:57 (13 years ago)
Author:
pjkersha
Message:

Working version with signature and validation across a SOAP interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/xmlsec/WS-Security/wsClient.py

    r1465 r1469  
    11#!/usr/bin/env python 
     2 
     3"""WS-Security test client 
     4 
     5NERC Data Grid Project 
     6 
     7P J Kershaw 01/09/06 
     8 
     9Copyright (C) 2006 CCLRC & NERC 
     10 
     11This software may be distributed under the terms of the Q Public License, 
     12version 1.0 or later. 
     13""" 
     14 
     15reposID = '$Id$' 
    216 
    317import sys, socket 
     
    2640     
    2741    try: 
    28         txResp = binding.Send(None,  
     42        binding.Send(None,  
    2943                 'echo',  
    3044                 echoRequest, 
    3145                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/") 
    3246     
    33         rxResp = binding.Receive(echoResponseWrapper(),  
     47        response = binding.Receive(echoResponseWrapper(),  
    3448                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/") 
    3549 
     
    3852        sys.exit(1) 
    3953         
    40     if not isinstance(rxResp, echoResponse) and \ 
    41        not issubclass(echoResponse, rxResp.__class__): 
    42         print >>sys.stderr, "%s incorrect response type" % rxResp.__class__ 
     54    if not isinstance(response, echoResponse) and \ 
     55       not issubclass(echoResponse, response.__class__): 
     56        print >>sys.stderr, "%s incorrect response type" % response.__class__ 
    4357        sys.exit(1) 
    4458 
    45     print 'Response: %s' % rxResp._message 
     59    print 'Response: %s' % response._message 
    4660 
    4761 
Note: See TracChangeset for help on using the changeset viewer.