You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Philippe Torrelli <ph...@alcatel-lucent.fr> on 2009/02/11 12:05:17 UTC

troubles with skeleton generation tools from wsdl

Hello list,

As it is my first post, a short introduction:
I work on a telephony solution that is currently built over a
servicemix/activemqueue architecture 
 and that we now would like to embed on a very small hardware. As java
doesn't seem to be a reasonable
option on this, I try to evaluate the feasibility/cost of a porting to c/c++
(as well as if it fits the hardware). 
The architecture of axis2c seems pretty compatible with our needs, and I'm
now trying to 
implement little key parts of our stuff with axis2c and having hard time
with it.


This is with axis2c 1.5.0, installed on a linux pc  from the binary tarball
available on apache axis2c website
(http://apache.crihan.fr/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0-linux.tar.gz
). 

I try to generate a skeleton for web service  out of an existing wsdl, with
complextypes,  
 multiple(optional) occurrences and here are my results :

- tried with wsdl2c and an axis 1.3 java distribution. It did create a
skeleton for me but this one crashed 
very early trying to parse my messages. I had successes when I tested this
setup with the provided Calculator wsdl, (which is must simpler ) and could
call it, with both REST and soap  calls.

I then decided then to give a shot to a later wsdl2c but couldn't find one. 
Is this component still alive ?

I then found different messages suggesting wsdl2c and wsdl2java are now the
same, ( it's just my understanding ) so downloaded the latests axis2java
nightly build available, and gave a try to wsdl2java, which generated java
classes for me... Actually I couldn't manage to give i the -lc option: even
if the usage line suggests I should use -l c, when I try, it just generates
java code.

My command line 
/wsdl2java.sh -o test -ss -sd -l c  -uw -d adb -g  -uri Resource.wsdl ....
just creates a java code tree for me.

Now I'm running out of ideas (but to read wsdl2java code which I don't have
time to ).. 
I suspect I missed something ( maybe the path of the WSDL2C tool ? maybe the
axis2c distrib I took is too old ? )

Any help appreciated

Cheers

Philippe Torrelli



Re: troubles with skeleton generation tools from wsdl

Posted by Dimuthu Gamage <di...@gmail.com>.
Hi,
Did you try the latest Axis2/Java version,
http://ws.apache.org/axis2/download.cgi

Thanks
Dimuthu

On Thu, Feb 12, 2009 at 12:15 AM, Haszlakiewicz, Eric <
EHASZLA@transunion.com> wrote:

> >-----Original Message-----
> >From: Philippe Torrelli [mailto:philippe.torrelli@alcatel-lucent.fr]
> >needs, and I'm
> >now trying to
> >implement little key parts of our stuff with axis2c and having
> >hard time
> >with it.
> >
> >This is with axis2c 1.5.0, installed on a linux pc  from the
> >binary tarball
> >available on apache axis2c website
> >(http://apache.crihan.fr/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0
> >-linux.tar.gz
> >).
> >
> >I try to generate a skeleton for web service  out of an
> >existing wsdl, with
> >complextypes,
> > multiple(optional) occurrences and here are my results :
> >
> >- tried with wsdl2c and an axis 1.3 java distribution. It did create a
> >I then found different messages suggesting wsdl2c and
> >wsdl2java are now the
> >same, ( it's just my understanding ) so downloaded the latests
> >axis2java
> >nightly build available, and gave a try to wsdl2java, which
> >generated java
> Yes, you'll definitely want to use a current snapshot of the java code.
> There are lots of fixes that have gone in since 1.3.  I got my copy from
> from http://builder.wso2.org/browse/AXIS2-NIGHTLY
>
> >My command line
> >/wsdl2java.sh -o test -ss -sd -l c  -uw -d adb -g  -uri
> >Resource.wsdl ....
> >just creates a java code tree for me.
>
> I used these commands:
>
> For client code:
>    axis2.sh org.apache.axis2.wsdl.WSDL2C -uri
> ${.CURDIR}/../wsdl/addrnorm.wsdl
> -d adb -u -o ${.CURDIR}/generated
>
> For server code:
>    axis2.sh org.apache.axis2.wsdl.WSDL2C -uri
> ${.CURDIR}/../wsdl/addrnorm.wsdl
> -d adb -u -ss -sd -o ${.CURDIR}/generated
>
> axis2.sh is a script that is included with the axis java code.
>
> You'll want to adjust the -d option if you're using something other that
> adb.
>
> eric
>



-- 
Thanks,
Dimuthu Gamage

http://www.dimuthu.org
http://www.wso2.org

RE: troubles with skeleton generation tools from wsdl

Posted by "Haszlakiewicz, Eric" <EH...@transunion.com>.
>-----Original Message-----
>From: Philippe Torrelli [mailto:philippe.torrelli@alcatel-lucent.fr] 
>needs, and I'm
>now trying to 
>implement little key parts of our stuff with axis2c and having 
>hard time
>with it.
>
>This is with axis2c 1.5.0, installed on a linux pc  from the 
>binary tarball
>available on apache axis2c website
>(http://apache.crihan.fr/dist/ws/axis2/c/1_5_0/axis2c-bin-1.5.0
>-linux.tar.gz
>). 
>
>I try to generate a skeleton for web service  out of an 
>existing wsdl, with
>complextypes,  
> multiple(optional) occurrences and here are my results :
>
>- tried with wsdl2c and an axis 1.3 java distribution. It did create a
>I then found different messages suggesting wsdl2c and 
>wsdl2java are now the
>same, ( it's just my understanding ) so downloaded the latests 
>axis2java
>nightly build available, and gave a try to wsdl2java, which 
>generated java
Yes, you'll definitely want to use a current snapshot of the java code.
There are lots of fixes that have gone in since 1.3.  I got my copy from
from http://builder.wso2.org/browse/AXIS2-NIGHTLY

>My command line 
>/wsdl2java.sh -o test -ss -sd -l c  -uw -d adb -g  -uri 
>Resource.wsdl ....
>just creates a java code tree for me.

I used these commands:

For client code:
    axis2.sh org.apache.axis2.wsdl.WSDL2C -uri
${.CURDIR}/../wsdl/addrnorm.wsdl
-d adb -u -o ${.CURDIR}/generated

For server code:
    axis2.sh org.apache.axis2.wsdl.WSDL2C -uri
${.CURDIR}/../wsdl/addrnorm.wsdl
-d adb -u -ss -sd -o ${.CURDIR}/generated

axis2.sh is a script that is included with the axis java code.

You'll want to adjust the -d option if you're using something other that
adb.

eric