Hi all,
I am currently making my first steps with axis2/c and now have a few
questions about stub generation.
I'm using the WSDL2C Tool to generate the client stub with the following
command:
axis2.bat org.apache.axis2.wsdl.WSDL2C -uri
http://mydomain.com/soap_server.php?wsdl -d adb -u
The Problem is, that when I define a so called "Notfication Operation"
in the server side wsdl file, the corresponding implementation in the
generated "axis2_stub_service.c"-file is missing. Although the
definition in the .h file is there.
Functions for "Request-respones Operations" are correctly generated.
Some example:
Operations defined in the WSDL file:
<portType name="Service_PortType">
<operation name="ServerVersion">
<output message="tns:ServerVersionOutput"/>
</operation>
<operation name="Test">
<input message="tns:TestInput"/>
<output message="tns:TestOutput"/>
</operation>
</portType>
Function declarations in the generated .h file:
adb_string_element_t* axis2_stub_Service_ServerVersion( axis2_stub_t
*stub, const axutil_env_t *env);
adb_string_element_t* axis2_stub_Service_Test( axis2_stub_t *stub, const
axutil_env_t *env,
adb_string_element_t* string_element3);
The function axis2_stub_Service_Test is correctly implemented in the .c
file but the function axis2_stub_Service_ServerVersion not.
Anyone has an idea what could be wrong?
b.t.w.: Is there also a way to generate the client stub (from wsdl)
programmatically without using the WSDL2C Tool?
Greetings and thanks in advance
Sebastian