I am using salesforce partner WSDL with soap api to upload data on salesforce and store it on SF object
I have two dependent objects who have one lookup field for child object 

When I am storing parent object I want to store the dependent child object data.

How can I achieve this using SOAP api.

Thanks in advance..