Swift & Soap Authentication

I am a newbie and looking for Soap authentication example with Swift. None of the examples available on the internet work properly with Swift and xcode keeps showing lot of errors and after fixing them, the program fails to run. Need proper guidance as to how i can achieve making an authentication program work in swift 3.