Hi Tratter, Thanks for your reply.. Yes when I invoked getHeaderByName passing argument "true" worked when I ported to another system. Though I don't have any actors defined, first API worked in one system, but when I ported the same service to another system, first API didn't work, but second API worked passing argument "true".
I am trying to understand its difference.. why first API worked in one system and not in other? So are you suggesting to use second API passing "true" always if I don't have any Actors defined? Thanks again, Ranjith Pillai. -----Original Message----- From: Christoph Tratter [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 9:28 AM To: [EMAIL PROTECTED] Subject: Re: Confusion in getHeaderByName methods - Please help Hi, Ranjith! Maybe this won't bring much light into your case, but as any help is deeply appreciated... In org.apache.axis.message.SOAPEnvelope, where both methods are defined, the method nr. 1) just does the following: public SOAPHeaderElement getHeaderByName(String namespace, String localPart) throws AxisFault { return getHeaderByName(namespace, localPart, false); } (Taken from the source) So it just wraps the method nr. 2) I'm sure, you already tried calling method 2) with true as value of the third parameter. Did that help? If it didn't, then maybe something else is wrong. Maybe inspecting the data exchange with something like the tcpmon could help. cheers, Christoph PILLAI,RANJITH (HP-PaloAlto,ex1) wrote: > Hi, > Somebody please explain me this or point me to some documentation(I > read Axis API documentation) which explains this a little more.. > > Any help will be deeply appreciated. > Thanks, > Ranjith Pillai. > > -----Original Message----- > From: PILLAI,RANJITH (HP-PaloAlto,ex1) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 10, 2003 9:24 AM > To: '[EMAIL PROTECTED]' > Subject: Confusion in getHeaderByName methods - Please help > > > > Hi, > > Could somebody explain me the difference between below given API's. > Unfortunately I couldn't figure out from API documentation. > > 1) public SOAPHeaderElement getHeaderByName(java.lang.String namespace, > java.lang.String localPart) > throws AxisFault > Get a header by name (always respecting the currently in-scope > actors list) > > AxisFault > > 2) public SOAPHeaderElement getHeaderByName(java.lang.String namespace, > java.lang.String localPart, > boolean accessAllHeaders) > throws AxisFault > > Get a header by name, filtering for headers targeted at this engine > depending on the accessAllHeaders parameter. > > In my service I used the first API. This worked fine, but when I ported my > service to a different system, it failed. I am wondering why... I don't > have any actors defined. > > Any feed back will be really appreciated.. > > Thanks, > Ranjith Pillai.