Jan Dörrenhaus
Jan Dörrenhaus

Reputation: 6717

Calling a web service from C++

I have a simple web service running on a JBoss server. Now I need to access it from C++, Microsoft VC++ 2010, to be precise. Being new to web services in general, I googled my problem, but found that most people advised to to "Add Web Reference", something that appears to be gone since VS2008. So I was wondering if somebody could give me a few pointers on what the easiest way to call a web service from C++ would be.

Thanks in advance for your time.

Upvotes: 9

Views: 26995

Answers (3)

Andy
Andy

Reputation: 135

I used the sproxy tool to generate a C++/ATL header file for my web service. The sproxy tool comes with the ATL Server source code (CodePlex). Although the project's been dead for a few years so I had to do the work of manually converting the project to VS2010 (it wouldn't convert automatically using the conversion wizard), but now it works and I was able to call my web service from a console app with just a few lines of code.

Upvotes: 1

Dennis
Dennis

Reputation: 3731

I also recommend gSOAP. It can be a handful but it works. Point it at a WSDL and it'll generate proxies that you can use in your client code.

It's free if you are producing open source work as well.

Upvotes: 1

DesignFirst
DesignFirst

Reputation: 329

you can try gSoap

Upvotes: 8

Related Questions