[jboss-user] [JBoss Web Services] - WSTools does not support abstract complexTypes
roopachakra
do-not-reply at jboss.com
Mon May 6 15:38:36 EDT 2013
roopachakra [https://community.jboss.org/people/roopachakra] created the discussion
"WSTools does not support abstract complexTypes"
To view the discussion, visit: https://community.jboss.org/message/816362#816362
--------------------------------------------------------------
Generated client code using JBOSS WS. For below complex type it created abstract class.
<s:complexType abstract="true" name="MessageOption">
</s:complexType>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MessageOption")
public abstract class MessageOption {
}
while testing the application in standalone mode I get below exception. I am running this test sample using JBOSS EAP 5.1.0 and JDK 1.6.0.
Please let me if anyone has come across such problem and solved it.
javax.xml.ws.soap.SOAPFaultException: Exception during processing: java.lang.Error: cannot create abstract type: com.sps.es.notification.webservice.MessageOption (see Fault Detail for stacktrace)
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:85)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:558)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:396)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:231)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:171)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:157)
at $Proxy15.sendNotification(Unknown Source)
at com.sps.nes.client.clientsample.ClientSample.main(ClientSample.java:183)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/816362#816362]
Start a new discussion in JBoss Web Services at Community
[https://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/20130506/70f526de/attachment.html
More information about the jboss-user
mailing list