Announcement Announcement Module
Collapse
No announcement yet.
Possible JaxWsPortProxy soap binding problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Possible JaxWsPortProxy soap binding problem

    I created a jax-ws web service client in the way it described in the spring core docs (http://static.springsource.org/sprin...s-jaxws-access). It works properly but sometimes I saw errors in the server side saying:


    Unsupported Content-Type: application/soap+xml Supported ones are: [text/xml]
    com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: application/soap+xml Supported ones are: [text/xml]

    at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(Str eamSOAPCodec.java:291)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(Str eamSOAPCodec.java:128)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SO APBindingCodec.java:356)
    at com.sun.xml.ws.transport.http.HttpAdapter.decodePa cket(HttpAdapter.java:276)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$5 00(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpTool kit.handle(HttpAdapter.java:432)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(H ttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapt er.handle(ServletAdapter.java:135)
    at com.sun.enterprise.webservice.JAXWSServlet.doPost( JAXWSServlet.java:177)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:847)
    at org.apache.catalina.core.ApplicationFilterChain.se rvletService(ApplicationFilterChain.java:427)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:315)
    at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:287)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipel ine.java:94)
    at com.sun.enterprise.web.PESessionLockingStandardPip eline.invoke(PESessionLockingStandardPipeline.java :98)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:222)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:1093)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:166)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:1093)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:291)
    at com.sun.enterprise.web.connector.grizzly.DefaultPr ocessorTask.invokeAdapter(DefaultProcessorTask.jav a:666)
    at com.sun.enterprise.web.connector.grizzly.DefaultPr ocessorTask.doProcess(DefaultProcessorTask.java:59 7)
    at com.sun.enterprise.web.connector.grizzly.DefaultPr ocessorTask.process(DefaultProcessorTask.java:872)
    at com.sun.enterprise.web.connector.grizzly.DefaultRe adTask.executeProcessorTask(DefaultReadTask.java:3 41)
    at com.sun.enterprise.web.connector.grizzly.DefaultRe adTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultRe adTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.connector.grizzly.TaskBase. run(TaskBase.java:264)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWo rkerThread.run(SSLWorkerThread.java:106)

    (it is a glassfish openesb 2.1.1).

    For me it seems that the client is sending a message with such a content type which is unknown for the web service. As I read it means that the server can accept only messages bound with soap 1.1 (when content-type is text/xml) and not soap 1.2 (application/soap+xml). If so it means that the client (JaxwsProxy) sent message with soap 1.2 binding.

    If it is the case how can I set up JaxwsProxy to send messages bound soap 1.2 way?

    If it is not then what else can be the problem?

    Thanks
Working...
X