Soybean is able to get air N2 through the symbiotic relationship with the bacteria of the genus Rhizobium.
The bacteria use the plant photoassimilates, while the soybean uses the N fixed by bacteria for proteins synthesis. The bacteria fixes the N2 and converts it to NH4+ which is then used by the plant, which releases the photoassimilates.