[jboss-user] [JBossWS] - @WebFault and @XmlType issues for Exception classes

2008-04-17 Thread yogeshkb
Hi Team,

I have many webservices with operations throwing a common exception (eg.,  
SomeException) across all the services 

I tried to annotate the SomeException class using various approaches but failed 
to generate the client stubs with a common target namespace different from the 
targetnamespace of the webservice itself.

Approach 1:

Used @XmlType(namespace=common.targetnamespace) in the SomeException class

Approach 2:

Used @WebFault(targetNamespace=common.targetnamespace)

In both the above approaches, the wsconsume generated a separate stub for 
SomeException class for each webservice in the same targetnamespace of the 
webservice and not on the specified common.targetnamespace.

My requirement is to generate a single SomeException client stub in the 
common.targetnamespace.

Pls let me know whether this is a bug or suggest some workarounds.

Regards,
Yogesh

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4144802#4144802

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4144802
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - @WebFault and @XmlType

2007-07-11 Thread bartvh
Can @WebFault and @XmlType be used on the same element? I have an application 
exception with additional information. The exception gets defined in the .wsdl 
as a complex type, but the @XmlType annotation information does not seem to be 
taken into account: the type is defined in the wrong namespace, and nested 
elements are included in the type that should not be there. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062968#4062968

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062968
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user