On Tue February 24 2009 1:30:13 pm relphie wrote:
> I have tried the same thing with another of my simpler services -
> connecting a 2.0.x client to a 2.2 server - and it seems to be working
> fine.  I think the problems appear with my more complicated service where I
> had define a custom type mapper for one of my interfaces.  I use the
> interface as a map key, and it appears that the schema for that return
> value is not being properly generated.  Here is my interface:

How is the type mapper registered?   It may be that that isn't being picked 
up.

With 2.1/2.2, you can add @XmlJavaTypeAdapter annotations onto the actual 
methods as well to get things mapped for the Maps.   

Dan


>
> <code>
> @WebService
> public interface OrganizationService
> {
>     public Collection<Organization> retrieveByAlias(OrganizationAlias
> alias);
>
>     public Map<OrganizationAlias, Collection<Organization>>
> retrieveByAliases(Collection<OrganizationAlias> aliases);
>
>     public Map<String, Organization> retrieveByIds(Collection<String>
> organizationIds);
> }
> </code>
>
> And I will attach the generated 2.0 and 2.2 wsdls:
>
> http://www.nabble.com/file/p22187629/OrganizationService.wsdl
> OrganizationService.wsdl
> http://www.nabble.com/file/p22187629/OrganizationService22.wsdl
> OrganizationService22.wsdl
>
> Any ideas?
>
> relphie wrote:
> > Hello,
> >
> > I am attempting to upgrade my 2.0.9 cxf service to 2.2-SNAPSHOT. 
> > However, with my 2.0.9 client, I am unable to pass my tests connection to
> > a 2.2-SNAPSHOT server.  Also, the server side WSDL that is generated is
> > different between the 2.0.9 version and the 2.2 version.  Is this to be
> > expected?  Is 2.0.9 and 2.2-SNAPSHOT compatible?
> >
> > Thanks,
> > Brian

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to