Forum Stats

  • 3,839,616 Users
  • 2,262,514 Discussions


Problems to expose A Business Service as REST

User_LHD97 Member Posts: 12 Blue Ribbon
edited Jun 30, 2015 3:12PM in SOA Suite Discusssions

Hi Guys!

              I have 3 services in My OSB 12c Cluster. Both have the Business and Proxy Services Running OK. The services are deployed at JBoss 4.2.1 as WebServices and have the WSDL files available....

              Now I am trying to expose such services as Restiful Services..... I follow the Basic steps (at Jdeveloper 12c).

  1. Right Click at BusinessServices>>Service BUS>>Expose as REST
  2. Define the Verbs and Resources....
  3. and Deploy at the service BUS.

            The Problems happens in the test console of RESTProxy:  When I chose the Resource, Method and the Response THe JBOSS server return to me the error message:

The invocation resulted in an error: .

 <err:RestError xmlns:err="">
            Unsupported content type: application/xml; charset=utf-8

With The follow Response Metadata

         <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:http="" xmlns:tran=""               xmlns:xsi="">
          <tran:response-code xmlns:tran="">1</tran:response-code>

At JBOSS´s log level the Error is observed as follow:

2015-06-29 17:01:33,308 DEBUG [] doPost: /corewebservices/ServiceAWebServiceImpl

2015-06-29 17:01:33,308 DEBUG [] pushMessageContext: [email protected] (Thread http-

2015-06-29 17:01:33,308 DEBUG [] BEGIN handleRequest:,endpoint=ServiceAWebService

2015-06-29 17:01:33,308 DEBUG [] createMessage: [contentType=application/xml; charset=utf-8]

2015-06-29 17:01:33,308 DEBUG [] Configure SOAPBinding

2015-06-29 17:01:33,308 ERROR [] SOAP request exception

  1. javax.xml.soap.SOAPException: Unsupported content type: application/xml; charset=utf-8






        at javax.servlet.http.HttpServlet.service(


        at javax.servlet.http.HttpServlet.service(

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(

        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(

        at org.apache.catalina.core.StandardWrapperValve.invoke(

        at org.apache.catalina.core.StandardContextValve.invoke(



        at org.apache.catalina.core.StandardHostValve.invoke(

        at org.apache.catalina.valves.ErrorReportValve.invoke(

        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(

        at org.apache.catalina.core.StandardEngineValve.invoke(

        at org.apache.catalina.connector.CoyoteAdapter.service(

        at org.apache.coyote.http11.Http11Processor.process(

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(



2015-06-29 17:01:33,314 DEBUG [] Cannot obtain fault meta data for: class javax.xml.soap.SOAPException

2015-06-29 17:01:33,314 DEBUG [] END handleRequest:,endpoint=ServiceAWebService

2015-06-29 17:01:33,317 DEBUG [] popMessageContext: [email protected] (Thread http-

When I edit the teste parameters adding 'GET' as the 'http-method'

  • I don´t recive a response;
  • the response metadata is;
  <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:http="" xmlns:tran="" xmlns:xsi="">
  <tran:response-code xmlns:tran="">0</tran:response-code>
  <tran:response-message xmlns:tran="">OK</tran:response-message>
  <tran:encoding xmlns:tran="">iso-8859-1</tran:encoding>
  <http:http-response-code xmlns:http="">200</http:http-response-code>

  • And at JBOSS´s log level I don´t recive any error message.

Looking at the oracle support channael, I don´t find this error, but a fews erros wich looks like similars for old versions of the OSB. Most of them use Patchs for fixing this probelm.

I don´t know what to do any more!

This discussion has been closed.