Wiring DIN connector with 3 wire DC solenoid valve
-The wiring of the solenoid is the same no matter the valve configuration. (2, 3, 5 port etc). 

-All solenoid valve coils are non-polarized. If you put a voltage across No1/No2 in any polarity it will activate the coil. The connector is designed to be flipped 180 degrees if needed for physical placement reasons, so everything in the connector is non-polarized. Hence the bipolar LED and an a varistor for surge protection instead of a diode. 
So just connect +ve/-ve on No1 or No2, it doesn't matter.

-The GND pin is PE GND not -ve(GND). It's for AC earth connection on an AC solenoid coil and not used for DC.

-As for how the A/P/R ports on the valve side behave when the coil is activated, that's a different story and you'll have to look at the valve diagram to work out what does what.