Douglas Oviche [http://community.jboss.org/people/douglasoviche] created the discussion
"Re: JBoss EJB unable to invoke webservices by using their class implementation" To view the discussion, visit: http://community.jboss.org/message/571094#571094 -------------------------------------------------------------- Hi to everyone of you, I managed to solve the problem. Problem: Consumers were invoking an ejb Session Stateless and the ejb was trying to make webservice invokation obtaining the following error: *com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/plain Supported ones are: [text/xml]* *[#|2010-11-13T14:48:08.875+0100|WARNING|glassfish3.0.1|javax.enterprise.resource.corba.ee._CORBA_.util|_ThreadID=29;_ThreadName=Thread-1;|"IOP00100006: (BAD_PARAM) Class com.sun.xml.ws.util.localization.LocalizableMessage is not Serializable" * The remote webservice retrieved a Soap envelop with a Context-Type: text/plain and when the ejb tried make the call, it failed because the it could not manage to marshall/unmarshall the text/plain response to java object. My mastake was to use the implementation class obtained from the WSDL2Java within my ejb public method/service without taking into acount the fact that webservices are enabled to manifest themselve in a completely different context and they are capable to perform a specific tast in certain way because they are deployed in web-context which allows them to manifest through their different configuration files as per example is my case CXF(beans.xml). Solution: I've built the whole webservice software/package by using Maven CXF WSDL2JAVA. I've deployed the package as WebApp. Consumers invoke my enterprise java bean(s) and my enterprise makes http call to a Servlet responsible for making the call at a specific endpoint. Everything is working terrificly perfect. I am sorry for not knowing this particular issue and not being able to provide as much information as you guys would have needed to help me out. Next time, I will try to be more concise. Thanks to everyone anyways Douglas -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/571094#571094] Start a new discussion in JBoss Web Services at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
