This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services and the fly likes Weblogic webservice failing for user defined types Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Weblogic webservice failing for user defined types" Watch "Weblogic webservice failing for user defined types" New topic
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
    
    1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Weblogic webservice failing for user defined types
 
Similar Threads
can't generate web service with jwsc in weblogic 9.2
Getting javax.ejb.AccessLocalException while calling EJB-Based web services on Weblogic 10 MP1
Unable to generate war file using jwsc task
Error in jwsc ant task.
Weblogic Webservices Typemapping