You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sathija Pavuluri <sp...@EmprisaNetworks.com> on 2006/11/09 15:45:14 UTC

[Axis2] Passing complex type HashMap

Hello,

I need to pass a HashMap as one of the parameters to my web service call.
How can I do that?

Thanks,
Sathija.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Passing complex type HashMap

Posted by Srinath Perera <he...@gmail.com>.
To be little more specific

We only support XML schema data types and schema does not define a hashtable.
So you have to handle it yourself. One idea would be to define a schem
type for something like

<hashtable>
    <entry>
     <key>foo</key>
    <value>bar</value>
   </entry>
.........
</hashtable>

and pass it as a argument. Your code, at server side and client side
should convert to and from this defined type to a real hashtable.

best
Srinath



On 11/10/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
> Hi Sathija ;
>
> None of the default message receivers does not support this scenario and
> we have no idea to implement that. So  in this case you need to write
> your own message receiver to support this .
>
> Thanks
> Deepal
>
> >Hello,
> >
> >I need to pass a HashMap as one of the parameters to my web service call.
> >How can I do that?
> >
> >Thanks,
> >Sathija.
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> >
>
> --
> Thanks,
> Deepal
> ................................................................
> "The highest tower is built one brick at a time"
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
============================
Srinath Perera:
   Indiana University, Bloomington
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Passing complex type HashMap

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Sathija ;

None of the default message receivers does not support this scenario and
we have no idea to implement that. So  in this case you need to write
your own message receiver to support this .

Thanks
Deepal

>Hello,
>
>I need to pass a HashMap as one of the parameters to my web service call.
>How can I do that?
>
>Thanks,
>Sathija.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org