use SOAP::Lite; my $s = SOAP::Lite -> uri('http://www.arkbluecross.com/WebServices/EncryptionService') ->proxy('https://secure.arkansasbluecross.com/WebServices/EncryptionService.asmx') -> on_action(sub{sprintf '%s/%s', @_ }); my $custID = SOAP::Data->name('CustID' => "$cust_id")->type('string')->uri('http://www.arkbluecross.com/WebServices/EncryptionService'); my $data = SOAP::Data->name('EncryptedData' => "$es")->type('string')->uri('http://www.arkbluecross.com/WebServices/EncryptionService'); $result = $s->Decrypt($custID, $data)->result;