Hi timd
By default everythings you want to do is possible on the EX4200.
L3 routing is done and activated by default (it's a L3 switch , that to say a router and not a firewall!)
You will have to do a configuration like this one:
Assuming that the ip default gateway on your SSG is 10.0.0.2
set interfaces ge-0/0/23 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/23 unit 0 family ethernet-switching vlan members toto
set interfaces ge-0/0/23 unit 0 family ethernet-switching vlan members titi
set interfaces vlan unit 1 family inet address 10.0.0.1/24
set interfaces vlan unit 2 family inet address 20.0.0.1/24
set routing-options static route 0.0.0.0/0 next-hop 10.0.0.2
set vlans titi vlan-id 20
set vlans titi l3-interface vlan.2
set vlans toto vlan-id 10
set vlans toto l3-interface vlan.1
You can read some examples in this document also:
http://junos.juniper.net/content/Resources/!Rebranded_Resources/Deploying%20EX-series%20Switches%20in%20Branch%20Offices.pdf
If you have a drawing of your test-bed that would be simplier to help you , but I think you've got here a good view of a simple config.
HTH
Alain