Robert,

Thank you for pointing out that my question was not clear. Now, I rephrase it:

I dynamically discover a WSDL (so, use stub is not a good option). I want
to dynamically find all operations and parameters defined in the WSDL. Then
I choose an operation, discover its parameters. Then pass data and invoke it.

For Axis 1, there is an example DynamicInvoker. It is a good example. I
followed
it, using SymbolTable, BindingEntry ... to do it.

But, for Axis2, I do not know how to do it.
I found AxisService.createClientSideAxisService(). But it require portName...

My question is: I get a WSDL dynamically. How to list all its operation names
and their parameters?

Any information would be appreciated. Thanks in advance.



--- robert lazarski <[EMAIL PROTECTED]> wrote:

> Could you try to rephrase your question? I'm not quite sure what you're
> tying to accomplish. If you have a wsdl, you'll have better luck basing your
> code on examples that do databinding. Take a look at the userguide
> databinding section, as it may help.
> 
> Robert
> http://www.braziloutsource.com/
> 
> On 5/9/06, Wei Jiang <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have a WSDL. I would like to get parameter information of it then invoke
> > an
> > operation.
> > How to do it?
> >
> > All the client example programs (under userguide) do like:
> >
> >             OMElement payload = ClientUtil.getEchoOMElement();
> >             Options options = new Options();
> >             options.setTo(targetEPR);
> >
> >             //Blocking invocation
> >             ServiceClient sender = new ServiceClient();
> >             sender.setOptions(options);
> >             OMElement result = sender.sendReceive(payload);
> >
> > The information of WSDL is passed to ServiceClient when it is invoked.
> > Is there a way to init ServerClient then get parameters before invoke?
> > Is there any examples?
> >
> > Any information would be appreciated. Thanks in advance.
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to