wcf - Tridion 2011 SP1 : Facing Issue while creating client application using Core Services

标签 wcf web-services tridion tridion-2011

我使用核心服务创建了一个小应用程序,当我们在 CMS 服务器上运行它时它运行良好。但是当我将它托管在我的客户端机器上并运行时,它无法正常工作。

我检查了网络服务客户端是否能够连接网络服务。 Web服务的URL - IP:5001/webservices/CoreService2011.svc 这个 url 向我展示了一个包含类似内容的页面

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://vmadtridiecmesx.ecmlab.com:5001/webservices/CoreService2011.svc?wsdl

This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:

如果我从这里点击链接“http://vmadtridiecmesx.ecmlab.com:5001/webservices/CoreService2011.svc?wsdl ".它给我错误。

Unknown Host


Description: Unable to locate the server named "vmadtridiecmesx.ecmlab.com" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.

是这个问题吗? 如果没有,有人可以帮助我知道确切的问题是什么。

提前致谢

最佳答案

确实,看起来您无法联系那台机器,因为它没有 DNS 条目(因此它无法查找 IP)。

如果您转到 CoreService2011.svc?wsdl URL,您应该会得到 WSDL XML——不是错误。

您是否在配置中使用了 IP?还是机器名?

无论如何,我建议您解决 DNS 问题,以便您的客户可以使用 CM 机器。

关于wcf - Tridion 2011 SP1 : Facing Issue while creating client application using Core Services,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11468074/

相关文章:

mysql - 在 linq 中返回消息

不同用户 session 下具有命名管道的 WCF

Web 服务的 .NET 编码标准和框架

tridion - 使用核心服务创建具有元数据字段的多媒体组件

Tridion核心服务: How to assign specific version TCM URI to a multimedia link field

asp.net - WCF + REST,增加 MaxStringContentLength

java - WSDL2Java Axis 之后无法建立与 SOAP WebService 的连接

android - Android 中的 Web 服务异常(java.net.SocketException 权限被拒绝)

tridion - 有时在传输阶段发布失败,错误为 "Internal Server Error"

wcf - 部署到 IIS : Login failed for user 'IIS APPPOOL\DefaultAppPool' 时出现异常