axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Merten" <>
Subject Re: WSDL2C Stub Generation - Operations missing
Date Fri, 23 Nov 2007 13:50:52 GMT
Hi Dimuthu,

thanks for the quick answer. Now that I know this, I think I can live
with "request-response" operations ...



Von: Dimuthu Gamage [] 
Gesendet: Donnerstag, 22. November 2007 13:15
An: Apache AXIS C User List
Betreff: Re: WSDL2C Stub Generation - Operations missing


Hi Sebastian,

You wsdl  have  a operation with out only  message exchange pattern. You
can't generate code to this kind of scenarios using WSDL2C tool.
AFAIK you need to work with Apache savan module here.

And currently there are no other ways to generate the stub from the wsdl
except the WSDL2C tool.


On Nov 22, 2007 5:09 PM, Sebastian Merten <
<> > wrote:

Hi all,

I a m 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://
<> 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



View raw message