wsimport.exeを使用してsoapクライアントのクラスを生成しました。
私のリクエストは次のようになります
POST /posaservice/servicemanager.asmx HTTP/1.1
Host: ****
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.pininteract.com/BalanceInquiry"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<AuthenticationHeader xmlns="http://www.pininteract.com">
<userId>VALUE</userId>
<password>VALUE</password>
</AuthenticationHeader>
</soap:Header>
<soap:Body>
<BalanceInquiry xmlns="http://www.pininteract.com" />
</soap:Body>
</soap:Envelope>
しかし、認証ヘッダー部分にパラメーターを渡す方法がわかりません。現在、私のコードは次のようになっています
val client = new ServiceManager().getServiceManagerSoap()
var res = client.balanceInquiry()
println(res)
とりわけAuthenticationHeaderクラスを生成していますが、その使用方法がわかりません。