Forum OpenACS Development: modifying service contracts?

Collapse
Posted by Mohan Pakkurti on
I have a question about service contracts. What is the method to change a ac_sc_msg_type that has been already defined in the system.

Example, I like to change...

   foo := acs_sc_msg_type.new (
            msg_type_name => 'foo_name',
            msg_type_spec => 'foo_var:string'
        );
to
   foo := acs_sc_msg_type.new (
              msg_type_name => 'foo_name',
              msg_type_spec => 'foo_var1:string,foo_var2:string'
          );
Is there a function that can be used to do this easily?

Thanks for any tips.

Collapse
Posted by Bart Teeuwisse on
Mohan,

there is no function to change the ac_sc_msg_type in a running system. However, you could drop all implementations of the service contract to then drop the service contract it self. After dropping the service contract you can recreate the service contract with the correct message type. Dropping and recreating the service contract its implementations is done through their sql drop and create scripts.

/Bart