axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: Problems when calling getOMElement
Date Fri, 20 Nov 2009 19:27:28 GMT
Can you test this with a snapshot version?

Andreas

2009/11/20 Håkon Sagehaug <Hakon.Sagehaug@bccs.uib.no>:
> hi
>
> The problem is occurs using 1.4 and axiom 1.2.8. I can extract the values
> using the java objects, but when I use the #getOmElement() I get the just
> the XML without values, so my thought was the serialization or something
> like this.
>
> cheers, Hakon
>
> 2009/11/20 Andreas Veithen <andreas.veithen@gmail.com>
>>
>> Does this problem occur with snapshot versions of Axis2 and Axiom?
>>
>> Andreas
>>
>> On Fri, Nov 20, 2009 at 16:11, Amila Suriarachchi
>> <amilasuriarachchi@gmail.com> wrote:
>> > here is a sample code
>> >
>> > InDict inDict = new InDict();
>> >         ArrayOfKeyValueOfstringstring arrayOfKeyValueOfstringstring =
>> > new
>> > ArrayOfKeyValueOfstringstring();
>> >         inDict.setInDict(arrayOfKeyValueOfstringstring);
>> >
>> >         KeyValueOfstringstring_type0[] keyValueOfstringstring_type0 =
>> > new
>> > KeyValueOfstringstring_type0[1];
>> >         keyValueOfstringstring_type0[0] = new
>> > KeyValueOfstringstring_type0();
>> >         keyValueOfstringstring_type0[0].setKey("One Element Array");
>> >         keyValueOfstringstring_type0[0].setValue("One Element Array");
>> >
>> >
>> >
>> > arrayOfKeyValueOfstringstring.setKeyValueOfstringstring(keyValueOfstringstring_type0);
>> >
>> >         try {
>> >             OMElement omElement = inDict.getOMElement(InDict.MY_QNAME,
>> > OMAbstractFactory.getOMFactory());
>> >             System.out.println("OMElement ==> " + omElement.toString());
>> >         } catch (ADBException e) {
>> >             e.printStackTrace();
>> >         }
>> >
>> > thanks,
>> > Amila.
>> >
>> > On Fri, Nov 20, 2009 at 3:14 AM, Andreas Veithen
>> > <andreas.veithen@gmail.com>
>> > wrote:
>> >>
>> >> Håkon,
>> >>
>> >> I think you need to give a bit more context. What version of Axis2?
>> >> What version of Axiom? Code snippet showing what you are trying to do,
>> >> etc.
>> >>
>> >> Andreas
>> >>
>> >> 2009/11/19 Håkon Sagehaug <Hakon.Sagehaug@bccs.uib.no>:
>> >> > Hi
>> >> >
>> >> > Anybody did this, go from adb object through a xslt transfomation?
>> >> >
>> >> > Or having problem getting values out from a XML message when the tyep
>> >> > attribute is used for the data type of the element.
>> >> >
>> >> > cheers, Håkon
>> >> >
>> >> > 2009/11/18 Håkon Sagehaug <Hakon.Sagehaug@bccs.uib.no>
>> >> >>
>> >> >> Hi
>> >> >>
>> >> >> To provide more information, we want to do xslt transformation
to
>> >> >> our
>> >> >> generated client side object. And  as far as I know we need the
>> >> >> OmElement of
>> >> >> the generated type to do so, but when this don't give back the
>> >> >> values
>> >> >> just
>> >> >> the XML with no values, there is not much to transform. So we need
a
>> >> >> hint on
>> >> >> how this can be done.
>> >> >>
>> >> >>
>> >> >>
>> >> >> cheers, håkon
>> >> >>
>> >> >> 2009/11/18 Håkon Sagehaug <Hakon.Sagehaug@bccs.uib.no>
>> >> >>>
>> >> >>> Hi all,
>> >> >>>
>> >> >>> Any tips on this. stange if it won't work?
>> >> >>>
>> >> >>> 2009/11/17 Håkon Sagehaug <Hakon.Sagehaug@bccs.uib.no>
>> >> >>>>
>> >> >>>> Hi all,
>> >> >>>>
>> >> >>>> I've got a client that calls a ws and using adb as the
>> >> >>>> databinding(client side), then we want to get a string
>> >> >>>> representation
>> >> >>>> of the
>> >> >>>> obejct.  We execute object.getOMElement(), the method
returns only
>> >> >>>> the xml
>> >> >>>> element and not the actual value inside the element. So
this
>> >> >>>> element
>> >> >>>> here
>> >> >>>>
>> >> >>>>    <ns2:BlastOutput_program xsi:type="ns2:BlastOutput_
>> >> >>>> program">blastp</ns2:BlastOutput_program>
>> >> >>>>
>> >> >>>> Would returns this string
>> >> >>>>
>> >> >>>> <ns2:BlastOutput_program></ns2:BlastOutput_program>
>> >> >>>>
>> >> >>>> We where wondering if it had anything to to with the xsi:type
>> >> >>>> attribute?
>> >> >>>> Any tips on how to solve this, or another way of getting
a string
>> >> >>>> representatioon of the object using adb as the databinding?
>> >> >>>>
>> >> >>>> cheers, Håkon
>> >> >>>>
>> >> >>>> --
>> >> >>>> Håkon Sagehaug, Scientific Programmer
>> >> >>>> Parallab, Bergen Center for Computational Science (BCCS)
>> >> >>>> UNIFOB AS (University of Bergen Research Company)
>> >> >>>> Hakon.Sagehaug@bccs.uib.no, phone +47 55584125
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> Håkon Sagehaug, Scientific Programmer
>> >> >>> Parallab, Bergen Center for Computational Science (BCCS)
>> >> >>> UNIFOB AS (University of Bergen Research Company)
>> >> >>> Hakon.Sagehaug@bccs.uib.no, phone +47 55584125
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Håkon Sagehaug, Scientific Programmer
>> >> >> Parallab, Bergen Center for Computational Science (BCCS)
>> >> >> UNIFOB AS (University of Bergen Research Company)
>> >> >> Hakon.Sagehaug@bccs.uib.no, phone +47 55584125
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Håkon Sagehaug, Scientific Programmer
>> >> > Parallab, Bergen Center for Computational Science (BCCS)
>> >> > UNIFOB AS (University of Bergen Research Company)
>> >> > Hakon.Sagehaug@bccs.uib.no, phone +47 55584125
>> >> >
>> >
>> >
>> >
>> > --
>> > Amila Suriarachchi
>> > WSO2 Inc.
>> > blog: http://amilachinthaka.blogspot.com/
>> >
>
>
>
> --
> Håkon Sagehaug, Scientific Programmer
> Parallab, Bergen Center for Computational Science (BCCS)
> UNIFOB AS (University of Bergen Research Company)
> Hakon.Sagehaug@bccs.uib.no, phone +47 55584125
>

Mime
View raw message