• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialization Can not occur on java class

 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic