wood burning stoves*
The moose likes Web Services and the fly likes Serialization Can not occur on java class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Serialization Can not occur on java class" Watch "Serialization Can not occur on java class" New topic
Author

Serialization Can not occur on java class

chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 73

Hi
I am trying to give a call to web service using jax rpc. The class which I am passing is not registerd in WSDL. Please find the following stack trace.


java.io.IOException: WSWS3701E: Error: An exception was encountered. Use the wsdeploy command to deploy your application. The exception is java.io.IOException: WSWS3037E: Error: Serialization cannot occur for Enumeration. Debug deploy artifact build numbers={cf20633.22}

Can any one tell me how to register my class dynamically using jaxrpc?
Please help
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Clearly - Enumeration is an Interface and thus has no implementation.

Its are REALLY bad idea to try to use SOAP to transmit concepts like Enumeration. Stick to the standard SOAP variable types.

You will have to redesign your class at a minimum.

Bill
chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 73

This enumeration is not a basic java type.
You can consider it as simple java class.
I think that we need some dynamic type mapping is required. i.e. I need to register my class in in some registry.
But I dont know how to do it

Please help asap...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialization Can not occur on java class
 
Similar Threads
LoadJava
LoadJava
problem while invoking jaxrpc web service from java client
java.lang.ClassNotFoundException: web.CalcServlet
Mock question