It's no rocket science at all,
unless you are trying to do it on a SPARC machine
(Windows XP may be a tricky part, then :-)
First, install Windows. Then, Solaris on a remaining part of the disk.
At next reboot, you will be prompted which OS to boot, and
Solaris will be booted by default after timeout.