If you want generic, then you can easily send XML over HTTP,
// assuming Apache Commons httpclient 3.1
import org.apache.commons.httpclient.*
import org.apache.commons.httpclient.methods.*
...
...
PostMethod post = new PostMethod("
http://localhost:8080/ode/processes/HelloWorld");
post.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
post.setRequestBody("<Hello xmlns="http://example.com/HelloWorld
">hello!</Hello>");
int code = (new HttpClient()).executeMethod(post);
if (code == 200) {
System.out.println(post.getResponseBodyAsString)
} else {
System.err.println("Bad response code: "+code);
}
alex
2009/2/14 buddhika chamith <[email protected]>
> Hi,
>
> Yes I can do that. But wouldn't it require a client specific to the
> service?
> Well actually what I want is a generic client or some sort of generic Java
> API to invoke the process as described in
>
> http://otndnld.oracle.co.jp/document/products/as10g/1012/doc_v3/integrate.1012/B14448-01/html/invoke.htmfor
> ORACLE Bpel Process Manager.
>
> Regards,
> Chamith.
>
> On Sat, Feb 14, 2009 at 4:49 PM, Łukasz Budnik <[email protected]
> >wrote:
>
> > Hi Chamith,
> >
> > The easiest way is to invoke ODE process as an ordinary WebService.
> >
> > Try using JAX-WS or Axis2 to invoke your process.
> >
> > best regards
> > Łukasz
> >
> > 2009/2/14 buddhika chamith <[email protected]>:
> > > Hi,
> > >
> > > Can anyone explain how a process deployed in ODE can be invoked from
> > within
> > > a Java program? Any references regarding this is greatly appreciated.
> > >
> > > Regards,
> > > Chamith.
> > >
> >
>