gpt4 book ai didi

wsdl - azure 生成错误的 wsdl 地址

转载 作者:行者123 更新时间:2023-12-03 06:06:10 25 4
gpt4 key购买 nike

我启动我的 azure 应用程序,浏览到 svc 文件 http://127.0.0.1:82/transaction.svc ,我得到了通常的结果:

You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax: svcutil.exe http://rzv-pc:5100/Transaction.svc?wsdl

如果我去http://rzv-pc:5100/Transaction.svc?wsdl年龄为空白。如果我去http://127.0.0.1:82/transaction.svc?wsdl ,我得到了 wsdl,但仍然有像

这样的引用
<xsd:import schemaLocation="http://rzv-pc:5100/Transaction.svc?xsd=xsd1" 

我无法在任何此链接上使用 svcutil。问题是什么?我使用 Azure SDK 1.1。

最佳答案

参见http://code.msdn.com/wcfazure (特别是“已知问题”页面)。该问题源于涉及两个端口的事实。一个是外部端口(负载均衡器监听的端口),在您的例子中是端口 82。另一个是内部端口,您的代码在云中的虚拟机上监听该端口,在您的例子中是端口 5100。

请注意,在 SDK 1.3 中,您可以在端点上指定 localPort 属性,这使您可以选择内部端口。您可以将其设置为与外部端口相同,从而避免所有奇怪的情况。

关于wsdl - azure 生成错误的 wsdl 地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4638875/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com