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 Wishing Carebear <wi...@gmail.com> on 2006/06/16 20:28:05 UTC
Integration of axis2 for invoking webservices
Hello:
I want to build a tool that has to talk to different webservices by taking
in the wsdl and invoke the webservcie by getting the relevant inputs.
I have just started to look into axis. Wondering if there is any
documentation that talks about how to do the integration with axis2.
Thanks,
cbear
Re: Integration of axis2 for invoking webservices
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
Please see my answers in-line,
> I have some more question in general. If you feel these are silly questions,
> I'm very sorry for taking your time.
> a. If there are complex types in the webservice call, does the ServiceClient
> takes care of the regsitering the complex type or I have to do it
> explicitly.
As for the dynamic client - no. But if you care to generate stubs then
you can ask the code generator to generate java beans for the complex
types. However there is no option in the service client to pass them
in - the sevice client handles the payload at OM level and the
conversion should happen prior to reaching the service client!
> b. With WSDL2Java when the java classes for the client side are generated,
> in some cases, the wsdl url may be available in a development environment.
> But in production environment they will be different and so also the end
> point address, Id there is any way to externalize as properties. I looked
> into it and could not figure it out.
The stub has a constructor which can be passed an endpoint URL.
> Thanks for your time and help.
> regards,
> cbear
>
>
> On 6/17/06, Eran Chinthaka <chinthaka@opensource.lk > wrote:
> > Hi,
> >
> > Its Axis2's client api. In other words that the api client use to invoke
> > web services with Axis2.
> > I strongly recommend you to read our user guide.
> >
> > -- Chinthaka
> >
> > Wishing Carebear wrote:
> > > Chinthaka:
> > > Thanks for your reply.
> > > Could you please explain a little bit about ServiceClient. Is this a
> > > different opensource or art of axis2.
> > >
> > > Thanks,
> > > cbear
> > > On 6/17/06, Ajith Ranabahu <aj...@gmail.com> wrote:
> > >>
> > >> Hi,
> > >> if you are looking into a totally dynamic case also look into the
> > >> possibility of using the serviceClient since there is a mode where you
> > >> can pass in a WSDL to the constructor and get it fully configured!
> > >>
> > >> Ajith
> > >>
> > >> On 6/17/06, Eran Chinthaka <ch...@opensource.lk> wrote:
> > >> > Wishing Carebear wrote:
> > >> > > Hello:
> > >> > > I want to build a tool that has to talk to different webservices by
> > >> taking
> > >> > > in the wsdl and invoke the webservcie by getting the relevant
> inputs.
> > >> > >
> > >> >
> > >> > You can easily do this by creating stubs using Axis2 code generation.
> > >> > Read Axis2 User guide and code generation guide.
> > >> >
> > >> > -- Chinthaka
> > >> >
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >> --
> > >> Ajith Ranabahu
> > >>
> > >>
> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > >> For additional commands, e-mail: axis-user-help@ws.apache.org
> > >>
> > >>
> > >
> >
> >
> >
> >
> >
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Integration of axis2 for invoking webservices
Posted by Wishing Carebear <wi...@gmail.com>.
Thanks for your reply.
I will look into it.
I have some more question in general. If you feel these are silly questions,
I'm very sorry for taking your time.
a. If there are complex types in the webservice call, does the ServiceClient
takes care of the regsitering the complex type or I have to do it
explicitly.
b. With WSDL2Java when the java classes for the client side are generated,
in some cases, the wsdl url may be available in a development environment.
But in production environment they will be different and so also the end
point address, Id there is any way to externalize as properties. I looked
into it and could not figure it out.
Thanks for your time and help.
regards,
cbear
On 6/17/06, Eran Chinthaka <ch...@opensource.lk> wrote:
>
> Hi,
>
> Its Axis2's client api. In other words that the api client use to invoke
> web services with Axis2.
> I strongly recommend you to read our user guide.
>
> -- Chinthaka
>
> Wishing Carebear wrote:
> > Chinthaka:
> > Thanks for your reply.
> > Could you please explain a little bit about ServiceClient. Is this a
> > different opensource or art of axis2.
> >
> > Thanks,
> > cbear
> > On 6/17/06, Ajith Ranabahu <aj...@gmail.com> wrote:
> >>
> >> Hi,
> >> if you are looking into a totally dynamic case also look into the
> >> possibility of using the serviceClient since there is a mode where you
> >> can pass in a WSDL to the constructor and get it fully configured!
> >>
> >> Ajith
> >>
> >> On 6/17/06, Eran Chinthaka <ch...@opensource.lk> wrote:
> >> > Wishing Carebear wrote:
> >> > > Hello:
> >> > > I want to build a tool that has to talk to different webservices by
> >> taking
> >> > > in the wsdl and invoke the webservcie by getting the relevant
> inputs.
> >> > >
> >> >
> >> > You can easily do this by creating stubs using Axis2 code generation.
> >> > Read Axis2 User guide and code generation guide.
> >> >
> >> > -- Chinthaka
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >> --
> >> Ajith Ranabahu
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
>
>
>
>
>
Re: Integration of axis2 for invoking webservices
Posted by Eran Chinthaka <ch...@opensource.lk>.
Hi,
Its Axis2's client api. In other words that the api client use to invoke
web services with Axis2.
I strongly recommend you to read our user guide.
-- Chinthaka
Wishing Carebear wrote:
> Chinthaka:
> Thanks for your reply.
> Could you please explain a little bit about ServiceClient. Is this a
> different opensource or art of axis2.
>
> Thanks,
> cbear
> On 6/17/06, Ajith Ranabahu <aj...@gmail.com> wrote:
>>
>> Hi,
>> if you are looking into a totally dynamic case also look into the
>> possibility of using the serviceClient since there is a mode where you
>> can pass in a WSDL to the constructor and get it fully configured!
>>
>> Ajith
>>
>> On 6/17/06, Eran Chinthaka <ch...@opensource.lk> wrote:
>> > Wishing Carebear wrote:
>> > > Hello:
>> > > I want to build a tool that has to talk to different webservices by
>> taking
>> > > in the wsdl and invoke the webservcie by getting the relevant inputs.
>> > >
>> >
>> > You can easily do this by creating stubs using Axis2 code generation.
>> > Read Axis2 User guide and code generation guide.
>> >
>> > -- Chinthaka
>> >
>> >
>> >
>> >
>>
>>
>> --
>> Ajith Ranabahu
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
Re: Integration of axis2 for invoking webservices
Posted by Wishing Carebear <wi...@gmail.com>.
Chinthaka:
Thanks for your reply.
Could you please explain a little bit about ServiceClient. Is this a
different opensource or art of axis2.
Thanks,
cbear
On 6/17/06, Ajith Ranabahu <aj...@gmail.com> wrote:
>
> Hi,
> if you are looking into a totally dynamic case also look into the
> possibility of using the serviceClient since there is a mode where you
> can pass in a WSDL to the constructor and get it fully configured!
>
> Ajith
>
> On 6/17/06, Eran Chinthaka <ch...@opensource.lk> wrote:
> > Wishing Carebear wrote:
> > > Hello:
> > > I want to build a tool that has to talk to different webservices by
> taking
> > > in the wsdl and invoke the webservcie by getting the relevant inputs.
> > >
> >
> > You can easily do this by creating stubs using Axis2 code generation.
> > Read Axis2 User guide and code generation guide.
> >
> > -- Chinthaka
> >
> >
> >
> >
>
>
> --
> Ajith Ranabahu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
Re: Integration of axis2 for invoking webservices
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
if you are looking into a totally dynamic case also look into the
possibility of using the serviceClient since there is a mode where you
can pass in a WSDL to the constructor and get it fully configured!
Ajith
On 6/17/06, Eran Chinthaka <ch...@opensource.lk> wrote:
> Wishing Carebear wrote:
> > Hello:
> > I want to build a tool that has to talk to different webservices by taking
> > in the wsdl and invoke the webservcie by getting the relevant inputs.
> >
>
> You can easily do this by creating stubs using Axis2 code generation.
> Read Axis2 User guide and code generation guide.
>
> -- Chinthaka
>
>
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Integration of axis2 for invoking webservices
Posted by Eran Chinthaka <ch...@opensource.lk>.
Wishing Carebear wrote:
> Hello:
> I want to build a tool that has to talk to different webservices by taking
> in the wsdl and invoke the webservcie by getting the relevant inputs.
>
You can easily do this by creating stubs using Axis2 code generation.
Read Axis2 User guide and code generation guide.
-- Chinthaka