I am trying to call a web service but I am getting this error. How can I fix this? Bytheway in the WSDL, TemplateGame is abstract.
Best Regards.
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: javax.xml.bind.UnmarshalException: Unable to create an instance of com.bon.gtw.gameplay.TemplateGame
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: javax.xml.bind.UnmarshalException: Unable to create an instance of com.bon.gtw.gameplay.TemplateGame
- with linked exception:
[java.lang.InstantiationException]
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:189)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy39.playGame(Unknown Source)
at playcoupontest.Main.testPlay4101(Main.java:106)
at playcoupontest.Main.main(Main.java:24)
Do you have any abstract classes used here? You may need to tell more details about the structure of your app etc... (TellTheDetails). Perhaps a similar issue to this?