gSOAP使用方法
wsdl2h -o calc.h http://www.genivia.com/calc.wsdl
soapcpp2 -i -C -Iimport calc.h
上面-o是指定路径,-i是指定得到C++代理类和客户端(服务端)代码,-C指仅需要客户端代码。-I后面跟着的是import文件的目录。在windows下,最好直接指定完整的绝对路径。最后的参数是上一步骤中生成的.h头文件。
最后将生成的全部文件拷贝到相关项目下,可以不拷贝第一步中生成的头文件。
除此之外,还需要引入这样几个文件:
stdsoap2.h/.c/.cpp。
接下来就基本可以参考以下代码引用了:
#include "soapcalcProxy.h" #include "calc.nsmap" main() { calcProxy service; double result; if (service.add(1.0, 2.0, result) == SOAP_OK) std::cout << "The sum of 1.0 and 2.0 is " << result << std::endl; else service.soap_stream_fault(std::cerr); }
引用的第一个头文件是代理类的头文件,第二个是第二步中生成的nsmap文件,除此之外,就不需要别的了。
2019年10月02日 22:41
Small children Dubai is actually a very prominent place on the earth, and we will see lots of countries people today there. As well, it is the number one tourist site. How you actually trust any person there, on the amount basis? If perhaps anything develops, that your special loses. To start with, you have got to check quite a few points to accommodate maid company in Dubai.
2020年4月15日 01:44
All of these aquarium outlet stores have just about every single stock items that you may require this kind of means you do not have to go elsewhere to ensure you get your stuff. You’re able to avail the whole thing here right from heaters, filter systems, lights, food indeed fish! They also offer stands, indoor plants and tanks.
2020年4月15日 01:45
Decreasing benefit extremely effective flexibility on the self-planned travel around holidays. This particular form about travel, you may well customize all the self-planned travel as a result of the last second details.
2020年4月15日 01:45
Booking flight, making typical hotel reservations and additionally arranging escape travel more often than not has switched completely along with the advent for the internet and the majority people play the role of their personally own travel solutions. While you’re able to arrange seemingly a good number of your travel around yourself, you just can't do including your travel agent within the long dash!
2020年4月15日 01:45
When we finally hear the concept "Breaking News" an expression of urgency hits this brain. Eventually we get started in paying a great deal more attention. This is exactly nothing unusual for those human chemistry of the brain. Our chemistry of the brain responds to make sure you unusual matters or events during a faster fee than as well as to frequent events.
2020年4月15日 01:46
You'll also find a a number of websites online that serves such info. But, will you trust all the authenticity for the news stories furnished by these internet websites? Surely, fat loss trust every one. Only all the reputed webpages offer substantial and revealing stories.
2020年5月01日 01:45
When you first take a French Cleaning service sexy grown-up costume outside its parcels, you'll feel as you're a wholly different human being. As you actually step within your fishnet pantyhose, you'll set out to feel extra flirtatious plus bubbly. Whenever you feel a silken pad and white colored netting against your sensitive skin, you'll whisper a little bit prayer for any men of your world, because every time they get a strong eyeful within your sultry Costume, they won't consider getting you off all their imagination.
2020年5月01日 01:45
To be able to give the home a certain method of atmosphere, then insides paints are certainly important. The paints that you choose to choose have either ambiance or coolness to your rooms of your abode and if you are going to paint you or retain house artists; keep under consideration there presently exists many ideas so you might consider.
2021年6月07日 01:03
People today get satisfied once they see a cleaners dressed in masks plus gloves. Furthermore, a cleaner ought to take excess precautions if perhaps he/she outings a supposed place. Cleaners should take into account whether they’ve decide to put the PPE accurately? Have a cleaners became enough water so that they can mix a chemicals to your right relative amount?