You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Peter Ludwig <le...@gmx.de> on 2006/01/24 10:52:59 UTC

Simple way of using Beans?

Hello everybody,

I'am planning to make 3 Classes to web services. Some of them use Beans as
parameters and return types, even as arrays or lists (I could remove the
lists and use arrays)

Is there a simple way (without configuration and reading of the complete
axis reference) to create such services? Doesn't matter if axis or axis2.

axis:
In axis I did only find automatic generation of wsdls (and backwards). I
still have to write the wsdd file (wich could be time consuming and not too
easy for me). JWS doesn't work with complex types right?

axis2:
At least I didn't find an Example using a bean. A hint would be nice. I
tried axis2 by just publish the operation, but no complex type information
was generated in my wsdl file.


Isn't it possible to use the beanserializer by default? I'm not sure, but I
thought Xfire for example just needs the operation to export and uses the
bean complex type by default.

Thx
Peter

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen f�r GMX Partner: http://www.gmx.net/de/go/partner

Re: Simple way of using Beans?

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Peter;

in Axis2 you can deploy services which uses JBeans very easily , what you 
have to do is write services.xml for your services and if you wish axis2 to 
generate WSDL for you pls put following entry into ur servies.xml and 
finally ur services.xml look like follow;

 <service name="MyService" >
        <description>
            description about ur service.
        </description>
        <messageReceivers>
            <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
                             class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
            <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
                             class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
        </messageReceivers>
        <parameter name="ServiceClass">o.a.a.MyServiceName</parameter>
    </service>


Thanks,
 Deepal
................................................................
~Future is Open~

----- Original Message ----- 
From: "Peter Ludwig" <le...@gmx.de>
To: <ax...@ws.apache.org>
Sent: Tuesday, January 24, 2006 3:52 PM
Subject: Simple way of using Beans?


>
> Hello everybody,
>
> I'am planning to make 3 Classes to web services. Some of them use Beans as
> parameters and return types, even as arrays or lists (I could remove the
> lists and use arrays)
>
> Is there a simple way (without configuration and reading of the complete
> axis reference) to create such services? Doesn't matter if axis or axis2.
>
> axis:
> In axis I did only find automatic generation of wsdls (and backwards). I
> still have to write the wsdd file (wich could be time consuming and not 
> too
> easy for me). JWS doesn't work with complex types right?
>
> axis2:
> At least I didn't find an Example using a bean. A hint would be nice. I
> tried axis2 by just publish the operation, but no complex type information
> was generated in my wsdl file.
>
>
> Isn't it possible to use the beanserializer by default? I'm not sure, but 
> I
> thought Xfire for example just needs the operation to export and uses the
> bean complex type by default.
>
> Thx
> Peter
>
> -- 
> Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
> Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
>