为 Web 服务生成的 output.config 文件的作用是什么? [英] What is the role of the output.config file generated for a webservice?

查看:30
本文介绍了为 Web 服务生成的 output.config 文件的作用是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Basic 中为 web 服务生成了一个类文件,我试图用它来连接到第三方应用程序进行身份验证.

I generated a class file for a webservice in visual basic I am trying to use to connect to a third party application for authentication.

当我运行命令行命令为 web 服务生成类文件时,我还发现了一个用它生成的 output.config 文件.

When I ran the command line commands to generate the class files for the webservice I also found an output.config file generated with it.

这个文件的作用是什么,我应该把它放在哪里以确保应用程序可以与网络服务成功通信?

What is the role of this file, and where should I put it to ensure the application can communicate successfully with the webservice?

我应该把它放在哪里"我的意思是,它应该和 webservice 类文件放在同一个文件夹中吗?

By "where should I put it" I mean, should it go in the same folder as the webservice class file?

谢谢!

推荐答案

我在 Visual Basic [...] 中为 Web 服务生成了一个类文件

I generated a class file for a webservice in visual basic [...]

我假设您使用过 svcutil.exe?Svcutil 不仅创建客户端代码,还创建与之配套的配置.配置在 output.config 文件中.在其中,您会发现诸如 客户端端点、绑定配置或端点行为.

I assume you used svcutil.exe? Svcutil creates not only the client code but also configuration to go with it. The configuration is in the output.config file. Inside it you will find such things like client endpoint, binding configuration or endpoint behaviours.

您需要复制您在output.config 中找到的配置 并将其放置在您的 App.config 文件或 Web.config 文件中(取决于您拥有的应用程序类型).

You will need to copy the configurations you find inside output.config and place it inside your App.config file or Web.config file (depending of the type of application you have).

这篇关于为 Web 服务生成的 output.config 文件的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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