我正在使用 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.
发布评论
评论(1)
以下内容可能会对您有所帮助
http://www.codeproject.com/KB/webservices/ SOAPHeaderAuthentication.aspx
Here is something that might help you
http://www.codeproject.com/KB/webservices/SOAPHeaderAuthentication.aspx