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 "Sureka, Sushil" <ss...@cobaltgroup.com> on 2005/07/14 00:29:15 UTC

A Bug -- Pkg To Namespace mapping issue

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.co
baltgroup.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


Re: A Bug -- Pkg To Namespace mapping issue

Posted by Venkat Reddy <vr...@gmail.com>.
Looks like the mapping is not being picked up by WSDL2Java. Is that
backslash after "http" a syntax error?

- venkat

On 7/14/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

Re: A Bug -- Pkg To Namespace mapping issue

Posted by Anne Thomas Manes <at...@gmail.com>.
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