Changeset 1664


Ignore:
Timestamp:
02/11/06 17:48:01 (13 years ago)
Author:
pjkersha
Message:

Modified version working for sig generation with WebSphere?. Verify of
WebSphere? incoming message still to resolve.

Location:
TI12-security/trunk/python/Tests/Echo
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/Echo/EchoClient.py

    r1634 r1664  
    3030        if isEchoRequest(sw): 
    3131            if self.sigHandler: 
    32                 self.sigHandler.sign(sw) 
     32                pass#self.sigHandler.sign(sw) 
    3333        else:     
    3434            if self.encrHandler: 
     
    4848 
    4949 
    50 priKeyPwd = open('../tmp2').read().strip() 
    51 certFilePath = '../Junk-cert.pem' 
    52 priKeyFilePath = '../Junk-key.pem' 
     50#priKeyPwd = open('../tmp2').read().strip() 
     51#certFilePath = '../Junk-cert.pem' 
     52#priKeyFilePath = '../Junk-key.pem' 
     53priKeyPwd = None 
     54certFilePath = '../webSphereTestcert.pem' 
     55priKeyFilePath = '../webSphereTestkey.pem' 
    5356 
    5457# Signature handler object is passed to binding 
     
    6568         
    6669# Instantiate a client proxy object, then call it 
    67 echoSrv = EchoServerSOAP("http://localhost:7100/EchoServIn", 
     70echoSrv = EchoServerSOAP("http://192.100.78.234:9081/EchoServiceWeb/services/EchoServer", 
    6871                         sig_handler=wsseHandler, 
    6972                         tracefile=sys.stdout) 
    7073try: 
    7174    import pdb;pdb.set_trace() 
    72     print echoSrv.Echo("Test INHERIT String") 
     75    print echoSrv.Echo("Test String") 
    7376    #print echoSrv.EchoEncr("Test Secret") 
    7477except Exception, e: 
    75     print "Failed to echo (Inherited): ", e 
     78    print "Failed to echo: ", e 
    7679 
  • TI12-security/trunk/python/Tests/Echo/EchoServer_client.py

    r1634 r1664  
    1515# Locator 
    1616class EchoServerLocator: 
    17     EchoServer_address = "http://localhost:7100" 
     17    EchoServer_address = "http://localhost:9081/EchoServiceWeb/services/EchoServer" 
    1818    def getEchoServerAddress(self): 
    1919        return EchoServerLocator.EchoServer_address 
     
    3030        # no ws-addressing 
    3131 
    32     # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6e7ca0c> 
     32    # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6e8fe6c> 
    3333    def Echo(self, EchoIn): 
    3434 
     
    4444        return EchoResult 
    4545 
    46     # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6e7cf6c> 
     46    # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6e9466c> 
    4747    def EchoEncr(self, EchoIn): 
    4848 
  • TI12-security/trunk/python/Tests/Echo/EchoServer_interface.py

    r1634 r1664  
    1414<definitions targetNamespace=\"urn:ZSI:examples\" xmlns=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:tns=\"urn:ZSI:examples\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> 
    1515  <types> 
    16   <xsd:schema elementFormDefault=\"qualified\" targetNamespace=\"urn:ZSI:examples\"> 
     16    <xsd:schema elementFormDefault=\"qualified\" targetNamespace=\"urn:ZSI:examples\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> 
    1717      <xsd:element name=\"Echo\"> 
    1818        <xsd:complexType> 
     
    4545  </xsd:schema> 
    4646  </types> 
    47  
    48   <message name=\"EchoRequest\"> 
    49     <part element=\"tns:Echo\" name=\"parameters\"/> 
     47  <message name=\"EchoEncrRequest\"> 
     48    <part element=\"tns:EchoEncr\" name=\"parameters\"/> 
    5049  </message> 
    5150  <message name=\"EchoResponse\"> 
    5251    <part element=\"tns:EchoResponse\" name=\"parameters\"/> 
    5352  </message> 
    54   <message name=\"EchoEncrRequest\"> 
    55     <part element=\"tns:EchoEncr\" name=\"parameters\"/> 
     53  <message name=\"EchoRequest\"> 
     54    <part element=\"tns:Echo\" name=\"parameters\"/> 
    5655  </message> 
    5756  <message name=\"EchoEncrResponse\"> 
    5857    <part element=\"tns:EchoEncrResponse\" name=\"parameters\"/> 
    5958  </message> 
    60  
    6159  <portType name=\"EchoServer\"> 
    6260    <operation name=\"Echo\"> 
     
    6967    </operation> 
    7068  </portType> 
    71  
    7269  <binding name=\"EchoServer\" type=\"tns:EchoServer\"> 
    7370    <soap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\"/> 
    7471    <operation name=\"Echo\"> 
    7572      <soap:operation soapAction=\"Echo\"/> 
    76         <input> 
    77           <soap:body use=\"literal\"/>  
    78         </input> 
    79         <output> 
    80           <soap:body use=\"literal\"/>  
    81         </output> 
     73      <input> 
     74        <soap:body use=\"literal\"/> 
     75      </input> 
     76      <output> 
     77        <soap:body use=\"literal\"/> 
     78      </output> 
    8279    </operation> 
    8380    <operation name=\"EchoEncr\"> 
    8481      <soap:operation soapAction=\"EchoEncr\"/> 
    85         <input> 
    86           <soap:body use=\"literal\"/>  
    87         </input> 
    88         <output> 
    89           <soap:body use=\"literal\"/>  
    90         </output> 
     82      <input> 
     83        <soap:body use=\"literal\"/> 
     84      </input> 
     85      <output> 
     86        <soap:body use=\"literal\"/> 
     87      </output> 
    9188    </operation> 
    9289  </binding> 
    93  
    9490  <service name=\"EchoServer\"> 
    9591    <port binding=\"tns:EchoServer\" name=\"EchoServer\"> 
    96       <soap:address location=\"http://localhost:7100\"/> 
     92      <soap:address location=\"http://localhost:9080/EchoServiceWeb/services/EchoServer\"/> 
    9793    </port> 
    9894  </service> 
    99  
    10095</definitions>""" 
    10196 
    102     def __init__(self, post='', **kw): 
     97    def __init__(self, post='/EchoServiceWeb/services/EchoServer', **kw): 
    10398        ServiceSOAPBinding.__init__(self, post) 
    10499        if kw.has_key('impl'): 
Note: See TracChangeset for help on using the changeset viewer.