I am on jboss 4.0.5. In my wsdl I have
<s:simpleType name="States">
<s:restriction base="s:string">
<s:enumeration value="Initial"/>
<s:enumeration value="Failed"/>
<s:enumeration value="Placed"/>
<s:enumeration value="Rejected"/>
</s:restriction>
</s:simpleType>
wscompile does not create a States.java class. When I make a call that uses this type I get
Caused by: javax.xml.soap.SOAPException: Could not transmit message
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204)
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
... 66 more
Caused by: javax.xml.rpc.JAXRPCException: org.jboss.xb.binding.JBossXBRuntimeException: Failed to find neither value() nor getValue() in class java.lang.String which is bound to enumeration type {com.abc}States
at org.jboss.ws.soap.SOAPContentElement.write(SOAPContentElement.java:986)
at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:171)
at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:184)
at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:184)
at org.jboss.ws.soap.SAAJElementWriter.printInternal(SAAJElementWriter.java:163)
at org.jboss.ws.soap.SAAJElementWriter.print(SAAJElementWriter.java:142)
at org.jboss.ws.soap.SAAJElementWriter.printSOAPElement(SAAJElementWriter.java:91)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:177)
... 67 more
What am I doing wrong?