RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-18 Thread nancy

Hi,

If use axis2 I have implemented the Testclient and get my work done in
following way:

import com.oracle.services.bpel.task.*;
import org.apache.axis.message.*;
import javax.xml.soap.Name;

public class TaskTest {

public static void main(String [] args) throws Exception {


TaskManagerBindingStub stub = null;
try {
stub = (TaskManagerBindingStub)
new TaskManager_ServiceLocator().getTaskManagerPort();
}
catch (javax.xml.rpc.ServiceException jre) {
jre.printStackTrace();
}

String conversationId = "c568752ccc493590:aadc97:10aab37fa81:-7f93";
javax.xml.namespace.QName qname= new
javax.xml.namespace.QName("http://schemas.xmlsoap.org/ws/2003/03/addressing";
,"MessageID");
SOAPHeaderElement el = new SOAPHeaderElement(qname, conversationId);
SOAPEnvelope se = new SOAPEnvelope(); 
Name name = se.createName("rootId", "nsbpel",
"http://schemas.oracle.com/bpel";);
el.addAttribute(name, conversationId);
name = se.createName("parentId", "nsbpel",
"http://schemas.oracle.com/bpel";);
el.addAttribute(name, conversationId); 
name = se.createName("priority", "nsbpel",
"http://schemas.oracle.com/bpel";);
el.addAttribute(name, "0");

stub.setHeader(el);

//   Set up the object which will be the input message
//   Note that this Java bean is generated by wsdl2java
Task   tsk=new Task( );
tsk.setCustomKey("14");//bpel process1 ID
tsk.setPriority(new Integer(0));
tsk.setConclusion( "approved");
tsk.setAttachment( "approved");
//   Make the actual call
stub.completeTask(tsk);

System.out.println("TaskManager  BPEL process completed!");
}
}

But I want to use axis2.Now can you find a way to do same as above with
axis2.As axis2 doesn't generate stubs (etc) as in axis1.

Thanks,
Nancy





-----Original Message-----
From: Srinath Perera [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 15, 2006 8:05 PM
To: axis-user@ws.apache.org
Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
particular instance of that webservice?

you can do something like check for conversationID for service
instance, if it is null create one .. from second instance it will be
pick up

If you are writing a new message reciver you can not use generated
code, as gen code add a new mesage receiver. If you can manage without
data binding you can extend from RawXMLInOutMessageReciver and just
overide the method I mentioned. In your service.xml provide your
message reciver

Thanks
Srinath

On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> 1) Can you tell how I can apply this patch?
>
> 2) To pick up my service instance from a
> Hash map at configuration context map must be populated with that instance
> .How will this map get populated? And I don't having prior experience with
> web services. So I need step wise explanation to implement the Message
> receiver. I have only implemented BPEL process which I am using as web
> service. So I will need your help.
>
> Thanks and regards
> Nancy Aggarwal
>
>
>
> -Original Message-
> From: Srinath Perera [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 15, 2006 5:16 PM
> To: axis-user@ws.apache.org
> Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
>
> Hi Nancy;
>
> As I understood your BPEL2 is stateful and you need same instance to
> be called across number of instances.
>
> 1) if http://issues.apache.org/jira/browse/AXIS2-532 covers your
> senario, and it is integrated
> to main tree (Sorry I was not involved on this, so I do not know) you
> can use it. May be Rajith can shed somelight on this
>
> 2) implement a custom Message Reciver,that do the session for you. You
> have a to introduce a new header and overide
>
>  protected Object getTheImplementationObject(MessageContext
> msgContext) throws AxisFault;
>
> method to lookup the header and pick up your service instance from a
> hashmap at configuration context. (You have to add a new Map)
>
> This method is called before service impl invocaion to locate the
> service instance. Let me know if you plan to do this I will give more
> info
>
>
> Thanks
> Srinath
>
>
> You have two options
> On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> > Hi Ali,
> >
> > Yah you can say that scenario is like this.
> >
> >convID2
> > client2 > BPEL2
> >
> > -Original Message-
> > From: Ali Sadik Ku

Re: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread Srinath Perera
you can do something like check for conversationID for service
instance, if it is null create one .. from second instance it will be
pick up

If you are writing a new message reciver you can not use generated
code, as gen code add a new mesage receiver. If you can manage without
data binding you can extend from RawXMLInOutMessageReciver and just
overide the method I mentioned. In your service.xml provide your
message reciver

Thanks
Srinath

On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> 1) Can you tell how I can apply this patch?
>
> 2) To pick up my service instance from a
> Hash map at configuration context map must be populated with that instance
> .How will this map get populated? And I don't having prior experience with
> web services. So I need step wise explanation to implement the Message
> receiver. I have only implemented BPEL process which I am using as web
> service. So I will need your help.
>
> Thanks and regards
> Nancy Aggarwal
>
>
>
> -Original Message-
> From: Srinath Perera [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 15, 2006 5:16 PM
> To: axis-user@ws.apache.org
> Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
>
> Hi Nancy;
>
> As I understood your BPEL2 is stateful and you need same instance to
> be called across number of instances.
>
> 1) if http://issues.apache.org/jira/browse/AXIS2-532 covers your
> senario, and it is integrated
> to main tree (Sorry I was not involved on this, so I do not know) you
> can use it. May be Rajith can shed somelight on this
>
> 2) implement a custom Message Reciver,that do the session for you. You
> have a to introduce a new header and overide
>
>  protected Object getTheImplementationObject(MessageContext
> msgContext) throws AxisFault;
>
> method to lookup the header and pick up your service instance from a
> hashmap at configuration context. (You have to add a new Map)
>
> This method is called before service impl invocaion to locate the
> service instance. Let me know if you plan to do this I will give more
> info
>
>
> Thanks
> Srinath
>
>
> You have two options
> On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> > Hi Ali,
> >
> > Yah you can say that scenario is like this.
> >
> >convID2
> > client2 ----> BPEL2
> >
> > -----Original Message-----
> > From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, April 15, 2006 3:05 PM
> > To: axis-user@ws.apache.org
> > Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a
> > particular instance of that webservice?
> >
> > Hi Nancy,
> >
> > I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
> > and BPEL, wanted to understand your scenario clearly.
> >
> > AFAIK, you are able to do following:
> >
> > client > BPEL1 --> BPEL2
> ><---<--
> >   convID1 & convID2   convID2
> >
> >
> > and want to accomplish following:
> >
> >convID2
> > client2 > BPEL2
> >
> > Do you?
> >
> > Thanks,
> >
> > Ali Sadik Kumlali
> >
> >
> > --- nancy <[EMAIL PROTECTED]> wrote:
> >
> > > Hi Srinath,
> > >
> > > I am really struck with my problem.
> > >
> > > I think I am not able to clear my problem/requirement through my
> > > queries.
> > >
> > > Let me try once again.
> > >
> > > *I am having two Servers:
> > >
> > > One is Tomcat server in which axis2 is deployed and my web service
> > > java
> > > client (implemented using axis2) is deployed
> > >
> > > Another is BPEL server/engine in which my 2 BPEl web services are
> > > running.
> > >
> > > *Through my client I invoked my first bpel web service which in turn
> > > invoked
> > > second bpel web service.
> > >
> > > *Now to complete my first bpel service I need to complete my second
> > > bpel web
> > > service and I am having the id (conversation id) of the second bpel
> > > process/bpel service instance. I need to create a client of my second
> > > bpel
> > > service through which I need to send message to second bpel service
> > > to
> > > complete.
> > >
> > > And I am unable to implement its Client. That's my problem.
> > >
> > > I hope this clears my requi

RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread nancy
1) Can you tell how I can apply this patch?

2) To pick up my service instance from a
Hash map at configuration context map must be populated with that instance
.How will this map get populated? And I don't having prior experience with
web services. So I need step wise explanation to implement the Message
receiver. I have only implemented BPEL process which I am using as web
service. So I will need your help.

Thanks and regards
Nancy Aggarwal



-Original Message-
From: Srinath Perera [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 15, 2006 5:16 PM
To: axis-user@ws.apache.org
Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
particular instance of that webservice?

Hi Nancy;

As I understood your BPEL2 is stateful and you need same instance to
be called across number of instances.

1) if http://issues.apache.org/jira/browse/AXIS2-532 covers your
senario, and it is integrated
to main tree (Sorry I was not involved on this, so I do not know) you
can use it. May be Rajith can shed somelight on this

2) implement a custom Message Reciver,that do the session for you. You
have a to introduce a new header and overide

 protected Object getTheImplementationObject(MessageContext
msgContext) throws AxisFault;

method to lookup the header and pick up your service instance from a
hashmap at configuration context. (You have to add a new Map)

This method is called before service impl invocaion to locate the
service instance. Let me know if you plan to do this I will give more
info


Thanks
Srinath


You have two options
On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> Hi Ali,
>
> Yah you can say that scenario is like this.
>
>convID2
> client2 > BPEL2
>
> -Original Message-
> From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 15, 2006 3:05 PM
> To: axis-user@ws.apache.org
> Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
>
> Hi Nancy,
>
> I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
> and BPEL, wanted to understand your scenario clearly.
>
> AFAIK, you are able to do following:
>
> client > BPEL1 --> BPEL2
><---<--
>   convID1 & convID2   convID2
>
>
> and want to accomplish following:
>
>convID2
> client2 > BPEL2
>
> Do you?
>
> Thanks,
>
> Ali Sadik Kumlali
>
>
> --- nancy <[EMAIL PROTECTED]> wrote:
>
> > Hi Srinath,
> >
> > I am really struck with my problem.
> >
> > I think I am not able to clear my problem/requirement through my
> > queries.
> >
> > Let me try once again.
> >
> > *I am having two Servers:
> >
> > One is Tomcat server in which axis2 is deployed and my web service
> > java
> > client (implemented using axis2) is deployed
> >
> > Another is BPEL server/engine in which my 2 BPEl web services are
> > running.
> >
> > *Through my client I invoked my first bpel web service which in turn
> > invoked
> > second bpel web service.
> >
> > *Now to complete my first bpel service I need to complete my second
> > bpel web
> > service and I am having the id (conversation id) of the second bpel
> > process/bpel service instance. I need to create a client of my second
> > bpel
> > service through which I need to send message to second bpel service
> > to
> > complete.
> >
> > And I am unable to implement its Client. That's my problem.
> >
> > I hope this clears my requirement. Please suggest something ASAP. Can
> > you
> > give any example?
> >
> >
> >
> >
> > -Original Message-
> > From: Srinath Perera [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 14, 2006 4:26 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> > particular instance of that webservice?
> >
> > Hi Nancy;
> >
> > check these are they what you need. If not you have to implemented
> > conversation with handlers.
> >
> > http://issues.apache.org/jira/browse/AXIS2-532
> > http://issues.apache.org/jira/browse/AXIS2-548
> >
> > Generally Web Services are stateless, I do not know specific header
> > we
> > used to transfer conversation ID. Any way good luck
> > Srinath
> >
> > On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > >
> > > Please tell how can I interact with a webservice instan

Re: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread Srinath Perera
Hi Nancy;

As I understood your BPEL2 is stateful and you need same instance to
be called across number of instances.

1) if http://issues.apache.org/jira/browse/AXIS2-532 covers your
senario, and it is integrated
to main tree (Sorry I was not involved on this, so I do not know) you
can use it. May be Rajith can shed somelight on this

2) implement a custom Message Reciver,that do the session for you. You
have a to introduce a new header and overide

 protected Object getTheImplementationObject(MessageContext
msgContext) throws AxisFault;

method to lookup the header and pick up your service instance from a
hashmap at configuration context. (You have to add a new Map)

This method is called before service impl invocaion to locate the
service instance. Let me know if you plan to do this I will give more
info


Thanks
Srinath


You have two options
On 4/15/06, nancy <[EMAIL PROTECTED]> wrote:
> Hi Ali,
>
> Yah you can say that scenario is like this.
>
>convID2
> client2 > BPEL2
>
> -Original Message-
> From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 15, 2006 3:05 PM
> To: axis-user@ws.apache.org
> Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
>
> Hi Nancy,
>
> I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
> and BPEL, wanted to understand your scenario clearly.
>
> AFAIK, you are able to do following:
>
> client > BPEL1 --> BPEL2
><---<--
>   convID1 & convID2   convID2
>
>
> and want to accomplish following:
>
>convID2
> client2 > BPEL2
>
> Do you?
>
> Thanks,
>
> Ali Sadik Kumlali
>
>
> --- nancy <[EMAIL PROTECTED]> wrote:
>
> > Hi Srinath,
> >
> > I am really struck with my problem.
> >
> > I think I am not able to clear my problem/requirement through my
> > queries.
> >
> > Let me try once again.
> >
> > *I am having two Servers:
> >
> > One is Tomcat server in which axis2 is deployed and my web service
> > java
> > client (implemented using axis2) is deployed
> >
> > Another is BPEL server/engine in which my 2 BPEl web services are
> > running.
> >
> > *Through my client I invoked my first bpel web service which in turn
> > invoked
> > second bpel web service.
> >
> > *Now to complete my first bpel service I need to complete my second
> > bpel web
> > service and I am having the id (conversation id) of the second bpel
> > process/bpel service instance. I need to create a client of my second
> > bpel
> > service through which I need to send message to second bpel service
> > to
> > complete.
> >
> > And I am unable to implement its Client. That's my problem.
> >
> > I hope this clears my requirement. Please suggest something ASAP. Can
> > you
> > give any example?
> >
> >
> >
> >
> > -Original Message-
> > From: Srinath Perera [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 14, 2006 4:26 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> > particular instance of that webservice?
> >
> > Hi Nancy;
> >
> > check these are they what you need. If not you have to implemented
> > conversation with handlers.
> >
> > http://issues.apache.org/jira/browse/AXIS2-532
> > http://issues.apache.org/jira/browse/AXIS2-548
> >
> > Generally Web Services are stateless, I do not know specific header
> > we
> > used to transfer conversation ID. Any way good luck
> > Srinath
> >
> > On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > >
> > > Please tell how can I interact with a webservice instance created
> > somewhere
> > > else by setting its conversationid.?
> > >
> > >  
> > >
> > >
> > > From: nancy [mailto:[EMAIL PROTECTED]
> > >  Sent: Wednesday, April 12, 2006 1:31 PM
> > >  To: 'axis-user@ws.apache.org'
> > >  Subject: RE: [Axis2] How to send message to a particular instance
> > of that
> > > webservice?
> > >
> > >
> > >
> > > Is there no way to set Conversation id or soap header in stub in
> > axis2?
> > >
> > > In Axis1, in binding stub generated by axis there were methods

RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread nancy
Hi Ali,

Yah you can say that scenario is like this.

   convID2
client2 > BPEL2

-Original Message-
From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 15, 2006 3:05 PM
To: axis-user@ws.apache.org
Subject: RE: VERY URGENT Please HELP[Axis2] How to send message to a
particular instance of that webservice?

Hi Nancy,

I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
and BPEL, wanted to understand your scenario clearly.

AFAIK, you are able to do following:

client > BPEL1 --> BPEL2
   <---<--
  convID1 & convID2   convID2


and want to accomplish following:

   convID2
client2 > BPEL2

Do you?

Thanks,

Ali Sadik Kumlali


--- nancy <[EMAIL PROTECTED]> wrote:

> Hi Srinath,
> 
> I am really struck with my problem.
> 
> I think I am not able to clear my problem/requirement through my
> queries.
> 
> Let me try once again.
> 
> *I am having two Servers:
> 
> One is Tomcat server in which axis2 is deployed and my web service
> java
> client (implemented using axis2) is deployed
> 
> Another is BPEL server/engine in which my 2 BPEl web services are
> running.
> 
> *Through my client I invoked my first bpel web service which in turn
> invoked
> second bpel web service.
> 
> *Now to complete my first bpel service I need to complete my second
> bpel web
> service and I am having the id (conversation id) of the second bpel
> process/bpel service instance. I need to create a client of my second
> bpel
> service through which I need to send message to second bpel service
> to
> complete.
> 
> And I am unable to implement its Client. That's my problem.
> 
> I hope this clears my requirement. Please suggest something ASAP. Can
> you
> give any example?
> 
> 
> 
> 
> -Original Message-----
> From: Srinath Perera [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 14, 2006 4:26 PM
> To: axis-user@ws.apache.org
> Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
> 
> Hi Nancy;
> 
> check these are they what you need. If not you have to implemented
> conversation with handlers.
> 
> http://issues.apache.org/jira/browse/AXIS2-532
> http://issues.apache.org/jira/browse/AXIS2-548
> 
> Generally Web Services are stateless, I do not know specific header
> we
> used to transfer conversation ID. Any way good luck
> Srinath
> 
> On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > Please tell how can I interact with a webservice instance created
> somewhere
> > else by setting its conversationid.?
> >
> >  
> >
> >
> > From: nancy [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 12, 2006 1:31 PM
> >  To: 'axis-user@ws.apache.org'
> >  Subject: RE: [Axis2] How to send message to a particular instance
> of that
> > webservice?
> >
> >
> >
> > Is there no way to set Conversation id or soap header in stub in
> axis2?
> >
> > In Axis1, in binding stub generated by axis there were methods to
> set
> > header, timeout etc. What is the way to do all this with stubs
> generated
> by
> > axis2?
> >
> > Please Help
> >
> >
> >
> >
> >
> >  
> >
> >
> > From: nancy [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 12, 2006 1:06 PM
> >  To: axis-user@ws.apache.org
> >  Subject: [Axis2] How to send message to a particular instance of
> that
> > webservice?
> >
> >
> >
> > Hi,
> >
> >
> >
> > I want to use Axis2 to create client for invoking the web service
> running
> in
> > BPEL Engine. I have successfully created stub using my BPEl web
> service's
> > wsdl. My BPEL service1 invoke another BPEL service2.I have
> successfully
> > invoked BPEL service1.But when it invokes service2, I need to send
> a
> message
> > to webservice2 using its conversation ID. I have created stub for
> second
> web
> > service also. But can't find a way how to send message to a
> particular
> > instance of that webservice2.
> >
> >
> >
> > Please Help!!!
> >
> >
> >
> > Thanks and regards,
> >
> > Nancy Aggarwal
> 
> 
> --
> 
> Srinath Perera:
>http://www.cs.indiana.edu/~hperera/
>http://www.bloglines.com/blog/hemapani
> 
> 


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



RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-15 Thread Ali Sadik Kumlali
Hi Nancy,

I'm examining BPEL solutions nowadays. Since I'm not an expert on Axis2
and BPEL, wanted to understand your scenario clearly.

AFAIK, you are able to do following:

client > BPEL1 --> BPEL2
   <---<--
  convID1 & convID2   convID2


and want to accomplish following:

   convID2
client2 > BPEL2

Do you?

Thanks,

Ali Sadik Kumlali


--- nancy <[EMAIL PROTECTED]> wrote:

> Hi Srinath,
> 
> I am really struck with my problem.
> 
> I think I am not able to clear my problem/requirement through my
> queries.
> 
> Let me try once again.
> 
> *I am having two Servers:
> 
> One is Tomcat server in which axis2 is deployed and my web service
> java
> client (implemented using axis2) is deployed
> 
> Another is BPEL server/engine in which my 2 BPEl web services are
> running.
> 
> *Through my client I invoked my first bpel web service which in turn
> invoked
> second bpel web service.
> 
> *Now to complete my first bpel service I need to complete my second
> bpel web
> service and I am having the id (conversation id) of the second bpel
> process/bpel service instance. I need to create a client of my second
> bpel
> service through which I need to send message to second bpel service
> to
> complete.
> 
> And I am unable to implement its Client. That's my problem.
> 
> I hope this clears my requirement. Please suggest something ASAP. Can
> you
> give any example?
> 
> 
> 
> 
> -----Original Message-
> From: Srinath Perera [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 14, 2006 4:26 PM
> To: axis-user@ws.apache.org
> Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
> particular instance of that webservice?
> 
> Hi Nancy;
> 
> check these are they what you need. If not you have to implemented
> conversation with handlers.
> 
> http://issues.apache.org/jira/browse/AXIS2-532
> http://issues.apache.org/jira/browse/AXIS2-548
> 
> Generally Web Services are stateless, I do not know specific header
> we
> used to transfer conversation ID. Any way good luck
> Srinath
> 
> On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > Please tell how can I interact with a webservice instance created
> somewhere
> > else by setting its conversationid.?
> >
> >  
> >
> >
> > From: nancy [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 12, 2006 1:31 PM
> >  To: 'axis-user@ws.apache.org'
> >  Subject: RE: [Axis2] How to send message to a particular instance
> of that
> > webservice?
> >
> >
> >
> > Is there no way to set Conversation id or soap header in stub in
> axis2?
> >
> > In Axis1, in binding stub generated by axis there were methods to
> set
> > header, timeout etc. What is the way to do all this with stubs
> generated
> by
> > axis2?
> >
> > Please Help
> >
> >
> >
> >
> >
> >  
> >
> >
> > From: nancy [mailto:[EMAIL PROTECTED]
> >  Sent: Wednesday, April 12, 2006 1:06 PM
> >  To: axis-user@ws.apache.org
> >  Subject: [Axis2] How to send message to a particular instance of
> that
> > webservice?
> >
> >
> >
> > Hi,
> >
> >
> >
> > I want to use Axis2 to create client for invoking the web service
> running
> in
> > BPEL Engine. I have successfully created stub using my BPEl web
> service's
> > wsdl. My BPEL service1 invoke another BPEL service2.I have
> successfully
> > invoked BPEL service1.But when it invokes service2, I need to send
> a
> message
> > to webservice2 using its conversation ID. I have created stub for
> second
> web
> > service also. But can't find a way how to send message to a
> particular
> > instance of that webservice2.
> >
> >
> >
> > Please Help!!!
> >
> >
> >
> > Thanks and regards,
> >
> > Nancy Aggarwal
> 
> 
> --
> 
> Srinath Perera:
>http://www.cs.indiana.edu/~hperera/
>http://www.bloglines.com/blog/hemapani
> 
> 


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


RE: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-14 Thread nancy
Hi Srinath,

I am really struck with my problem.

I think I am not able to clear my problem/requirement through my queries.

Let me try once again.

*I am having two Servers:

One is Tomcat server in which axis2 is deployed and my web service java
client (implemented using axis2) is deployed

Another is BPEL server/engine in which my 2 BPEl web services are running.

*Through my client I invoked my first bpel web service which in turn invoked
second bpel web service.

*Now to complete my first bpel service I need to complete my second bpel web
service and I am having the id (conversation id) of the second bpel
process/bpel service instance. I need to create a client of my second bpel
service through which I need to send message to second bpel service to
complete.

And I am unable to implement its Client. That's my problem.

I hope this clears my requirement. Please suggest something ASAP. Can you
give any example?




-Original Message-
From: Srinath Perera [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 14, 2006 4:26 PM
To: axis-user@ws.apache.org
Subject: Re: VERY URGENT Please HELP[Axis2] How to send message to a
particular instance of that webservice?

Hi Nancy;

check these are they what you need. If not you have to implemented
conversation with handlers.

http://issues.apache.org/jira/browse/AXIS2-532
http://issues.apache.org/jira/browse/AXIS2-548

Generally Web Services are stateless, I do not know specific header we
used to transfer conversation ID. Any way good luck
Srinath

On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Please tell how can I interact with a webservice instance created
somewhere
> else by setting its conversationid.?
>
>  
>
>
> From: nancy [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, April 12, 2006 1:31 PM
>  To: 'axis-user@ws.apache.org'
>  Subject: RE: [Axis2] How to send message to a particular instance of that
> webservice?
>
>
>
> Is there no way to set Conversation id or soap header in stub in axis2?
>
> In Axis1, in binding stub generated by axis there were methods to set
> header, timeout etc. What is the way to do all this with stubs generated
by
> axis2?
>
> Please Help
>
>
>
>
>
>  
>
>
> From: nancy [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, April 12, 2006 1:06 PM
>  To: axis-user@ws.apache.org
>  Subject: [Axis2] How to send message to a particular instance of that
> webservice?
>
>
>
> Hi,
>
>
>
> I want to use Axis2 to create client for invoking the web service running
in
> BPEL Engine. I have successfully created stub using my BPEl web service's
> wsdl. My BPEL service1 invoke another BPEL service2.I have successfully
> invoked BPEL service1.But when it invokes service2, I need to send a
message
> to webservice2 using its conversation ID. I have created stub for second
web
> service also. But can't find a way how to send message to a particular
> instance of that webservice2.
>
>
>
> Please Help!!!
>
>
>
> Thanks and regards,
>
> Nancy Aggarwal


--

Srinath Perera:
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani



Re: VERY URGENT Please HELP[Axis2] How to send message to a particular instance of that webservice?

2006-04-14 Thread Srinath Perera
Hi Nancy;

check these are they what you need. If not you have to implemented
conversation with handlers.

http://issues.apache.org/jira/browse/AXIS2-532
http://issues.apache.org/jira/browse/AXIS2-548

Generally Web Services are stateless, I do not know specific header we
used to transfer conversation ID. Any way good luck
Srinath

On 4/12/06, nancy <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Please tell how can I interact with a webservice instance created somewhere
> else by setting its conversationid.?
>
>  
>
>
> From: nancy [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, April 12, 2006 1:31 PM
>  To: 'axis-user@ws.apache.org'
>  Subject: RE: [Axis2] How to send message to a particular instance of that
> webservice?
>
>
>
> Is there no way to set Conversation id or soap header in stub in axis2?
>
> In Axis1, in binding stub generated by axis there were methods to set
> header, timeout etc. What is the way to do all this with stubs generated by
> axis2?
>
> Please Help
>
>
>
>
>
>  
>
>
> From: nancy [mailto:[EMAIL PROTECTED]
>  Sent: Wednesday, April 12, 2006 1:06 PM
>  To: axis-user@ws.apache.org
>  Subject: [Axis2] How to send message to a particular instance of that
> webservice?
>
>
>
> Hi,
>
>
>
> I want to use Axis2 to create client for invoking the web service running in
> BPEL Engine. I have successfully created stub using my BPEl web service's
> wsdl. My BPEL service1 invoke another BPEL service2.I have successfully
> invoked BPEL service1.But when it invokes service2, I need to send a message
> to webservice2 using its conversation ID. I have created stub for second web
> service also. But can't find a way how to send message to a particular
> instance of that webservice2.
>
>
>
> Please Help!!!
>
>
>
> Thanks and regards,
>
> Nancy Aggarwal


--

Srinath Perera:
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani