在qt中使用现有的.net webservices(非WCF) [英] Using existing .net webservices (Not WCF) in qt

查看:144
本文介绍了在qt中使用现有的.net webservices(非WCF)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个现有的Web服务(.asmx而不是WCF),它在一个Windows应用程序中使用。现在我想使用qt在android中创建相同的应用程序,但需要使用相同的Web服务。这样做的最佳解决方案是什么?



我在google上搜索关于gSoap的信息。但是在gSoap的初始步骤中说了一些与.wsdl相关的内容。这该怎么做?任何示例代码都可用?

Hi,

I am having one existing web services (.asmx not WCF), that is used in one windows application. Now i want to create same application in android using qt, but need to use the same web services. What is the best solution for doing this?

I search it in google about gSoap. But in gSoap initial step says something related to .wsdl and all. how to do this? Any sample code is available?

推荐答案

通常您从Web服务的终点访问WSDL。



WSDL是Web服务描述语言。



如果您的网络服务处于以下终点:



https://mydomain.com/myarea/myservice.asmx



使用以下附加查询字符串将改变服务行为并使其输出WSDL。 br $> b $ b

https://mydomain.com/myarea/myservice.asmx?wsdl



然后这将给出你是一个描述你的服务的XML输出。



这与你的visual studio IDE使用相同的技术来理解哪些方法可用于你的网络服务。



有时可以在生产环境中关闭WSDL行为。您可能必须从原始开发项目中获取它。
Generally you access the WSDL from the end point for your web service.

WSDL is Web Service Description Language.

If your webservice is at the following end point:

https://mydomain.com/myarea/myservice.asmx

Using the following additional querystring will change the services behaviour and get it to output the WSDL.

https://mydomain.com/myarea/myservice.asmx?wsdl

This will then give you an XML output which describes your service.

It's the same technique your visual studio IDE uses to understand which methods are available for you web service.

Sometimes the WSDL behaviour can be switched off in production environments. You may have to get it from your original development project.


这篇关于在qt中使用现有的.net webservices(非WCF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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