#! /usr/bin/perl use strict; use warnings; use SOAP::Lite +trace => [ transport => sub { print $_[0]->as_string } ]; my $soap= SOAP::Lite -> uri("http://hsc.project.com/services") ->proxy("http://192.168.60.1:8080/HSC-Authnz-1.0mock/authnz?wsdl") ; print "\n===============================================\n"; print "\n\n resultat : ", $soap -> encryptToken("toto") -> result; print "\n===============================================\n"; print "\n\n resultat : ", $soap ->decryptToken("toto") -> result; print "\n===============================================\n"; #### POST http://192.168.60.1:8080/HSC-Authnz-1.0mock/authnz?wsdl HTTP/1.1 Accept: text/xml Accept: multipart/* Content-Length: 533 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://hsc.project.com/services#encryptToken" toto HTTP/1.1 200 OK Connection: close Date: Tue, 04 Feb 2014 09:31:09 GMT Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Client-Date: Mon, 03 Feb 2014 23:41:12 GMT Client-Peer: 192.168.60.1:8080 Client-Response-Num: 1 Client-Transfer-Encoding: chunked 06abCfRTNhjytthjsfdudfzkj7856sdhgghsjkjk99jhsjdhnbnsdbvsnbd99nsdnsdsndbns== resultat : 06abCfRTNhjytthjsfdudfzkj7856sdhgghsjkjk99jhsjdhnbnsdbvsnbd99nsdnsdsndbns== =============================================== POST http://192.168.60.1:8080/HSC-Authnz-1.0mock/authnz?wsdl HTTP/1.1 Accept: text/xml Accept: multipart/* Content-Length: 533 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://hsc.project.com/services#decryptToken" toto HTTP/1.1 200 OK Connection: close Date: Tue, 04 Feb 2014 09:31:09 GMT Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Client-Date: Mon, 03 Feb 2014 23:41:12 GMT Client-Peer: 192.168.60.1:8080 Client-Response-Num: 1 Client-Transfer-Encoding: chunked {10203040-0001-0001-0001-000000000020};user20;AFR;1391509869590;1391506269590; Unresolved prefix 'S' for attribute 'S:Envelope' {10203040-0001-0001-0001-000000000020};user20;AFR;1391509869590;1391506269590; <