You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by "ytrewq2002@libero.it" <yt...@libero.it> on 2009/09/29 17:39:50 UTC

web services without wsdl but pure java class

Hi all,

there is a manner to invoke a simple java class as a web service?
for example..if i have to invoke complex web services with a lot of parameters (objects, complex types) it's hard to do it with bpel (it is an hard work, need a lot of variables and variables initialization is hard): need only a simple class that invoke a web service with the correct parameters; so the  bpel process need only to invoke this class passing only parameters as string or simple elements types or just nothing (i mean during bpel invoking call (<invoke>))..

thanks

Roby  


Re: web services without wsdl but pure java class

Posted by Milinda Pathirage <mi...@gmail.com>.
Also if you feel that the data manipulation mechanisms provided by BPEL is
not enough, you can use E4x extensions for data manipulation.
Thanks
Milinda

On Wed, Sep 30, 2009 at 1:37 AM, Rafal Rusin <ra...@gmail.com> wrote:

> 2009/9/29 Karolis Petrauskas <k....@gmail.com>:
> > Hi,
> >
> > On Tue, Sep 29, 2009 at 6:39 PM, ytrewq2002@libero.it
> > <yt...@libero.it> wrote:
> >> Hi all,
> >>
> >> there is a manner to invoke a simple java class as a web service?
> >> for example..if i have to invoke complex web services with a lot of
> parameters (objects, complex types) it's hard to do it with bpel (it is an
> hard work, need a lot of variables and variables initialization is hard):
> need only a simple class that invoke a web service with the correct
> parameters; so the  bpel process need only to invoke this class passing only
> parameters as string or simple elements types or just nothing (i mean during
> bpel invoking call (<invoke>))..
> >>
> >> thanks
> >>
> >> Roby
> >
> >    Bpel is for web services, so you cant invoke anything without
> > wsdl. In my practice, it is easer to do complex initialization of
> > variables using xst instead of multiple copy statements.
> >
> > Karolis Petrauskas
> >
>
> I think you meant xslt.
> It's also convenient to use xquery as expressionLanguage. It looks for
> example like this:
> <doc>
>  <a> {$var} </a>
>  <b> {$var2} </b>
> </doc>
>
> But as for complex invocations, it's not a good idea to pass a lot of
> data between web services. You can consider using external variables
> to store this info in database (for example in id, blob rows) and pass
> only ids.
>
> --
> Rafał Rusin
> http://www.touk.pl
> http://top.touk.pl
> http://www.mimuw.edu.pl/~rrusin
>



-- 
Milinda Pathirage
Senior Software Engineer & Product Manager WSO2 BPS; http://wso2.org/bps
WSO2 Inc.; http://wso2.com
E-mail: milinda@wso2.com, milinda.pathirage@gmail.com
Web: http://mpathirage.com
Blog: http://blog.mpathirage.com

Re: web services without wsdl but pure java class

Posted by Rafal Rusin <ra...@gmail.com>.
2009/9/29 Karolis Petrauskas <k....@gmail.com>:
> Hi,
>
> On Tue, Sep 29, 2009 at 6:39 PM, ytrewq2002@libero.it
> <yt...@libero.it> wrote:
>> Hi all,
>>
>> there is a manner to invoke a simple java class as a web service?
>> for example..if i have to invoke complex web services with a lot of parameters (objects, complex types) it's hard to do it with bpel (it is an hard work, need a lot of variables and variables initialization is hard): need only a simple class that invoke a web service with the correct parameters; so the  bpel process need only to invoke this class passing only parameters as string or simple elements types or just nothing (i mean during bpel invoking call (<invoke>))..
>>
>> thanks
>>
>> Roby
>
>    Bpel is for web services, so you cant invoke anything without
> wsdl. In my practice, it is easer to do complex initialization of
> variables using xst instead of multiple copy statements.
>
> Karolis Petrauskas
>

I think you meant xslt.
It's also convenient to use xquery as expressionLanguage. It looks for
example like this:
<doc>
  <a> {$var} </a>
  <b> {$var2} </b>
</doc>

But as for complex invocations, it's not a good idea to pass a lot of
data between web services. You can consider using external variables
to store this info in database (for example in id, blob rows) and pass
only ids.

-- 
Rafał Rusin
http://www.touk.pl
http://top.touk.pl
http://www.mimuw.edu.pl/~rrusin

Re: web services without wsdl but pure java class

Posted by Karolis Petrauskas <k....@gmail.com>.
Hi,

On Tue, Sep 29, 2009 at 6:39 PM, ytrewq2002@libero.it
<yt...@libero.it> wrote:
> Hi all,
>
> there is a manner to invoke a simple java class as a web service?
> for example..if i have to invoke complex web services with a lot of parameters (objects, complex types) it's hard to do it with bpel (it is an hard work, need a lot of variables and variables initialization is hard): need only a simple class that invoke a web service with the correct parameters; so the  bpel process need only to invoke this class passing only parameters as string or simple elements types or just nothing (i mean during bpel invoking call (<invoke>))..
>
> thanks
>
> Roby

    Bpel is for web services, so you cant invoke anything without
wsdl. In my practice, it is easer to do complex initialization of
variables using xst instead of multiple copy statements.

Karolis Petrauskas