[jboss-user] [JBoss Web Services] - Application exceptions namespace not correct in wsdl

R K do-not-reply at jboss.com
Fri Jun 4 10:29:02 EDT 2010


R K [http://community.jboss.org/people/rkb76in] created the discussion

"Application exceptions namespace not correct in wsdl"

To view the discussion, visit: http://community.jboss.org/message/546230#546230

--------------------------------------------------------------
Doing development on JBoss [EAP] 4.3.0.GA_CP07 with Java version: 1.5.0_22,Sun Microsystems Inc.

Exposing webservices using Stateless EJB3

*Try 1*, My objects are like this

@XmlType(namespace="exception.item.common.xxxxx.org")
public class ApplicationException extends Exception {
....
}

@XmlType(namespace="item.common.xxxxx.org")
public class AppealId implements Comparable, Serializable {
 ......
}

ApplicationException, gets defined in the .wsdl as a complex type, but the @XmlType annotation information does not taken into account e.g. the type is defined in the wrong namespace.

AppealId, gets defined in the .wsdl as a complex type and @XmlType annotation information taken into account e.g. the type is defined in correct namespace.

 I could generate classes using wsconsume.bat successfully (*Exceptions ending in wrong packages*.)

Try 2, My objects are like this

@XmlType(namespace="exception.item.common.xxxxx.org")
@WebFault(name="ApplicationException",targetNamespace="exception.item.common.xxxxx.org")
public class ApplicationException extends Exception {
 ....
}

@XmlType(namespace="item.common.xxxxx.org")
public class AppealId implements Comparable, Serializable {
 ......
}

ApplicationException, gets defined in the .wsdl as a complex type, but the @WebFault annotation information does not taken into account fully e.g. the type is defined in the wrong namespace.

AppealId, gets defined in the .wsdl as a complex type and @XmlType annotation information taken into account e.g. the type is defined in correct namespace.

But this time got this in .wsdl
<xs:schema targetNamespace="exception.item.common.xxxxx.org" version="1.0" xmlns:ns1=" http://ejb3.xxxxx.org/ http://ejb3.xxxxx.org/" xmlns:xs=" http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema">
  <xs:import namespace=" http://ejb3.xxxxx.org/ http://ejb3.xxxxx.org/" />   
  <xs:element name="RemoteSystemFailedException" type="ns1:RemoteSystemFailedException" /> 
</xs:schema>   

I couldn't generate classes using wsconsume.bat, got error message
[ERROR] Schema descriptor { http://ejb3.xxxxx.org/ http://ejb3.xxxxx.org/}RemoteSystemFailedException in message part "RemoteSystemFailedException" could not be bound to Java!

Help me please ...

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/546230#546230]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100604/71c8d6ee/attachment.html 


More information about the jboss-user mailing list