Hi, I am able to fix the issue, Thanks to you all. Actually my Client Stub has a default constructor which takes the default end point url which is my web service url. But If I use this construcor to get the response four times in a sequence I was not able to get correct responses. So, now I am giving end point url from the code where I am connecting Client Stub appended with some dynamic parameter So that every time client can create new EndPointReference my issue got fixed with this. Now I can see correct responses corresponding to the request I am passing. What exactly the issue is with the axis2 I am not able to guess in case if I am using same endpoint url in a sequnce for some number of time. But for now I can go with this fix. Thanks & Regards Mohammad Emran Pasha ---------------------------------------- Accenture Services Pvt.Ltd. IBC Knowledge Park 4/1,Bannerghatta Road Bangalore 560 029. ---------------------------------------- off :+ 91-80-39162354 Mob :+91-9844919629
________________________________ From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Sun 10/12/2008 10:49 PM To: [email protected] Subject: Re: Hep Needed:Response is not corresponding to the current request passed On Sat, Oct 11, 2008 at 12:28 PM, <[EMAIL PROTECTED]> wrote: Hi , I am new for axis2-1.4. I am not sure what does it mean by blocking call. But here is the process i followed to generate my client stub and the client calls. wsdl2java -uri C:\sample.wsdl -p sample -d xmlbeans -s String folder = "a"; try { System.out.println("RESPONSE FROM KANA WEB SERVICE"); getObjectReq = GetObjectDocument.Factory.newInstance(); getObjectData = getObjectReq.addNewObject(); //set the parameters getObjectData.setFolder(folder); /*Get the getObjectResponse*/ stub = new Stub(); getObjectListResDoc = stub.getObjectList(getObjectListDocReq); this means you are doing a blocking call. i.e. your client thread is blocked until the response comes. isn't this response match with the request. Can you have a look at with the tcp mon. thanks, Amila. System.out.println("HELP RESPONSE+++++++++++++" + getObjectListResDoc); folder = "b"; System.out.println("RESPONSE FROM KANA WEB SERVICE"); getObjectReq = GetObjectDocument.Factory.newInstance(); getObjectData = getObjectReq.addNewObject(); //set the parameters getObjectData.setFolder(folder); /*Get the getObjectResponse*/ stub = new Stub(); getObjectListResDoc = stub.getObjectList(getObjectListDocReq); System.out.println("HELP RESPONSE+++++++++++++" + getObjectListResDoc); folder = "c"; System.out.println("RESPONSE FROM KANA WEB SERVICE"); getObjectReq = GetObjectDocument.Factory.newInstance(); getObjectData = getObjectReq.addNewObject(); //set the parameters getObjectData.setFolder(folder); /*Get the getObjectResponse*/ stub = new Stub(); getObjectListResDoc = stub.getObjectList(getObjectListDocReq); System.out.println("HELP RESPONSE+++++++++++++" + getObjectListResDoc); folder = "d"; System.out.println("RESPONSE FROM KANA WEB SERVICE"); getObjectReq = GetObjectDocument.Factory.newInstance(); getObjectData = getObjectReq.addNewObject(); //set the parameters getObjectData.setFolder(folder); /*Get the getObjectResponse*/ stub = new Stub(); getObjectListResDoc = stub.getObjectList(getObjectListDocReq); System.out.println("HELP RESPONSE+++++++++++++" + getObjectListResDoc); } catch(Exception ex) { ex.printStackTrace(); } Above pasted code is one java class where i am making four calls to my web service through client stub generated using axis2-1.4 jars. Is this information is sufficient to decide what call i am making through axis to webservice. Or else please send me some more information how can i decide which type of call i am making here in my case. If you get what can be the issue here plese reyply to me as soon as possible. Advanced thanks to all of you. Thanks & Regards Mohammad Emran Pasha ---------------------------------------- Accenture Services Pvt.Ltd. IBC Knowledge Park 4/1,Bannerghatta Road Bangalore 560 029. ---------------------------------------- off :+ 91-80-39162354 Mob :+91-9844919629 ________________________________ From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Fri 10/10/2008 11:57 PM To: [email protected] Subject: RE: Hep Needed:Response is not corresponding to the current request passed re-asking deepals original question a)is the client stub making the request in a blocking call? b)is the client stub making one thread/call ? Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. ________________________________ Subject: RE: Hep Needed:Response is not corresponding to the current request passed Date: Fri, 10 Oct 2008 18:52:06 +0530 From: [EMAIL PROTECTED] To: [email protected] I have two scenarios here: I am actually working with weblogic portals. In the first scenario I have four different portels, each portlet calls the clent stub once with the differnet input values. In the second scenario one portlet calls my client stub four times in a loop. In both the cases I cant see the appropriate responses for the passed request. Please let me know if you need any more information, I am trying to resolve this issue since last one weak but no luck. Thanks & Regards Mohammad Emran Pasha ---------------------------------------- Accenture Services Pvt.Ltd. IBC Knowledge Park 4/1,Bannerghatta Road Bangalore 560 029. ---------------------------------------- off :+ 91-80-39162354 Mob :+91-9844919629 ________________________________ From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Fri 10/10/2008 6:40 PM To: [email protected] Subject: Re: Hep Needed:Response is not corresponding to the current request passed If you are calling blocking manner I can not understand how this happen , is it a a loop or multiple threads ? -Deepal > Hi, > > I am using client stub generated using axis2-1.4 jars. > > In my scenario I pass four different set of inputs in a loop. Means I call my client stub four times in a loop with four different set of inputs. > Example: > getObjectReq = GetObjectDoc.Factory.newInstance(); > getObjectData = getObjectReq.addNewGetObjectList(); > //set the parameters > getObjectData.setFolder(folder); > getObjectData.setPartner(PARTNER_VZ); > getObjectData.setProduct(servType); > getObjectData.setRegion(servRegion); > getObjectData.setAuthKey(authId); > /*Get the getObjectListResponse*/ > stub = new Stub(); > getObjectRes = stub.getObjectRes(getObjectReq); > > Now If Iam calling this Web Service call four times, response is not coming corresponding to the request we are passing. Responses are not in a some logical order also. > > Can you please let me know If this issue is already fixed, Or it's a known bug in axis2-1.4. I tried using axis2-1.4.1 also but still the same issue with the responses returning from axis. > > Thanks & Regards > Mohammad Emran Pasha > ---------------------------------------- > Accenture Services Pvt.Ltd. > IBC Knowledge Park > 4/1,Bannerghatta Road > Bangalore 560 029. > ---------------------------------------- > off :+ 91-80-39162354 > Mob :+91-9844919629 > > > > > This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Thank you! http://blogs.deepal.org <http://blogs.deepal.org/> <http://blogs.deepal.org/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ________________________________ See how Windows connects the people, information, and fun that are part of your life. See Now <http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
