WebSphere Message Service Clients: Web Services Client for C++, Version 1.1 Operating Systems: Linux, Windows

Generated stubs

Use this example of stub file to find out how SOAP faults are represented in the generated client stubs.

Each SOAP fault defined in the WSDL is represented as a generated C++ class. The generated DivByZeroStruct is as shown below:

class STORAGE_CLASS_INFO DivByZeroStruct : public SoapFaultException
{
public:
	xsd__string varString;
	xsd__int varInt;
	xsd__float varFloat;
	DivByZeroStruct();
	~DivByZeroStruct() throw();
};

The DivByZeroStruct class has public variables that contain the deserialized message. An instance of this exception class is thrown by the fault handler inside the MathOps stub, if such a fault is returned by the server.

Related reference
SOAP faults defined in a WSDL file
Other exceptions
Client application

Reference topic

Terms of Use | Rate this page

Last updated: 24 Mar 2006

© Copyright IBM Corporation 2005, 2006. All Rights Reserved.