| Author |
Weblogic webservice failing for user defined types
|
Nir Tal
Greenhorn
Joined: Aug 31, 2010
Posts: 12
|
|
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
Joined: Mar 22, 2000
Posts: 12325
|
|
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
|
Java Resources at www.wbrogden.com
|
 |
Nir Tal
Greenhorn
Joined: Aug 31, 2010
Posts: 12
|
|
|
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.
|
 |
 |
|
|
subject: Weblogic webservice failing for user defined types
|
|
|