2 Replies Latest reply on Jun 16, 2005 2:38 PM by Ryan

    WS Mappings in different packages / client mapping

    Marcelo Klein Newbie

      Hi , I'm using JBoss 4.0.2 jax-rpc services.
      I use the jwsdp (wscompile) for xml and wsdl generation from an interface.
      This is my interface:

      package com.primary.server.analitics;
      import com..ev.AnaliticUpdate;
      
      public interface AnaliticsInterface extends Remote {
      
       public void publish(AnaliticUpdate analytics) throws RemoteException;
      
       public String echo(String message) throws RemoteException;
      }
      


      However, as you can see, the parameters classes are in different packages than the webservice interface. So, whenever wscompile generates the wsdl and jaxrpc-mapping it points to the service package (com.primary.server.analitics) and not to the parametrs packages (com.ev and com.primary.common.product, respectively)
      In the same way, when we run a client, it says that it cannot find the mapping for the AnaliticUpdate classs (one of the parameters).
      I also put an ws4ee-deployment file but nothing happened.
      Anyone knows how to make wscompile to use the correct namespace for eacha package? Or how to make this work?

      Help will be greatly appreciated.
      Marcelo


        • 1. Re: WS Mappings in different packages / client mapping
          Thomas Diesler Master

          AFAIK, you can add additional package mappings to wscompile's config.xml

          If all fails you will probably have to manually adjust the generated jaxrpc-mapping.xml file

          • 2. Re: WS Mappings in different packages / client mapping
            Ryan Newbie

             

            "mkprim" wrote:
            Hi , I'm using JBoss 4.0.2 jax-rpc services.
            I use the jwsdp (wscompile) for xml and wsdl generation from an interface.
            This is my interface:
            package com.primary.server.analitics;
            import com..ev.AnaliticUpdate;
            
            public interface AnaliticsInterface extends Remote {
            
             public void publish(AnaliticUpdate analytics) throws RemoteException;
            
             public String echo(String message) throws RemoteException;
            }
            


            However, as you can see, the parameters classes are in different packages than the webservice interface. So, whenever wscompile generates the wsdl and jaxrpc-mapping it points to the service package (com.primary.server.analitics) and not to the parametrs packages (com.ev and com.primary.common.product, respectively)
            In the same way, when we run a client, it says that it cannot find the mapping for the AnaliticUpdate classs (one of the parameters).
            I also put an ws4ee-deployment file but nothing happened.
            Anyone knows how to make wscompile to use the correct namespace for eacha package? Or how to make this work?

            Help will be greatly appreciated.
            Marcelo


            Can you post the generated wsdl and jaxrpc-mapping files? I'd like to see what you're referring to.