Re: Parsing request with axiom

2008-10-06 Thread Eran Chinthaka
Do you use databinding or not. Whatever way if you have access to the
OMElement containing the request do the following.

OMElement reqElement;

Iterator iter = reqElement.getChildren();

// iterate thru children and get only the OMElements

// add the name of the element as the key using childEle.getName() and the
text content as the value childEle.getText()

HTH
Chinthaka

On Sun, Oct 5, 2008 at 4:14 PM, ibrahim demir <[EMAIL PROTECTED]>wrote:

> Hi all;
>
> I want to parse the request coming from the clients and generate a
> container object for my applicaion and execute my application.
>
> The request is like that
> 
> false
> 1233.8
> 20080412
> 232320
> 34567
> 1234
> 2345
> 4567
> stringParam,
> 
> listKey1
> listValue1
> 
> 
> name1
> 181
> 
> 
>
>
> So I want to create an hashtable called inBag and put the elements as keys
> and their values as values like
>
> Hashtable inBag = new Hashtable ();
>
> inBag.put("booleanParam","false");
> inBag.put("longParam",4567);
>
> I am confused with axiom and unable to find good tutorials over the net. I
> will be pleased if you show me the way to do it.
>
> Yours
>
>
>
> Ibrahim DEMIR
> CyberSoft Yazilim Muh.
> http://www.ibrahimdemir.org
>
>
>
>
>
>


-- 
With Mettha,
Eran Chinthaka


Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada


Parsing request with axiom

2008-10-05 Thread ibrahim demir
Hi all;

I want to parse the request coming from the clients and generate a container 
object for my applicaion and execute my application.

The request is like that

false
1233.8
20080412
232320
34567
1234
2345
4567
stringParam,

listKey1
listValue1


name1
181




So I want to create an hashtable called inBag and put the elements as keys and 
their values as values like

Hashtable inBag = new Hashtable ();

inBag.put("booleanParam","false");
inBag.put("longParam",4567);

I am confused with axiom and unable to find good tutorials over the net. I will 
be pleased if you show me the way to do it.

Yours



 Ibrahim DEMIR
CyberSoft Yazilim Muh.
http://www.ibrahimdemir.org