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 SOA Work <so...@web.de> on 2006/03/14 10:53:56 UTC

some axis2 deployment questions

Hi,

I'm going to publish a simple service using axis2 war distribution.
Now I'm running into some (maybe simple) questions, which I can not solve with the user guide:

1) what's the difference between RawXML and RPC message receivers?
With RawXML the methods signature gets OMElement input and output? If I don't want to change my business class I have to use RPCMessageReceiver, right?

2) can I use patterns like: "*" or multiple operations names like "getString getInt"  to publish a bunch of operations?

3) If I don't specify any operation inside my <service> element all operations are published. Can I set the messageReceiver to use for all operations?

4) My resulting wsdl file is literal but I want ther rpc encoded style. How can I change this?

thx a lot
Dominik
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


Re: some axis2 deployment questions

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

please see my in line comments.

SOA Work wrote:

>Hi,
>
>I'm going to publish a simple service using axis2 war distribution.
>Now I'm running into some (maybe simple) questions, which I can not solve with the user guide:
>
>1) what's the difference between RawXML and RPC message receivers?
>With RawXML the methods signature gets OMElement input and output? If I don't want to change my business class I have to use RPCMessageReceiver, right?
>  
>
RPCMessageReciver does not mean RPC style in WSDL , it is just Java
reflection based message receiver and which can handler simple types ,
and array of them , ArratList and OMElemnts. RawXML is just to handle OM
in OM out case. Yes if you are not going to your business class then you
have to use RPCMessage receiver or you have to write your own message
receiver.

>2) can I use patterns like: "*" or multiple operations names like "getString getInt"  to publish a bunch of operations?
>
>  
>
In the current impl  if you dont specify any of the operation in
services.xml then all the public method will be published , but soon
there will be way to exclude some of them.

>3) If I don't specify any operation inside my <service> element all operations are published. Can I set the messageReceiver to use for all operations?
>
>  
>
yes you can , and you can do that  by adding following entry in services.xml

  <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>

>4) My resulting wsdl file is literal but I want ther rpc encoded style. How can I change this?
>  
>
hmmm , the wsdl you are getting is auto generated one , and we only
generate doc-lit wsdl , if you want to use rpc you have to write your
own rpc wsdl and put that into META-INF directory of the service aar.

>thx a lot
>Dominik
>______________________________________________________________
>Verschicken Sie romantische, coole und witzige Bilder per SMS!
>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>
>
>  
>

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



Re: some axis2 deployment questions

Posted by robert lazarski <ro...@gmail.com>.
See my responses inline:

On 3/14/06, SOA Work <so...@web.de> wrote:
>
>
> Hi,
>
> I'm going to publish a simple service using axis2 war distribution.
> Now I'm running into some (maybe simple) questions, which I can not solve
> with the user guide:
>
> 1) what's the difference between RawXML and RPC message receivers?
> With RawXML the methods signature gets OMElement input and output? If I
> don't want to change my business class I have to use RPCMessageReceiver,
> right?



I haven't used RPCMessageReceiver - but the version.aar does and it just
returns a String - unlike the other recievers that use OMElement.
RPCCallTest also works with Strings.

2) can I use patterns like: "*" or multiple operations names like "getString
> getInt"  to publish a bunch of operations?



I believe just * is supported.

3) If I don't specify any operation inside my <service> element all
> operations are published. Can I set the messageReceiver to use for all
> operations?


Not sure.

4) My resulting wsdl file is literal but I want ther rpc encoded style. How
can I change this?
rpc encoded currently is not supported.

thx a lot
> Dominik
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>