axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anne Thomas Manes <atma...@gmail.com>
Subject Re: A Bug -- Pkg To Namespace mapping issue
Date Tue, 19 Jul 2005 14:32:52 GMT
I don't think Axis supports what you're trying to do. Axis is using
that namespace to find the class. If you want all of your classes to
be in the same namespace, then you must put them in the same package.

Anne

On 7/13/05, Sureka, Sushil <ssureka@cobaltgroup.com> wrote:
>  
>  
> 
> I posted this to user newsgroup but I was wondering is it a bug by any
> chance. 
> 
>   
> 
> Hi, 
> 
>   
> 
> We have run into an issue related to Axis Package to Namespace mapping. What
> we are trying to do is map multiple packages to the same namespaces (in
> other words different classes belongs to same namespace no matter which
> package they were defined on the java side) 
> 
>   
> 
> The issue is with deploy.wsdd. Seems like the deploy.wsdd does not remember
> the package name correctly and replaces the type with the namespace types.
> For example if I mapped the following packages 
> 
>   
> 
> com.cobaltgroup.service.webservice.vo=http\://reportns.webservice.service.cobaltgroup.com
> 
> com.cobaltgroup.services.vo=http\://reportns.webservice.service.cobaltgroup.com
> 
>   
> 
> Now the type that is generated is something like 
> 
>       <typeMapping 
> 
>        
> xmlns:ns="http://reportns.webservice.service.cobaltgroup.com"
> 
>         qname="ns:WorkflowVO" 
> 
>        
> type="java:com.cobaltgroup.service.webservice.reportns.MyVO
> 
>        
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> 
>        
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> 
>        
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
> 
>       /> 
> 
>   
> 
> So basically instead of saying the type to be
> com.cobaltgroup.service.webservice.vo, it puts it as
> com.cobaltgroup.service.webservice.reportns.MyVO 
> 
> Because of this the deployment of services fails 
> 
>   
> 
> Any idea what is going on? 
> 
>   
> 
> Sushil

Mime
View raw message