Hi all:

I hope that can help me. I need create the WSDL file and then create a
clien with ant task, but when i run the task the generated namespaces of my
DTOs aren't respected, for example, original the namespace is *com.oz.dto* for
all dto's pojos and *com.oz.ws.definitions* for SEI Interfaces:

   - *com.oz.ws.sei.register*
   - RegisterSEI
   - *com.oz.dto
   *
      - UserDto
      - PersonDto
      - AddressDto

but the generated client code create only one package(*
com.oz.ws.sei.register*), in this package all classes are put, like this.

   - *com.oz.ws.sei.register*
   - RegisterSEI
      - *UserDto*
      - *PersonDto*
      - *AddressDto*

In the parameter SEI method i define:

@WebMethod
Integer register(

@WebParam(name = "companyId") Integer companyId,

*@WebParam(name = "user", targetNamespace = "http://ws.oz.com/dto";) UserDto
user*

);

but this generate the following:

   - *com.oz.ws.definitions*
   - RegisterSEI
      - *UserDto*
      - *PersonDto*
      - *AddressDto*
   - *com.oz.dto
   *
      - *ObjectFactory*

The main problem is when i define a new SEI that share dto's with another
SEI. The generated code result is as follow:

   - com.oz.ws.sei.*register*
   - RegisterSEI
      - *UserDto*
      - *PersonDto*
      - *AddressDto*
   - com.oz.ws.sei.*recovery*
   - RecoverySEI
      - *UserDto*
      - *PersonDto*
      - *AddressDto*

As you can see, the dto's are repeated for each package when they are
invoked, how can say to generator that respect my packages?

Thanks a lot for your time.

Reply via email to