[jboss-user] [JBossWS] - Namespace for complex types

pyuill do-not-reply at jboss.com
Mon Feb 5 23:53:13 EST 2007


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011725#4011725

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011725



More information about the jboss-user mailing list