Using TN to process InboundOutbound message

Hi , all

I am using wm.tn:receive to receive an SOAP message,
then mapping to special document type,
I also created my process rule to process inbound SOAP message,
at the same time, I have to response outbound SOAP message(dynamic)
to client who send inbound message,
I don’t know how to response message within process rule.
can anyone help me? thanks