JBoss Community

WSTools does not support abstract complexTypes

created by roopachakra in JBoss Web Services - View the full discussion

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

Start a new discussion in JBoss Web Services at Community