web analytics
free online training

Archive for April 2010

JDeveloper Webservices

After generating a Webservice from WSDL using 10.1.3.x, we often encounter following error when we try to run generated Webservice client using embedded Application Server.

java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html;

This is because underlying Webservice fails to start. If we dig one level deeper, we can see WSDL contains Enumeration data type. JDeveloper generated Enumeration wrapper class isn’t a Java Bean since it doesn’t contain a default constructor and getter methods for properties. Infact, if we edit the Webservice, we can see that the methods using Enumeration type parameters are disabled.

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)