You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Anne Thomas Manes <at...@gmail.com> on 2005/07/19 16:32:52 UTC

Re: A Bug -- Pkg To Namespace mapping issue

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 <ss...@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