I cant find the vlan-membership command on my 3700 layer 3 switch, i've searched google on whether the command has upgraded to a new syntax to no avail, i'm using GNS3 and the IOS is c3725-adventerprisek9-mz.124-25d.bin
Now I got your problem. Layer 3 switch has routed ports require ip address and can't be added in vlan.
if you want to add ports into vlan then it should be swtiched port not a routed port. to make routed port as switch port use "switchport" command under interface and use switchport acess vlan to add a port in vlan.
Further more it can communicate with VLAN1 and VLAN2 through the SVI interfaces of the VLANs (int vlan1 and int vlan2).