+1 from me.
I assume you will do the honors? :).
Sanjiva.
Saminda Abeyruwan wrote:
Hi,
There might be a service which will provide information about the
service and operations deployed in the system. What it will be doing is
it will look at the all the operations and tries to get all the message
in a generic way. If we do not have the proposed method, there will be a
set of if conditions which will check for each and every MEP and if
there is a custom MEP, then it won't scale. That is why I proposed to
have getAllMessages() method.
Thank you
Saminda
On 5/5/07, *Eran Chinthaka* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Saminda,
> Hi All,
>
> We could get the AxisMessage from the given AxisOperation using the
> AxisOperation.getMessage(String label); In order to get the
AxisMessage
> we should know the MEP before hand
Well
1. AxisOperation has a method to know the MEP. see
AxisOperation.getAxisSpecifMEPConstant().
2. AxisOperation is an abstract class so you will always have a specific
implementation for the particular MEP in use which you can use with
instanceof to check the MEP.
So I hope this will help you to get the MEP from AxisOperation.
> and should know the value of the
> label. IMHO there is no way to get the AxisMessages from a given
> AxisOperation. Shall we introduce a method,
>
> *public AxisMessage[] getMessages()* to AxisOperation to the
> AxisMessages from AxisOperation.
I don't think this will help you in any means. The reason is this. If
you know the MEP, from one of the above methods, you will know what the
default message labels are. So use it to get the messages.
#1. If you do not know the label of the messages, in runtime, then how
can you get the relevant message even if you have all the messages. If
they have custom labels, then you must know them before hand even to
process the messages. If you know the custom label, you can call the
existing message.
#2. If you have a MEP, which is different from existing ones, then you
need lot more things to be done in addition to this ;)
I assume Saminda has a very good point to ask this question. Saminda,
you wanna explain exactly what you are trying to do?
Thanks,
Eran Chinthaka
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGO/6cjON2uBzUhh8RAr5CAJ9VWva3J2Pk1XK652oBWKIqug0GMgCgs99w
CtrA9CUSNEu4brGOJSGL3k8=
=wdRU
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
--
Saminda Abeyruwan
Software Engineer
WSO2 Inc. - www.wso2.org <http://www.wso2.org>
--
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]