package Ġorg . kub inity . soap . client . soap Ċ Ċ import Ġjavax . xml . soap . SOAP Message Ċ Ċ class ĠSo ap Client ( private Ġval Ġso ap Connection : ĠSo ap Connection , Ġprivate Ġval Ġcredentials : ĠSo ap Credentials ) Ġ{ ĊĠĠĠ Ġfun Ġcall ( soap Message : ĠSOAP Message ): ĠSOAP Message Ġ{ ĊĠĠĠĠĠĠĠ Ġ// ĠAdd Ġheaders ĊĠĠĠĠĠĠĠ Ġso ap Message . mime Headers . add Header (" Authorization ", Ġ" Basic Ġ${ credentials . get Basic Auth () }") ĊĠĠĠĠĠĠĠ Ġso ap Message . mime Headers . add Header (" Content - type ", Ġ" text / xml ") ĊĊĠĠĠĠĠĠĠ Ġ// ĠSend Ġthe Ġmessage ĊĠĠĠĠĠĠĠ Ġreturn Ġso ap Connection . call ( soap Message ) ĊĠĠĠ Ġ} Ċ } Ċ