1 Reply Latest reply on Nov 9, 2011 7:13 AM by Freeman(Yue) Fang

    JAX-WS Endpoint

    Rajendra Turakani Newbie

      Hi,

       

      I am using Fuse ESB version apache-servicemix-4.4.1-fuse-00-08

       

      I am trying out the CXF-OSGI example. I observe that the example works pretty well on IE while the example does not work on Chrome or Fire Fox. As I debugged this further i noted the following

       

      1. HTTP response returns "null" as content type on chrome and FF while it returns text on IE. document.write(xmlhttp.getResponseHeader("Content-Type")); returns null in the call back function of the response.

       

      It seems that the JAX-WS endpoint return does not set the Content Type.

       

      It would be helpful if some one of you can point out on how could I set the content type in the example.

       

      Thanks,

      Regards,

      Rajendra

        • 1. Re: JAX-WS Endpoint
          Freeman(Yue) Fang Master

          Hi,

           

          The firefox 3.6.23 works for me, I use tcpdump to dump the message, it's

          HTTP/1.1 200 OK

          Content-Type: text/xml;charset=UTF-8

          Content-Length: 234

          Server: Jetty(7.4.1.v20110513)

           

           

           

          So the Content-Type is correct here.

          For chrome, I believe you hit a known issue described here[1].

           

          Btw, use browser to send request is just for test purpose,  we also provide a java code client, do

          cd cxf-osgi

          mvn compile exec:java

          which will use java code client to send the request.

          https://cwiki.apache.org/confluence/display/SM/returnStatus0whileusechrometosendrequestforcxf-wsdl-first+example

           

          Freeman