2 Replies Latest reply on Mar 14, 2007 6:04 AM by centecbertl

    Namespace for complex types

      I am using a jsr181 pojo service that works well except that I have not been able to find a way to set the targetNamespace on all the complexTypes. Setting targetNamespace in the @Webservice() annotation sets the tns for the bindings and some of the complexTypes, but not all of them. Specifically it does not set the targetNamespace for complexTypes that are referenced as arrays eg:

      @WebMethod
      public SdmOrderStatus evaluateSdmOrder(SdmOrderRequest order) {

      works fine for both the parameter and the return object

      @WebMethod
      public ProductDesc[] getProducts() {

      results in a default namespace for ProductDesc, but my requested namespace for ProductDesc.Array

      I am using jbossws from the jems-installer-1.2.0.GA (1.0.3 sp1 I think).

      Any ideas would be appreciated.

      Regards,
      Peter Yuill