• Post Reply Bookmark Topic Watch Topic
  • New Topic

Weblogic webservice failing for user defined types  RSS feed

 
Nir Tal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,

I was trying to expose a webmethod through weblogic webservices which takes a user defined type as an argument. However, when I am trying to compile the java file using jwsc ant task, the build is failing with the error message : java.lang.RuntimeException: java.lang.ExceptionInInitializerError

The file compiles fine if I use any of the Java defined types. It seems to me like weblogic webservice doesn't support user defined types or might require some other attribute in the jwsc command to successfully compile the file. I am trying to use a type from an XSD.

Could someone help me in figuring out what the problem is?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would be much better off figuring out how to represent the data as standard SOAP types.

Do you really expect all of the possible clients for this service to understand your specialized type? If so, maybe a REST style service is in order to avoid the limitations of SOAP.

Bill
 
Nir Tal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its not that SOAP doesn't help in sending user defined types over the network. The types which I like to define are known to the consumers of the webservice. I have thought out a way, i.e., to use the includeSchemas attribute in the jws ant task and specify the XSD which defines the custom type. I will have to implement this and see if it works. Also, since my project is already implementing SOAP services, I will not prefer to use RESTful service now.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!