ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance Waterman" <lance.water...@gmail.com>
Subject Re: How to access ODE process from a Java Client ?
Date Thu, 02 Nov 2006 14:48:37 GMT
Sam,

Take a look at bpel-test. This JUnit project invokes ODE through its Java
API.

Lance

On 11/2/06, sam tam <samav8nenthu@gmail.com> wrote:
>
> Hello,
>
> Is there someother way to access the BPEL process other than sending SOAP
> messages  ?
>
> If so plz can anyone plz post it ?
>
> I saw this code  for ActiveBPEL  in  their website ?
>
>
> public class TestClient
> {
>   public static void main(String [] args)
>   {
>    try {
>        String endpoint =
>          "http://localhost:8080/active-bpel/services/echoService";
>
>        Service service = new Service();
>        Call call = (Call) service.createCall();
>
>        call.setTargetEndpointAddress( new java.net.URL(endpoint) );
>        call.setOperationName(
>               new QName("http://activebpel.org/echoDefs", "echo") );
>        call.addParameter("echoPart1", org.apache.axis.Constants.XSD_STRING
> ,
>               ParameterMode.IN);
>        call.addParameter("echoPart2", org.apache.axis.Constants.XSD_STRING
> ,
>               ParameterMode.IN);
>        call.setReturnType(org.apache.axis.Constants.XSD_STRING);
>
>        String ret = (String) call.invoke(
>        new Object[] { "Hello, ", "World!" } );
>
>        System.out.println("Sent 'Hello, ' and 'World!', got '"
>                             + ret + "'");
>     } catch (Exception e) {
>        System.err.println(e.toString());
>     }
>   }
> }
>
>
> Do we have some thing like that in Apache ODE to access the HelloWorld
> BPEL
> process ?
>
>
> Thanx in Advance !
>
> Sam ...Tam...
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message