使用 Spring .NET 将用户名和密码发送到 .net Web 服务

发布于 2024-10-08 13:11:51 字数 682 浏览 5 评论 0 原文

我正在使用 Web 服务开发一个 .net 应用程序,并且该应用程序使用 Spring.Net WebServiceProxyFactory 来使用它们。

我需要将登录到应用程序并使用 Web 服务的用户的用户名和密码发送到 Web 服务。

阅读一些论坛帖子(例如 http://forum.springframework.net/showthread.php? t=4818)它们似乎引用了 spring 文档中的一个示例( http://www.springframework.net/doc-latest/reference/html/webservices.html ),这是一个如何使用 SOAP 标头通过 WebServiceExporter 和 WebServiceProxyFactory 进行身份验证的示例,但是该文件的链接已损坏。

你知道我可以使用 spring.net 将用户凭据作为肥皂头发送的方法吗?或任何数据(例如,Web 服务稍后将用于获取用户凭据的令牌 ID)。

谢谢。

I am developing a .net application using Web Services, and the application is consuming them using Spring.Net WebServiceProxyFactory.

I need to send to the web service the username and password of the user that is logged in to the application, consuming the web service.

Reading some forum post (like this http://forum.springframework.net/showthread.php?t=4818) they seem to refer to an example that used to be in the spring documentation ( http://www.springframework.net/doc-latest/reference/html/webservices.html ), an example of how using SOAP headers for authentication using the WebServiceExporter and WebServiceProxyFactory, but the link to the file is broken.

Do you know a way that I can send the user credentials as a soap header using spring.net? Or any data (for example, a token ID that the web service will use later to get the user credentials).

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文