Messages with a Single Part
For messages that contain runtime data, the simplest type contains just one part that includes a simple type.
Consider the following WSDL file excerpt, taken from the HelloWorld example:
<message name="HelloRequest">
<part name="hellorequest" type="xsd:string"/>
<message name="HelloResponse">
<part name="return" type="xsd:string"/>
<portType name="GreetingPortType">
<operation name="sayHello">
<input message="tns:HelloRequest" />
<output message="tns:HelloResponse" />
The input and output messages each include a single part containing a string.
The generated service operation method in the client implementation GreetingPortClient.cpp creates a simple string to represent the input and output values, like so:
void invoke_sayHello(GreetingBindingProxy& proxy)
std::string hellorequest_in;
std::string return_ret;
rwsf::CallInfo callInfo;
On the server side, the generated code is equally simple, providing the string as an argument to the service operation method:
GreetingPortTypeImp::sayHello(rwsf::CallInfo& callInfo,
const std::string& hellorequest_in)