将用户名和密码传递给 svcutil.exe? [英] Passing username and password to svcutil.exe?

查看:34
本文介绍了将用户名和密码传递给 svcutil.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有目前使用用户名和密码保护的 OSB 服务.尝试使用 svcutil 生成服务代理时,我收到 401 未经授权的消息.我知道您需要设置一个 svcutil.exe.config 文件,但除了通过证书的示例外,我找不到任何示例.

We have OSB services that are currently secured with a username and a password. I get a 401 unauthorized when attempting to generate a service proxy using svcutil. I know you need to set up a svcutil.exe.config file but I cannot find any examples except for one that passes a certificate.

有人知道如何使用 svcutil 发送用户名和密码吗?

Dows anyone know how to send a username and password using svcutil?

推荐答案

我认为你不能这样做.

在这种情况下,您可以在浏览器中连接到该地址,然后将 WSDL 文件下载并保存到本地磁盘,然后在该本地副本上调用 svcutil.exe - 或者询问该网络服务的发布者要么为您提供一个不需要身份验证的 URL,要么只是向您发送相关的 WSDL 和可能的 XSD 文件,以便您可以为该服务创建客户端代理.

What you can do in this case is either connect to that address in a browser and just download and save the WSDL file to your local disk and call svcutil.exe on that local copy - or ask the publisher of that webservice to either give you an URL which doesn't require authentication, or to simply send you the relevant WSDL and possibly XSD files so you can create a client side proxy for that service.

这篇关于将用户名和密码传递给 svcutil.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆