You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Jean-Michel PATER <pa...@cogenit.fr> on 2006/07/17 12:14:55 UTC
[Axis2] Creation of OMElement objects
Hi,
I want to create an OMElement with a child which type is byte[] (in the
WSDL description type is "xsd:base64Binary").
The createOMText() method of OMFactory can't receive such type so how
can I do that ?
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: [Axis2] Creation of OMElement objects
Posted by Jean-Michel PATER <pa...@cogenit.fr>.
I tried this :
char[] charArray = Arrays.toString(byteArray).toCharArray();
value.addChild(fac.createOMText(value, charArray, OMNode.DTD_NODE));
But it seems that the conversion didn't succeed.
In the skeleton i print the value receive in parameter, value which is
in that case empty
Eran Chinthaka wrote:
> did you try this :
>
> createOMText(OMElement parent, char[] charArary, int type)
>
> -- Chinthaka
>
> Jean-Michel PATER wrote:
>
>> Hi,
>>
>> I want to create an OMElement with a child which type is byte[] (in the
>> WSDL description type is "xsd:base64Binary").
>>
>> The createOMText() method of OMFactory can't receive such type so how
>> can I do that ?
>>
>> Thanks in advance.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>>
>
>
>
--
Jean-Michel PATER <pa...@cogenit.fr>
Cogenit Tél : +33 (0) 1 40 20 08 43
53 rue Sainte Anne Fax : +33 (0) 1 40 20 08 45
75002 Paris <URL:http://www.cogenit.fr>
Re: [Axis2] Creation of OMElement objects
Posted by Jean-Michel PATER <pa...@cogenit.fr>.
Thanks for all !!!
Ajith Ranabahu wrote:
> Hi,
> It seems that you are not so clear about the concept of OM here. OM is
> a pure XML model (yeah -it has the deffered buid capability but apart
> from the there is nothing else than a pure XML object model) and when
> you create the OMElements you cannot really say that this text should
> be int or byte or whatever - end of the day its a text that goes as
> the content.
> For binary we can do an optimization though. You can construct an
> OMElement giving a DataHnadler that includes the binary content (see
> the method public OMText createOMText(Object dataHandler, boolean
> optimize) in the factory class)
>
> Ajith
>
>
> On 7/17/06, Jean-Michel PATER <pa...@cogenit.fr> wrote:
>>
>> How would you do it ?
>>
>>
>> Eran Chinthaka wrote:
>> did you try this :
>>
>> createOMText(OMElement parent, char[] charArary, int type)
>>
>> -- Chinthaka
>>
>> Jean-Michel PATER wrote:
>>
>>
>> Hi,
>>
>> I want to create an OMElement with a child which type is byte[] (in the
>> WSDL description type is "xsd:base64Binary").
>>
>> The createOMText() method of OMFactory can't receive such type so how
>> can I do that ?
>>
>> Thanks in advance.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>>
>>
>>
>>
>>
>> --
>> Jean-Michel PATER <pa...@cogenit.fr>
>> Cogenit Tél : +33 (0) 1 40 20 08 43
>> 53 rue Sainte Anne Fax : +33 (0) 1 40 20 08 45
>> 75002 Paris <URL:http://www.cogenit.fr>
>>
>>
>
>
--
Jean-Michel PATER <pa...@cogenit.fr>
Cogenit Tél : +33 (0) 1 40 20 08 43
53 rue Sainte Anne Fax : +33 (0) 1 40 20 08 45
75002 Paris <URL:http://www.cogenit.fr>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: [Axis2] Creation of OMElement objects
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
It seems that you are not so clear about the concept of OM here. OM is
a pure XML model (yeah -it has the deffered buid capability but apart
from the there is nothing else than a pure XML object model) and when
you create the OMElements you cannot really say that this text should
be int or byte or whatever - end of the day its a text that goes as
the content.
For binary we can do an optimization though. You can construct an
OMElement giving a DataHnadler that includes the binary content (see
the method public OMText createOMText(Object dataHandler, boolean
optimize) in the factory class)
Ajith
On 7/17/06, Jean-Michel PATER <pa...@cogenit.fr> wrote:
>
> How would you do it ?
>
>
> Eran Chinthaka wrote:
> did you try this :
>
> createOMText(OMElement parent, char[] charArary, int type)
>
> -- Chinthaka
>
> Jean-Michel PATER wrote:
>
>
> Hi,
>
> I want to create an OMElement with a child which type is byte[] (in the
> WSDL description type is "xsd:base64Binary").
>
> The createOMText() method of OMFactory can't receive such type so how
> can I do that ?
>
> Thanks in advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>
>
>
>
>
>
> --
> Jean-Michel PATER <pa...@cogenit.fr>
> Cogenit Tél : +33 (0) 1 40 20 08 43
> 53 rue Sainte Anne Fax : +33 (0) 1 40 20 08 45
> 75002 Paris <URL:http://www.cogenit.fr>
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: [Axis2] Creation of OMElement objects
Posted by Jean-Michel PATER <pa...@cogenit.fr>.
How would you do it ?
Eran Chinthaka wrote:
> did you try this :
>
> createOMText(OMElement parent, char[] charArary, int type)
>
> -- Chinthaka
>
> Jean-Michel PATER wrote:
>
>> Hi,
>>
>> I want to create an OMElement with a child which type is byte[] (in the
>> WSDL description type is "xsd:base64Binary").
>>
>> The createOMText() method of OMFactory can't receive such type so how
>> can I do that ?
>>
>> Thanks in advance.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>>
>
>
>
--
Jean-Michel PATER <pa...@cogenit.fr>
Cogenit Tél : +33 (0) 1 40 20 08 43
53 rue Sainte Anne Fax : +33 (0) 1 40 20 08 45
75002 Paris <URL:http://www.cogenit.fr>
Re: [Axis2] Creation of OMElement objects
Posted by Eran Chinthaka <ch...@opensource.lk>.
did you try this :
createOMText(OMElement parent, char[] charArary, int type)
-- Chinthaka
Jean-Michel PATER wrote:
> Hi,
>
> I want to create an OMElement with a child which type is byte[] (in the
> WSDL description type is "xsd:base64Binary").
>
> The createOMText() method of OMFactory can't receive such type so how
> can I do that ?
>
> Thanks in advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>