I was using wsdlpull library for wsdl parser. But it seems for some cases it doesn,t work correctly.
I am wordering is there any other library with an example of it.
thanks...
GSOAP is free if you are using it for non-commercial projects. Might be worth checking out. I found it a little finicky but it worked.
You can try simplesoap. It is ... simpler than gsoap ^^
my2c
Implent SOAP-based protocols in C++ is real hell, i've experience with it (i use gsoap).
I recommended see to other tools, more applicable for SOAP, such as Java if you can change tool, of course.
Related
I am looking for a SOAP toolkit which I can use with C++ language on Linux system.I have taken a look at AXIS2C and i find it poorly documented. gSoap unfortunately requires a license, so are there any others which are out there?
The only SOAP toolkit that I've used for C++ is QtSoap which is fairly low level, only supports SOAP 1.1, and is Qt specific.
gSOAP can be used commercially without a license inasmuch as you aren't using the wsdl2h binary and associated generated code.
There are a number of others that you could investigate.
Also any other approaches to achive the same (consume web services) would be appreciated.. As of now i understand that only way out is via a toolkit
Since most web services are "just" XML, you don't need much in the way of a supporting library if you're willing to work through some of the protocol requirements. If your needs are simple, this may be sufficient.
Another option is to use bindings to Java or .NET where plenty of supporting libraries are available.
How can we do network programming in C++ similar to Remoting in .NET? Please help with any tutorials.
It would be fine if I know how to enable two computers to communicate in the form of sending and receiving messages using C++/C#.
Thanks,
Rakesh.
For windows, you can check out this.
You could refer Beej's guide for Unix flavors.
C++ does not have any native networking libraries, so if you don't want to use OS specific calls, you are going to need to use a portability layer.
Two that come to mind are Boost ASIO and ACE.
You may want to have a look at the Poco C++ libraries. Especially the Net module.
For a pure C++ solution (as your first sentence suggests) that's also really simple to use, checkout RCF.
If you want to communicate between C# and C++ programs (as your second sentence suggests) you'll have to look elsewhere, sorry.
Check out our C++ Remoting framework. There's also a screencast showing how to use it.
This is probably the closest that you'll get to .NET Remoting in C++.
can anyone suggest a good HTTP parsing library for linux?
libcurl?
It supports most web-based protocols, widely used, and stable. Available on most Linux distributions and should be around for Windows too. It supports both a simplified interface for quick-and-dirty implementations as well as an advanced interface for a robust implementation.
If you need a C++ wrapper for curl, you might like curl++. Do look it up.
I need to access a SOAP webservice (written in .NET with MS SQL backend, FWIW) from several different platforms, so my common denominator is native C++. Is there a portable library for this or I should roll my own solution?
To do SOAP in C++ you need both a networking and an XML/SOAP library. These aren't easy to find, especially if cross-platform is needed.
I would start from libcurl. There seems to be a SOAP example available.
It's possible that using Java rather than C++ might actually be easier. Java does run in lots of places and has quite nice Web Service client libraries.
Is that worth a look?
What are the alternatives for SOAP development in C++? Which one do you prefer and is most supported/modern?
Check out Apache Axis. That is my all times favorite SOAP implementation. It's SOAP done right! Exists for C++ and Java.
http://ws.apache.org/axis/
And in best traditions of Apache Foundation, it is FREE and OPENSOURCE.
So, enjoy!
I had to make SOAP calls for a project a while ago and the only acceptable solution I found was GSOAP.
http://www.cs.fsu.edu/~engelen/soap.html
It supports both C and C++ code, although working with C++ is nicer and easier to understand. It worked ok although there was an incompatibility with our WCF web service which meant we had to manually edit the automagically generated source code.
I stumbled on gsoap awhile ago, but I wasn't a huge fan of its interface and code generator. And as I remember it, the documentation is significantly lacking (or at least in a very difficult format).
Sometime in the near future, though, this library may be adding sockets support. At least, I suggested it to the developer some time ago and he seemed to think it was the idea, and a few months later an XML parser showed up in the API. I'm a big fan of that library, and would definitely use it more if it wasn't GPL.
If you are writing for Windows, Microsoft has a utility that comes with the Windows 7 SDK (And visual studio 2013 and later) called WSUTIL. It generates C proxies given a WDSL file, as shown in this example.
http://msdn.microsoft.com/en-us/library/windows/desktop/gg288974.aspx
KD Soap if you are in Qt C++. This is the URL
https://www.kdab.com/kd-soap/
SmartWin++ have a side-project called SmartSOAP which is pretty neat I think, it features a pretty complete stack starting from SocketStream, working its way up to HttpRequest/Response objects. Features a small (to the job) XML DOM class abstraction and goes up to SOAP. It even comes with a WSDL parser to create proxy classes for you. It heavily uses templates and STL. And is pretty awesome C++. Works on Windows Mobile...
Though it isn't extremely rich, doesn't feature stuff like SSL and such. But since the code is pure art I would guess it could easily be understood and extended upon yourself...
License is New BSD...
Disclaimer; I implemented it...