But the problem sometimes some web services does not support query wsdl
via ?wsdl from their URL, which is the issue I have with at least 2
third party services we use now in our coding.

Jarada 

-----Original Message-----
From: Daniel Kulp [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 3:56 PM
To: [email protected]
Cc: shaminda perera
Subject: Re: Java First approach, annotating method


Well,  the Map is definitely a concern.    JAXB doesn't support maps at 
all.   Thus, it probably won't get mapped correctly. 

The Aegis databinding does have some support for Maps.  However, the
current released version of the java2wsdl tools doesn't support the 
Aegis databinding.   You could start a server with it, then query the 
wsdl via the ?wsdl URL as a semi-workaround.

To specifically answer your question, since it's java5, you would
properly type the Map like:

Map<String, Integer> getXXXXX(......)


Dan


On Wednesday 10 October 2007, shaminda perera wrote:
> I need to know the annotations required when having a web method as
> below:
>
> java.util.Map getXXXXX (com.company.somebean bean)
>
> Mainly i am concerned about the Map. for example, how do i specify the

> types (class names) of the entities inside the map, (both key and
> value) pairs.
>
> After doing these annotations for this web method, then i will be 
> using the Java2WSDL tool to generate the WSDL.
>
>
> Thanks in advance for any help/feedback
>
> Cheers
> Mahen



--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to