Thanks for the link provided. (http://wso2.org/library/2068) . That gave a good insight of the detail of Beans generated. Here is my xml string:
<ns3:CustHeader xmlns:ns3="http://webservices.cust.com/cg/4.0/Core/" xmlns:soape nv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:mustUnderstand="0"><ns3:O rigin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:EndPoi nt" entityID="entityid" organizationID="abc" systemType="systype" /><ns3:Desti nation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:EndPo int" entityID="entityid" organizationID="abc" systemType="systype" /><ns3:Inte rmediaries><ns3:EndPoint xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" x si:type="ns3:EndPoint" entityID="entityid" organizationID="abc" systemType="sy stype" /></ns3:Intermediaries></ns3:CustHeader> Another observation: I have CustHeader as well as CustHeader1 classes in the generated src. In my client code, i am passing CustHeader1 instance as a second parameter, which contains CustHeader instance. On Thu, Dec 11, 2008 at 10:59 PM, Amila Suriarachchi < amilasuriarach...@gmail.com> wrote: > > > On Fri, Dec 12, 2008 at 1:41 AM, Prasuna Lanka > <prasuna.la...@gmail.com>wrote: > >> I tried in the suggested way, but still the object contains null values. >> when i looked into the parse method of that class, i found the statement >> reader.getAttributeValue(*null*,"entityID"); returning null. The entity >> id is of Stirng type. >> xmlstgreamreader docs say, If the namespaceURI is null the namespace is >> not checked for equality. what does it mean? >> > > this means it gets the attribute by checking only the local name. > > Can you send your xml string? > > This article[1] shows how serialize an parts xml strings with ADB code. Try > to parse your sting as given here. > > thanks, > Amila > > [1] http://wso2.org/library/2068 > >> >> Regards >> Ps >> >> On Thu, Dec 11, 2008 at 12:54 AM, Amila Suriarachchi < >> amilasuriarach...@gmail.com> wrote: >> >>> >>> >>> On Thu, Dec 11, 2008 at 3:51 AM, Prasuna Lanka <prasuna.la...@gmail.com >>> > wrote: >>> >>>> Amila >>>> >>>> Thanks much for the response. I tried BeanUtil.deserialize method(with 4 >>>> parameters: classname, OMelem, defaultobjsupplier, null) to get an >>>> instance >>>> of the custom header, the object is returned but all with null member >>>> values..I have the xml string in hand, but why am i not able to get the >>>> complete object? am i wrong in the method call? am using ADB.. >>>> >>> >>> if you use generated ADB classes you can call the Factory.parse method >>> giving the xml stream reader which can be obtain from the OMElement. >>> >>> thanks, >>> Amila. >>> >>>> >>>> Regards >>>> Ps. >>>> >>>> >>>> >>>> On Tue, Dec 9, 2008 at 10:57 PM, Amila Suriarachchi < >>>> amilasuriarach...@gmail.com> wrote: >>>> >>>>> >>>>> >>>>> On Wed, Dec 10, 2008 at 3:36 AM, Prasuna Lanka < >>>>> prasuna.la...@gmail.com> wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> Using Axis2-1.3. , I generated server side stuff from a 3rd party wsdl >>>>>> which contains definitions for custom SOAP Header. That is comprised of >>>>>> more >>>>>> than 3 User defined types. But in the generated source, i couldnt find >>>>>> any >>>>>> way to receive or send that custom SOAP header object except the >>>>>> request ojbject coming in which is in SOAP Body. I read some where to use >>>>>> wsdl2java -exsh true, to get the support for SOAP headers, but when i >>>>>> tried >>>>>> on command prompt, it shows only help options. Other than OM methods, is >>>>>> there any way that i can read/ the header object from the incoming >>>>>> request? >>>>>> >>>>> >>>>> there is no direct method for this. you can get the Soap Envelop at >>>>> your skelton method. Please see here[1]. >>>>> >>>>> from the soap envelop you can get the headers. >>>>> >>>>> thanks, >>>>> Amila. >>>>> >>>>> [1] http://wso2.org/library/2935 >>>>> [2] >>>>> http://amilachinthaka.blogspot.com/2008/11/accessing-axis2-information-at-client.html >>>>> >>>>> >>>>>> Thanks in advance. >>>>>> Prasoona. >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Amila Suriarachchi >>>>> WSO2 Inc. >>>>> blog: http://amilachinthaka.blogspot.com/ >>>>> >>>> >>>> >>> >>> >>> -- >>> Amila Suriarachchi >>> WSO2 Inc. >>> blog: http://amilachinthaka.blogspot.com/ >>> >> >> > > > -- > Amila Suriarachchi > WSO2 Inc. > blog: http://amilachinthaka.blogspot.com/ >