users@jax-ws.java.net

handler changes content-type

From: Florian Rengers <rengers_at_grit.de>
Date: Thu, 06 Apr 2006 17:31:37 +0200

Hi,

I found a misterious behavior of handlers.

A normal handler is no problem.
The response content-type is
Multipart/Related; type="application/xop+xml";
boundary="----=_Part_1_2544992.1144336028265"; start-info="text/xml"

but when I access the SOAPMessage, the content-type of the response
message changes to

text/xml;charset=utf-8

My handle-method:

  public boolean handleMessage(SOAPMessageContext smc) {
      smc.getMessage();
      return true;
  }

If I comment out "smc.getMessage()" I get afresh Multipart/Related ...

To prevent any misunderstandings:
This problem has nothing to do with the interop-problem between JAX-WS
and .NET WSE (I posted before).

greetings

Florian