问题
I know that the Microsoft SOAP toolkit has been deprecated for a while now (.NET has all this stuff built in) but I was wondering in anyone has a quick bit of info on setting up a simple app that uses it. I was referred to http://www.devarticles.com/c/a/Cplusplus/Building-A-SOAP-Client-With-Visual-C-plus/ but the service in the example is no longer functioning and I can't seem to find any documentation online.
I've looked into gSoap, but it seems overly complicated for what I have to do and despite not being able to get it to work, the SOAP toolkit seems (relatively) elegant.
回答1:
Don't do it. It's 5 years deprecated, and it was 2 years out of date when it became deprecated. Don't.
Assuming you are running on Windows (since you mentioned the MS SOAP Toolkit), use the imminently-arriving WWSAPI instead.
Also see this post: http://blogs.msdn.com/vcblog/archive/2009/03/31/interested-in-using-web-services-in-your-native-c-c-code.aspx
EDIT: If you want something more basic, you can use MSXML and build your SOAP requests manually.
回答2:
Really. "Deprecated" is not the word for it. It's at the top of my list of obsolete web service technologies:
- SOAP Toolkit
- WSE 1.0
- WSE 2.0
WSE 3.0
ASMX - not quite obsolete. Just "legacy".
来源:https://stackoverflow.com/questions/1196039/how-to-use-ms-soap-toolkit