WCF项目中的WSDL文件在哪里 [英] where is WSDL file in WCF project

查看:279
本文介绍了WCF项目中的WSDL文件在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用visual studio 2012创建了一个WCF Web服务项目。我在自己的机器上在本地IIS上发布了该服务。我还使用相同版本的visual studio编写了一个客户端,我可以轻松连接和使用该服务。

现在,我需要使用java或C ++编写客户端,因为我必须为客户端编写客户端Linux基础系统也。在所有教程中,我发现它们处理了一个扩展名为.WSDL的文件,以便从客户端调用。我的Web服务项目中没有这样的文件,也没有发布的位置。

如何使用java或C ++调用我的WCF Web服务。

I have created a WCF web service project using visual studio 2012. I published the service on local IIS on my own machine. I also wrote a client using the same version of visual studio and I can easily connect and use the service.
Now, I need to write the client using java Or C++ as I have to write the client for Linux base systems also. In all of the tutorials I found they address a file with .WSDL extension to call from client. There is no such a file in my web service project and also in published location.
How can I call my WCF web service using java or C++.

推荐答案

这看起来很有趣但它在我面前。实际上我不知道wsdl文件在哪里,但是当我右键单击IIS中的service.svc并浏览.svc文件时,它会显示一个页面,其中包含.wsdl的两个链接。我在页面中使用了第二个ulr作为我的服务wsdl的参考。

我希望它可以帮助那些正在寻找相同主题的人。
It may seems funny but it was in front of my eyes. Actually I don't know where is the wsdl file but when I right click on my service.svc in IIS and brows the .svc file, it shows a page which has two links for the .wsdl. I used the second ulr in the page as a reference to my service wsdl.
I wish it help someone who is looking for the same topic.


这篇关于WCF项目中的WSDL文件在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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