title: Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml]
body: <p>I'm attempting to use the web service to retrieve data from server. I follow the tutorial specified in <a href="http://googcloudlabs.appspot.com/codelabexercise5.html" rel="noreferrer">http://googcloudlabs.appspot.com/codelabexercise5.html</a>, of course I've modified the original code to satisfied my demands. </p>
  
  <p>Now I'm getting an error like this: Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml]</p>
  
  <p>To see the full error, I write a new error function when getting data:</p>
  
  <pre><code>var errorFn = function(e){
  
      for(var p in e){
      alert(e[p]);
      }
  }
  
  var successFn = function(resp){
  
      var data='';
      if(resp){
      //getting the data from the response object
          data=resp.data;         
      }
  
          //Some other code here... 
  
  }
  
  getData("/entity",null,successFn,errorFn);
  </code></pre>
  
  <p>And the browser alert the error object:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&gt;
  &lt;title&gt;Error 500 Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml]&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;&lt;h2&gt;HTTP ERROR 500&lt;/h2&gt;
  &lt;p&gt;Problem accessing /vehicle. Reason:
  &lt;pre&gt;    Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml]&lt;/pre&gt;&lt;/p&gt;&lt;h3&gt;Caused by:&lt;/h3&gt;&lt;pre&gt;com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml]
  
      at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(Unknown Source)
  
      at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(Unknown Source)
  
      at com.sun.xml.internal.ws.encoding.SOAPBindingCodec.decode(Unknown Source)
  
      at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(Unknown Source)
  
      at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(Unknown Source)
  
      at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(Unknown Source)
  
      at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Unknown Source)
  
      at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Unknown Source)
  
      at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Unknown Source)
  
      at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Unknown Source)
  
      at com.sun.xml.internal.ws.client.Stub.process(Unknown Source)
  
      at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(Unknown Source)
  
      at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
  
      at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
  
      at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
  
      at $Proxy32.getAllVehicles(Unknown Source)
  
      at com.google.appengine.codelab.soap.client.VehicleServlet.doGet(VehicleServlet.java:52)
  
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
  
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
  
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
  
      at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
  
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  
      at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:60)
  
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  
      at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
  
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  
      at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
  
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  
      at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
  
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
  
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
  
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
  
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
  
      at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:94)
  
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  
      at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:370)
  
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  
      at org.mortbay.jetty.Server.handle(Server.java:326)
  
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
  
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
  
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
  
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
  
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
  
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
  
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
  
  &lt;/pre&gt;
  &lt;hr /&gt;&lt;i&gt;&lt;small&gt;Powered by Jetty://&lt;/small&gt;&lt;/i&gt;&lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  &lt;br/&gt;                                                
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Somebody help me with this problem ??</p>
  
  <p>Thank in advance!</p>