如何使用具有WSDL和XSD文件的Web服务? [英] How to consuming webservice having WSDL and XSD files?

查看:414
本文介绍了如何使用具有WSDL和XSD文件的Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,



我们已经要求公司编写一个我们可以用来获取一些信息的网络服务。他们向我们发送了WSDL和XSD文件。你能告诉我如何使用这些文件来查询数据吗?如果我有一个web服务的链接,我可以轻松地做到这一点。我只提供链接,Visual Studio为我生成Web引用。之后,我可以像普通类一样使用该引用。在这种情况下,我没有链接。上面提到的文件。



我无法将参数传递给wsdl文件中定义的方法,它显示对象引用未设置为对象的实例。

任何人都可以告诉我如何使用xsd文件将参数传递给wsdl webservice方法以获取来自webservice的响应。

请给我这个问题的解决方案。

解决方案

我相信你已经从这里得到了答案



http://stackoverflow.com/questions/10753640/consuming-webservice-having-wsdl-and-xsd-files [<一个href =http://stackoverflow.com/questions/10753640/consuming-webservice-having-wsdl-and-xsd-filestarget =_ blanktitle =New Window> ^ ]

Hi sir,

We've requested a company to write a webservice that we can use to get some information.They have sent us WSDL and XSD files. Could you please tell me how I can use these files to query data? I can do it easily if I have a link to a webservice. I just provide the link and Visual Studio generates web reference for me. After that I can use that reference just like a normal class. In this case I have no link. Just above mentioned files.

I cant able to pass the parameters into the method defined in wsdl file, it shows object reference not set to an instance of the object.
Can anyone tell me how to use xsd file to pass the parameters into wsdl webservice method to get the response from the webservice.
Kindly give me the solution for this problem.

解决方案

i believe you have got the answer from here

http://stackoverflow.com/questions/10753640/consuming-webservice-having-wsdl-and-xsd-files[^]


这篇关于如何使用具有WSDL和XSD文件的Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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