How to pass parameters name and value to SOAP calls?

I have a WSDL file ,which has ‘n’ number of SOAP methods.I need to pass username & password parameter names and values to the call?

Basically i want to get set the parameters(name&value) first and then send the request ,and get the response in result for validation.

For instance i have a SOAP call which generates AUTHKEY ,which will be passed to all the other methods as a part of authentication.To get a AUTHKEY ,i need to set 2 parameters(Username & Password) first and pass the values.

Can you please share some sample code to set these 2 parameter names and values .


Thanks in advance.