Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 50892 invoked from network); 19 May 2005 13:06:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 May 2005 13:06:43 -0000 Received: (qmail 38931 invoked by uid 500); 19 May 2005 12:00:53 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 38906 invoked by uid 500); 19 May 2005 12:00:51 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 38646 invoked by uid 99); 19 May 2005 12:00:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from Unknown (HELO mail18.ca.com) (155.35.46.20) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 19 May 2005 05:00:46 -0700 Received: from inhyms21.ca.com ([155.35.35.10]) by mail18.ca.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 19 May 2005 17:29:01 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [Axis2] Changed Call method? Date: Thu, 19 May 2005 17:29:01 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Axis2] Changed Call method? Thread-Index: AcVcXZR+J/dNEZx3QQS7nDao5byXEwACmh8g From: "Shahi, Ashutosh" To: , "Srinath Perera" X-OriginalArrivalTime: 19 May 2005 11:59:01.0420 (UTC) FILETIME=[256E46C0:01C55C6A] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Srinath, Looking to confirm what u said,I noticed following code in InvokeBlocking() method: if (isEnvelope) { return resEnvelope; } else { return resEnvelope.getBody().getFirstElement(); } And in prepareTheSystem() method: if (toSend instanceof SOAPEnvelope) { envelope =3D (SOAPEnvelope) toSend; isEnvelope =3D true; } else { SOAPFactory omfac =3D OMAbstractFactory.getSOAP11Factory(); envelope =3D omfac.getDefaultEnvelope(); envelope.getBody().addChild(toSend); isEnvelope =3D false; } This tells we can pass SOAPEnvelope and I think, if we send Envelope we'll receive envelope, so casting should be safe. So the Envelope structure u said should not be possible. Am I missing something? Also, I guess one should be allowed to pass complete envelope, else how can a user add soap header elements? Also, SAAJ connection classes require envelopes passing capability, so if this doesn't happen in OM I'll have to do some extra coding there. Ashutosh -----Original Message----- From: Srinath Perera [mailto:hemapani@gmail.com]=20 Sent: Thursday, May 19, 2005 3:30 PM To: axis-dev@ws.apache.org Subject: Re: [Axis2] Changed Call method? > Is it that we have sendReceiveSync() method in > org.apache.axis.clientapi.Call replaced by:=20 >=20 > public OMElement invokeBlocking(String axisop, OMElement toSend)?=20 Yes > This method takes an additional parameter axisop. What all values can it > take and why has this been added?=20 > I see a sample program passing "echo" to it, is there any predefined list > from which these values are taken?=20 It is the name of the Operation you want call in the ServiceEndpoint .. echo is the name of the operation ! =20 > Also, the return type has been changed to OMElement from SOAPEnvelope, if I > pass a SOAPEnvelope, can I assume the response will be SOAPEnvelope as well > and typecast safely?=20 No the return type is a OMElment .. if u pass SOAPEnvelope it would be .... that goes on the wire !! Thanks Srinath