• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Serialization Can not occur on java class

 
Ranch Hand
Posts: 77
Eclipse IDE Tomcat Server Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Tomcat Server Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
It's exactly the same and completely different as this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic