After generating a Webservice from WSDL using JDeveloper 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.
Recent Comments