After you have generated the client stubs from your WSDL source file, you can use these stubs to create a web service client application.
The WSDL2Ws tool places the files that it generates from WSDL in an output directory. By default, the target output directory is the current directory, but you can specify a different directory by using the -o option when you run WSDL2Ws. You can then create a web service client application by using the appropriate build command to create an executable file.
The following steps illustrate what you need to do to create an application, using the example of the client stubs generated from GetQuote.wsdl by the WSDL2Ws tool as described in Creating client stubs. Assuming that the generated client stubs files are still in the myGetQuote sub-directory within the <inst_dir>/samples/getQuote parent directory, you can now use these stubs to create a web service client application.
When you are working with the sample files, note the following points:
xsd__float getQuote( char * pszStockQuoteName)
In the following steps, it is assumed that the new project that you are building is called myGetQuote, and that all components are in a directory called myGetQuote. The myGetQuote.cpp file contains the client application, along with the automatically generated StockQuote.cpp and StockQuote.hpp. The code for the client application is shown in Sample code for myGetQuote client application.
To build the myGetQuote client application, complete the following steps.
For additional information about developing web service client applications, see Client API.
When you have finished coding and building your web service client application, you are ready to deploy and test the application as described in Deploying web service client applications.