| By James Caple | Article Rating: |
|
| June 27, 2006 11:45 AM EDT | Reads: |
21,377 |
A Hello World gSOAP Client
For our example, the
supporting WSDL is generated from the header file (Server.h), which is
used to generate the supporting SOAP server code using the soapcpp2
utility. If you have an existing WSDL, C++ client-side code is easily
generated using the wsdl2h utility. It's also possible to generate SOAP
client code automatically from WSDL files using other toolkits. For
example, the wscompile utility in the Java JaxRPC module of the WSDP
2.0 toolkit can be used to generate a Java JaxRPC client for a gSOAP
Web Service.
Server.h
//gsoap ns1 service location: http://192.168.0.2/cgi-bin/article.cgi
int ns1__shareLegacyData(char *&resp);
The //gsoap directive in the header file can be used to specify, among other things, a SOAP endpoint when not explicitly supplied to the client application. The client C++ source code listing is in Listing 2
And last but not least, in Listing 3 there's a simple Makefile that can be used to:
- Generate the necessary stub/skeleton code from the header file;
- Compile the example legacy library code;
- Compile the server example and
- Compile the client example.
Conclusion
The successful use of gSOAP for solving
problems associated with integrating internal legacy application code
with new software modules, using the patterns and techniques described
above, makes certain key assumptions:
- Legacy system application code is written in C/C++ and
- The legacy functions that need exposing will ideally already be available in static or shared C/C++ libraries.
As the SOA revolution progresses, slowly but surely, it's becoming more and more evident how SOA can be leveraged to create complex new functionality quickly by mixing and mashing Web components from around the Web Services universe, as well as to breathe new life into legacy systems code. Frameworks such as gSOAP are powerful, cost-effective tools in facilitating the development of Web Service APIs intended for both internal and external consumption. Long live the revolution!
Published June 27, 2006 Reads 21,377
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By James Caple
James Caple is an independent programmer and author. He has more than eight years of industry experience, including building mobile device synchronization software and systems in Java. He is a Sun Java 2 certified programmer and developer.
![]() |
SOA Web Services Journal News 06/27/06 02:35:54 PM EDT | |||
leveraging gSOAP for legacy systems intergration |
||||
![]() |
SOA Web Services Journal News 06/27/06 02:35:42 PM EDT | |||
leveraging gSOAP for legacy systems intergration |
||||
![]() |
SOA Web Services Journal News 06/27/06 02:34:48 PM EDT | |||
leveraging gSOAP for legacy systems intergration |
||||
![]() |
NET News Desk 06/27/06 02:26:11 PM EDT | |||
Leveraging gSOAP for Legacy Systems Integration |
||||
![]() |
SOA Web Services Journal News 06/24/06 12:05:26 PM EDT | |||
The world was about to change, argued Don Box of DevelopMentor when he extolled the virtues of SOAP, the Simple Object Access Protocol, at the 2001 USENIX Conference on Object-Oriented Technologies and Systems (COOTS). |
||||
![]() |
.NET News Desk 06/23/06 01:37:05 PM EDT | |||
The world was about to change, argued Don Box of DevelopMentor when he extolled the virtues of SOAP, the Simple Object Access Protocol, at the 2001 USENIX Conference on Object-Oriented Technologies and Systems (COOTS). |
||||
- The Top 150 Players in Cloud Computing
- Commercial vs Federal Cloud Computing
- Why IBM’s Server Chief Got Busted
- Industry Experts Discuss the State of Cloud Computing
- Cloud Expo New York Call for Papers Deadline December 15
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- US Federal Government is Major Cloud Computing Innovator
- Google Wave
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Adaptivity & Cloud Computing: Exclusive Q&A with CEO Tony Bishop
- Cloud Computing Can Revitalize Your Career as Software Developer
- The Top 150 Players in Cloud Computing
- SYS-CON.TV: Cloud Computing Expo Power Panel
- Commercial vs Federal Cloud Computing
- Why IBM’s Server Chief Got Busted
- 1st Annual GovIT Expo: Letter from the Technical Chair
- Deputy CIO of the CIA to Keynote 1st Annual GovIT Expo
- Industry Experts Discuss the State of Cloud Computing
- SOA World Power Panel on SYS-CON.TV
- CIA was Headed to an Enterprise Cloud All Along: Jill Tummler Singer
- 1st Annual Government IT Conference & Expo: Themes & Topics
- Cloud Expo New York Call for Papers Deadline December 15
- Stock in Focus: Dragon Capital
- The i-Technology Right Stuff
- Who Are The All-Time Heroes of i-Technology?
- Get the Message
- Where Are RIA Technologies Headed in 2008?
- i-Technology Viewpoint: Is Web 2.0 the Global SOA?
- i-Technology Viewpoint: Thinking Outside the VC Box
- ESB Myth Busters: 10 Enterprise Service Bus Myths Debunked
- i-Technology Viewpoint: When to Leave Your First IT Job
- SOA Web Services Edge Conference Coverage on SYS-CON.TV
- Five Reasons Why Web 2.0 Matters
- SYS-CON.TV's "SOA Web Services" and "Enterprise Open Source" Programs To Air in December
- SOA World Conference & Expo SYS-CON.TV Power Panel Live From Times Square










There are a variety of applications that supp...





















