TCL Script for base64 encoding – Need Help

Clovertech Forums Read Only Archives Cloverleaf Tcl Library TCL Script for base64 encoding – Need Help

  • Creator
    Topic
  • #55830
    vishal degweker
    Participant

      Not sure what i am doing wrong here. Getting error “Unable to handle request without a valid action parameter. Please supply a valid soap action”

      Script i am using:

      proc tps_abc_soap_message { args } {

         set module “tps_abc_soap_message”

         package require base64

         keylget args MODE mode

         set dispList {}

         switch -exact — $mode {

             start {}

             run {

                 keylget args MSGID mh

                 set msg [msgget $mh]

                 set Message [base64::encode $msg]

                 msgset $mh [subst {xmlns:tem=”http://tempuri.org/”>xyzxyz>

                 lappend dispList “CONTINUE $mh”

             }

             time {}

             shutdown {}

             default {}

         }

         return $dispList

      }

      ****************************

      However this works in SOAP UI:

      SOAP UI (WORKING):

      http://www.w3.org/2003/05/soap-envelope” xmlns:tem=”http://tempuri.org/“>

       

       

           

             

              xyz

             

              xyz

             

             

           

       

    Viewing 0 reply threads
    • Author
      Replies
      • #86637
        David Barr
        Participant

          It doesn’t look like the request that your script is generating matches the working example (missing Envelope, Header, etc.). You could trying putting “msgdump $mh”

      Viewing 0 reply threads
      • The forum ‘Tcl Library’ is closed to new topics and replies.