作者:黛萊美文婷 | 来源:互联网 | 2023-08-20 14:04
ImtryingtosendsoaprequestwithbasicauthenticationwithsavongemMysoapserverissetupwi
I'm trying to send soap request with basic authentication with savon gem
My soap server is set up with wash_out gem
我正在尝试使用savon gem发送基本身份验证的soap请求我的soap服务器设置了wash_out gem
class OrdersController
....
....
When i make a request to soap server via savon
i get an error:
当我通过savon向soap服务器发出请求时出现错误:
@client = Savon.client(
wsdl: "http://localhost:3000/orders/wsdl",
soap_header: { 'Username' =>SIRA[:auth][:username], 'Password' => SIRA[:auth][:password] }
)
@respOnse= @client.call(:notify ).to_hash
On the last command i get an error
在最后一个命令我得到一个错误
Savon::SOAPFault: (Server) Missing required UsernameToken
3 个解决方案