  We introduce the simplest model to describe parametric interactions in a
quadratically nonlinear optical medium with the fundamental harmonic containing
two components with (slightly) different carrier frequencies [which is a direct
analog of wavelength-division multiplexed (WDM) models, well known in media
with cubic nonlinearity]. The model takes a closed form with three different
second-harmonic components, and it is formulated in the spatial domain. We
demonstrate that the model supports both polychromatic solitons (PCSs), with
all the components present in them, and two types of mutually orthogonal simple
solitons, both types being stable in a broad parametric region. An essential
peculiarity of PCS is that its power is much smaller than that of a simple
(usual) soliton (taken at the same values of control parameters), which may be
an advantage for experimental generation of PCSs. Collisions between the
orthogonal simple solitons are simulated in detail, leading to the conclusion
that the collisions are strongly inelastic, converting the simple solitons into
polychromatic ones, and generating one or two additional PCSs. A collision
velocity at which the inelastic effects are strongest is identified, and it is
demonstrated that the collision may be used as a basis to design a simple
all-optical XOR logic gate.
